---
title: "DeepSeek V4.1 Flash API Pricing, 1M Context & Benchmarks vs V4 Flash"
description: "Full breakdown of DeepSeek V4.1 Flash (including the 1017 update) vs V4 Flash: 552B MoE asymmetric architecture, native vision, 1M context, peak/off-peak API pricing with 98% cache discounts, benchmark gains, monthly bill estimates, and Claude Code / OpenCode configs."
url: https://codingpass.ai/blog/deepseek-v4-1-flash-api-pricing-context-vs-v4-flash
language: en
updated: 2026-11-27
---
# DeepSeek V4.1 Flash: API pricing, 1M context & V4 Flash diff

DeepSeek V4.1 Flash replaces V4 Flash with a 552B MoE Causal Encoder-Decoder design and native vision, while the October 17 (1017) update adds up to 11.1 points on agentic benchmarks at the exact same API price. Here are the specs, peak/off-peak rates, monthly bills, and copy-paste setup.

[CodingPass team](https://codingpass.ai/about) Published Nov 27, 2026 Updated Nov 27, 2026 8 min read

DeepSeek has officially retired the earlier `deepseek-v4-flash` and `deepseek-v4-flash-vision-exp` endpoints. Calling `deepseek-flash` on the official API (or any of those legacy strings, which now auto-route) serves **DeepSeek-V4.1-Flash-1017**—the October 17, 2026 post-training update to the V4.1 Flash architecture launched on September 10.

If your cost sheet still uses V4 Flash's old flat pricing or treats vision as a separate branch, the numbers have shifted significantly. V4.1 Flash overhauled the underlying architecture, folded vision into the main model, introduced peak/off-peak billing with a 98% cache-hit discount, and shipped measurable coding and terminal gains in `1017` without raising prices.

**Key takeaways:** DeepSeek V4.1 Flash is an MIT-licensed 552B MoE model (plus a 196B Engram conditional memory module) using asymmetric activation (8B active on prefill, 16B on decode), native vision, a 1M context window, and up to 384K output tokens. Official API pricing splits into off-peak ($0.15 input / $0.003 cache hit / $0.60 output per 1M tokens) and peak (2x). The 1017 checkpoint lifts Terminal-Bench 4.0 by +11.1 to 42.3% and DeepSWE v1.1 to 77.0% with shorter responses. At 100K requests/month with 94% cache hits, an agent workload runs $163.20 off-peak or $326.40 peak.

## DeepSeek V4.1 Flash vs. V4 Flash: what changed

Put side by side, the jump from V4 Flash (April 2026 preview, July 31 GA) to V4.1 Flash is an architectural rewrite aimed at long-context agent loops rather than a routine weight refresh. V4 Flash ran a 284B MoE with ~13B uniform active parameters and split image understanding into a separate experimental branch. V4.1 Flash nearly doubles the backbone to 552B MoE inside a 40-layer Causal Encoder-Decoder (CED) layout—activating only 8B parameters to read prompts and 16B to generate tokens.

| Spec | DeepSeek-V4-Flash (retired) | DeepSeek-V4.1-Flash / 1017 (current) |
| --- | --- | --- |
| Backbone parameters | 284B MoE | 552B MoE + 196B Engram memory |
| Active parameters / token | ~13B uniform (prefill & decode) | Asymmetric: 8B prefill / 16B decode |
| Architecture | Standard MoE Transformer | 40-layer Causal Encoder-Decoder (CED) |
| Vision support | Separate branch (V4-Flash-Vision-Exp) | Native multimodal (DeepSeek-ViT) |
| Context window | 1M tokens | 1M tokens |
| Max output | Standard tier | Up to 384K (defaults: 8K non-thinking / 64K thinking / 128K max effort) |
| KV cache footprint | ~4x larger than V4.1 Flash | ~890 bytes/token (CSA2 + FP4 KV) |
| Official API pricing | Legacy flat $0.14 in / $0.28 out (retired) | Peak/off-peak: $0.15 / $0.003 / $0.60 off-peak; 2x peak |
| License | MIT | MIT (1017 weights on Hugging Face) |

What makes the 1M context window practical in real coding sessions is **Compressed Sparse Attention 2 (CSA2) paired with FP4 KV caching**. Shrinking the global KV cache down to ~890 bytes per token cuts HBM memory use to roughly a quarter of V4 Flash and storage overhead to an eighth. That hardware efficiency is what backs the aggressive 98% cache-hit discount on the official API.

Native multimodal input removes another daily annoyance: you can drop UI screenshots, design mockups, and error traces straight into the same coding thread without routing to a separate vision model.

## Official API pricing and peak/off-peak hours

DeepSeek bills `deepseek-flash` on a two-tier peak/off-peak schedule. Output rates cover both final response tokens and internal reasoning tokens:

| Token type (per 1M tokens) | Off-peak (50% off) | Peak |
| --- | --- | --- |
| Input (cache hit) | $0.003 | $0.006 |
| Input (cache miss) | $0.15 | $0.30 |
| Output (incl. reasoning) | $0.60 | $1.20 |

The billing clock runs on UTC:

- **Peak hours**: Monday through Friday, 01:00–04:00 UTC and 06:00–10:00 UTC, excluding Chinese public holidays
- **Off-peak hours**: All other weekday hours, all weekend, and full Chinese public holidays—billed at exactly 50% of peak rates
- **Server-side tools**: Web search and web fetch tool-call fees are waived; you only pay standard token rates for the fetched content appended to context

Watch the `max_tokens` defaults when integrating directly: omitting `max_tokens` caps output at 8K in non-thinking mode, 64K in thinking mode, and 128K when `reasoning_effort` is set to `max`. You can explicitly request up to 384K tokens per completion.

## Benchmarks: V4.1 Flash vs. the 1017 update

At launch in September, DeepSeek V4.1 Flash already outpaced both the retired V4 Flash and the heavier V4-Pro across core coding and agent evaluations (scoring 90.9% on GPQA Diamond and 90.6% on Terminal-Bench 2.1). The October 17 (`1017`) post-training update kept the exact same architecture and price while pushing scores up across every tracked suite—most sharply on terminal and programming tasks.

Official DeepSeek evaluations at maximum reasoning effort:

| Benchmark | DeepSeek-V4.1-Flash (0910) | DeepSeek-V4.1-Flash-1017 | Delta |
| --- | --- | --- | --- |
| Terminal-Bench 4.0 | 31.2% | 42.3% | +11.1 |
| ProgramBench | 20.3% | 29.1% | +8.8 |
| Apex Bench v1.1 | 64.6% | 72.1% | +7.5 |
| HLE (no tools) | 36.8% | 42.6% | +5.8 |
| Automation-Bench v1.0.6 | 54.8% | 60.5% | +5.7 |
| Chartography (with tools) | 78.9% | 83.0% | +4.1 |
| Agents' Last Exam | 31.8% | 35.4% | +3.6 |
| BabyVision (with tools) | 89.6% | 92.5% | +2.9 |
| DeepSWE v1.1 | 74.2% | 77.0% | +2.8 |
| NL2Repo-Bench | 65.4% | 68.2% | +2.8 |
| ZeroBench-main (with tools) | 49.0% | 51.0% | +2.0 |

In day-to-day agent loops, the quieter win in `1017` is shorter output and faster end-to-end completion. Effective engineering cost follows `cost per request / first-pass success rate + human review time`. Fewer verbose tokens plus higher first-pass accuracy means lower real bills even though list prices stayed flat.

## Monthly workload bill: 10K / 100K / 1M requests

Per-million token rates only tell half the story. Using CodingPass's observed coding-agent traffic profile—**100K tokens per request** split into 5% uncached input (5,000 tokens), 94% cache-hit input (94,000 tokens), and 1% output including reasoning (1,000 tokens)—the cost formula is:

`Request cost = (Uncached / 1M) * P_miss + (Cached / 1M) * P_hit + (Output / 1M) * P_out`

Plugging in official rates:

- **Off-peak (94% cache hit)**: `0.005 * $0.15 + 0.094 * $0.003 + 0.001 * $0.60 = $0.001632 / req`
- **Peak (94% cache hit)**: `0.005 * $0.30 + 0.094 * $0.006 + 0.001 * $1.20 = $0.003264 / req`
- **Peak (0% cache hit, 99K uncached + 1K output)**: `0.099 * $0.30 + 0.001 * $1.20 = $0.030900 / req`

| Monthly volume | Off-peak (94% cache) | Peak (94% cache) | Peak (0% cache baseline) |
| --- | --- | --- | --- |
| 10,000 req / mo | $16.32 | $32.64 | $309.00 |
| 100,000 req / mo | $163.20 | $326.40 | $3,090.00 |
| 1,000,000 req / mo | $1,632.00 | $3,264.00 | $30,900.00 |

Cache discipline dominates the bill. Keeping your system prompt and tool definitions stable so 94% of context hits cache holds 100K peak requests to $326.40; busting the prefix on every turn pushes the exact same workload to $3,090.00—nearly 9.5x higher.

If your daily setup pairs Claude flagships with DeepSeek V4.1 Flash and you prefer a predictable monthly allowance over juggling separate keys and peak-hour overages, [CodingPass plans](https://codingpass.ai/pricing) start at $10/month on Go for 25 models including `deepseek-v4.1-flash`. That covers roughly 13,600 DeepSeek requests on Go or 42,400 on Plus—see [all models](https://codingpass.ai/models) and [usage limits](https://codingpass.ai/usage-limits) for exact caps.

## Minimal setup: Claude Code & OpenCode

DeepSeek exposes both an OpenAI-compatible endpoint (`https://api.deepseek.com`) and an Anthropic-compatible endpoint (`https://api.deepseek.com/anthropic`). To run `deepseek-flash` directly inside [Claude Code](https://codingpass.ai/tools/claude-code) with the full 1M context window and auto-compaction:

Terminal

```
export ANTHROPIC_BASE_URL="https://api.deepseek.com/anthropic"
export ANTHROPIC_AUTH_TOKEN="<your DeepSeek API Key>"
export ANTHROPIC_MODEL="deepseek-flash[1m]"
export ANTHROPIC_DEFAULT_OPUS_MODEL="deepseek-flash[1m]"
export ANTHROPIC_DEFAULT_SONNET_MODEL="deepseek-flash[1m]"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek-flash"
export CLAUDE_CODE_SUBAGENT_MODEL="deepseek-flash"
export CLAUDE_CODE_EFFORT_LEVEL="max"
export CLAUDE_CODE_AUTO_COMPACT_WINDOW="786432"

claude
```

If you use [OpenCode](https://codingpass.ai/tools/opencode) or [DeepSeek Harness](https://codingpass.ai/tools/deepseek-harness) and want Claude and DeepSeek V4.1 Flash side by side under one provider block, add CodingPass to `~/.config/opencode/opencode.json`:

~/.config/opencode/opencode.json

```
{
  "$schema": "https://opencode.ai/config.json",
  "model": "codingpass/deepseek-v4.1-flash",
  "providers": {
    "codingpass": {
      "name": "CodingPass",
      "env": ["CODINGPASS_API_KEY"],
      "package": "@opencode/ai/providers/anthropic",
      "settings": { "baseURL": "https://codingpass.ai/v1" },
      "models": {
        "claude-sonnet-5-5": { "name": "Claude Sonnet 5.5" },
        "deepseek-v4.1-flash": { "name": "DeepSeek V4.1 Flash" }
      }
    }
  }
}
```

For DeepSeek Harness (`dsh`), upgrade to `0.2.1-rc.1` or newer so the harness takes advantage of the `1017` tool-calling and subagent tuning.

## Scenario decision table

| Workload / Scenario | Recommended setup | Why / Trade-off |
| --- | --- | --- |
| Large-repo navigation, multi-file edits & CLI debugging | DeepSeek V4.1 Flash (caching on) | 1M context + 98% cache discount; 1017 jumped to 42.3% on Terminal-Bench 4.0 |
| Frontend UI fixes from screenshots & design comps | DeepSeek V4.1 Flash | Native DeepSeek-ViT vision in one unified endpoint—no model switching |
| Overnight batch code review & CI pipelines | Official API during off-peak UTC | Flat 50% off: $0.15/M uncached input and $0.003/M cache hit |
| Architecture planning + high-volume subagent coding | Claude flagship main + V4.1 Flash subagents | Shared CodingPass allowance balances top-end reasoning with low per-step cost |
| Air-gapped or strict on-prem compliance | Self-host 1017 weights from Hugging Face | MIT-licensed, but 552B + Engram requires multi-GPU high-VRAM nodes (e.g., 4x H200) |

## FAQ

### Do I need to update legacy `deepseek-v4-flash` model strings in existing code?

Your existing requests will keep working right away. DeepSeek automatically routes `deepseek-v4-flash`, `deepseek-v4-flash-vision-exp`, and `deepseek-chat` to `DeepSeek-V4.1-Flash-1017` at standard `deepseek-flash` rates. For new integrations, switch to `deepseek-flash` directly so you are not tied to retired aliases.

### Why did my V4.1 Flash response stop at 8K tokens?

Check whether thinking mode is enabled and whether you passed `max_tokens`. Without an explicit value, DeepSeek defaults to 8K tokens in non-thinking mode, 64K in thinking mode, and 128K at `reasoning_effort=max`. Pass `max_tokens` explicitly (up to 384K) when generating large diffs or long files.

### Does Claude Code handle the 1M context window cleanly with DeepSeek V4.1 Flash?

Yes. Setting `ANTHROPIC_MODEL=deepseek-flash[1m]` alongside `CLAUDE_CODE_AUTO_COMPACT_WINDOW=786432` tells Claude Code to compact conversation history near 768K tokens, keeping sessions well inside the 1M ceiling while preserving cache-friendly prefixes.

Written by CodingPass team

We run CodingPass and test each guide against the latest stable release of the tool before we publish it. Spotted something out of date? Write to [support@codingpass.ai](mailto:support@codingpass.ai).

## Related reading.

Tools

### [DeepSeek Harness setup guide](https://codingpass.ai/tools/deepseek-harness)

Configure one provider in ~/.dsh/settings.yaml to run Claude and DeepSeek V4.1 Flash from the same monthly allowance.

Tools

### [Claude Code setup guide](https://codingpass.ai/tools/claude-code)

Point Claude Code at CodingPass with two environment variables and keep your existing workflow.

Models

### [All models](https://codingpass.ai/models)

Every model ID, minimum tier, and monthly allowances across Go, Plus, and Pro.
