查看中文版 →

Deutsche Version ansehen →

Открыть русскую версию →

Ver versión en español →

Log in
Blog · Model tests

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.

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.

SpecDeepSeek-V4-Flash (retired)DeepSeek-V4.1-Flash / 1017 (current)
Backbone parameters284B MoE552B MoE + 196B Engram memory
Active parameters / token~13B uniform (prefill & decode)Asymmetric: 8B prefill / 16B decode
ArchitectureStandard MoE Transformer40-layer Causal Encoder-Decoder (CED)
Vision supportSeparate branch (V4-Flash-Vision-Exp)Native multimodal (DeepSeek-ViT)
Context window1M tokens1M tokens
Max outputStandard tierUp 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 pricingLegacy flat $0.14 in / $0.28 out (retired)Peak/off-peak: $0.15 / $0.003 / $0.60 off-peak; 2x peak
LicenseMITMIT (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:

BenchmarkDeepSeek-V4.1-Flash (0910)DeepSeek-V4.1-Flash-1017Delta
Terminal-Bench 4.031.2%42.3%+11.1
ProgramBench20.3%29.1%+8.8
Apex Bench v1.164.6%72.1%+7.5
HLE (no tools)36.8%42.6%+5.8
Automation-Bench v1.0.654.8%60.5%+5.7
Chartography (with tools)78.9%83.0%+4.1
Agents' Last Exam31.8%35.4%+3.6
BabyVision (with tools)89.6%92.5%+2.9
DeepSWE v1.174.2%77.0%+2.8
NL2Repo-Bench65.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 volumeOff-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 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 and 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 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 or 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 / ScenarioRecommended setupWhy / Trade-off
Large-repo navigation, multi-file edits & CLI debuggingDeepSeek 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 compsDeepSeek V4.1 FlashNative DeepSeek-ViT vision in one unified endpoint—no model switching
Overnight batch code review & CI pipelinesOfficial API during off-peak UTCFlat 50% off: $0.15/M uncached input and $0.003/M cache hit
Architecture planning + high-volume subagent codingClaude flagship main + V4.1 Flash subagentsShared CodingPass allowance balances top-end reasoning with low per-step cost
Air-gapped or strict on-prem complianceSelf-host 1017 weights from Hugging FaceMIT-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.

Boarding

DeepSeek for long context, Claude for the hard calls.

CodingPass Go starts at a month for models including DeepSeek V4.1 Flash—roughly DeepSeek requests on Go or on Plus. No surprise charges, cancel anytime.

  • Request ID on every response
  • Full refund if you've used 5% or less
  • No surprise charges