DeepSeek V4.1 Flash API: 890-Byte KV Cache, 1M Context

• DeepSeek API Analysis • About 12 min read

On September 10, 2026, DeepSeek shipped DeepSeek-V4.1-Flash and did three things in the same announcement that most vendors spread across a quarter: it replaced two models, it cut prices, and it announced the retirement of the model it had promoted as its flagship only a month earlier. The model is a 552-billion-parameter multimodal Mixture-of-Experts with a one-million-token context window, released under the MIT license with a full technical report. But the number that will actually change production architecture decisions is smaller and less glamorous: 890 bytes of KV cache per token, roughly one quarter of the model it replaces. This is a release about memory math as much as about benchmark scores, so that is where this review starts.

The Real Headline: KV Cache Down 4x

Every long-context agent session carries a hidden memory bill. As the model reads a one-million-token context, it must keep the key-value state for every token it has attended to resident in GPU memory for as long as the session stays alive - you cannot stream it back from disk between tool calls without paying a latency penalty that ruins the agent loop. So the size of that cache, measured in bytes per token, quietly determines how many concurrent sessions a cluster can serve and therefore how much each session costs the provider to host.

DeepSeek's technical report states a global KV cache footprint of 890 bytes per token for V4.1 Flash. The model card frames the same figure two ways: approximately 4-fold smaller than DeepSeek-V4-Flash, and 437-fold smaller than DeepSeek-V1. Both reductions matter for different reasons - the first is the upgrade case for anyone already running V4 Flash, and the second is the multi-year trend line showing that attention efficiency, not just parameter count, has been the real axis of competition in this family.

Metric DeepSeek V4.1 Flash Change
Backbone parameters552B MoENew architecture family
Context window1,048,576 tokensUnchanged (1M)
KV cache per token890 bytes~1/4 vs V4 Flash
Persistent KV footprint~1/8 of V4 FlashSWA Bounded Replay
Active params (prefill / decode)8B / 16B per tokenCED architecture
Training corpus45T tokensTrained from scratch
LicenseMITOpen weights

Three mechanisms produce that compression, and they are worth naming because they are the parts a competitor would have to match. FP4 main KV caching stores the cache in E2M1 format with one E4M3 scale per 16 channels - a 4-bit path for the state that normally dominates memory. Compressed Sparse Attention 2 (CSA2) assigns each attention layer one of three static modes, Full, Reindex, or Reuse, so that layers share main KV and indexer K rather than each maintaining its own, and a Hierarchical Sparse Indexer bounds the cost of deeper indexing independently of context length. SWA Bounded Replay reconstructs missing sliding-window KV states by replaying only the most recent tokens instead of persisting them to SSD.

The Architecture: A Causal Encoder-Decoder Split

The model card describes a Causal Encoder-Decoder (CED) architecture: a 40-layer Transformer organised as a 20-layer causal encoder followed by a 20-layer decoder. The unusual part is where the decoder gets its memory from. With CED, the decoder's global KV cache is projected from the final encoder hidden states rather than derived from each decoder layer's own hidden states. That single change is what allows the model to activate only 8 billion parameters per token during prefill and 16 billion during decode - a tiny fraction of the 552B backbone, and the direct source of the cost efficiency claim for input-heavy agent workloads.

Beyond attention, the config declares several components that DeepSeek's previous Flash models did not carry. An Engram conditional memory block of 196B parameters is sparsely accessed via token-based lookup at layers 1 and 14 - a retrieval-like memory that is addressed rather than densely computed. DSpark speculative decoding generates semi-autoregressive drafts with confidence-scheduled verification across the final three layers. Routing runs 1 shared expert and 384 routed experts per MoE layer, activating 6 routed experts per token. Images enter through a from-scratch vision encoder (DeepSeek-ViT, trained with 2D-RoPE and 3x3 pixel-unshuffle downsampling) and a two-layer MLP projector, with visual embeddings processed jointly with text from the start of pre-training rather than bolted on in a later fine-tuning stage.

Pre-training used a multimodal corpus of 45 trillion tokens, with sparse attention trained at a 64K sequence length and context extended to 1M tokens at the 34T-token mark. Post-training follows the standard SFT then RL then on-policy distillation paradigm with no algorithmic changes; DeepSeek states that all substantive changes were in the data pipeline, specifically large-scale automated synthesis of agent tasks and environments.

Verified API Pricing: Peak, Off-Peak, and the Cache Rate

DeepSeek bills V4.1 Flash in Chinese yuan with a peak/off-peak split, and the cache-hit rate is the lever that matters for agent workloads with reused prefixes. Peak hours are Beijing time Monday to Friday 09:00-12:00 and 14:00-18:00; everything outside that window is off-peak and costs exactly half.

Price (per 1M tokens) Off-peak (CNY) Peak (CNY) vs V4 Pro (peak)
Input (cache hit)0.020.040.30 → ~7.5x cheaper
Input (cache miss)1.002.009.00 → 4.5x cheaper
Output4.008.0027.00 → 3.4x cheaper
Concurrency limit2,500500 → 5x higher

On the international aggregator OpenRouter the same model lists at $0.30 per million input tokens, $1.20 per million output tokens, and $0.006 per million cache-read tokens, with a 1,048,576-token context. Note how much cheaper the cache read is than a fresh input: at those rates a workload that reuses a large system prompt or document prefix across many calls pays almost nothing for the repeated portion, which is precisely the pattern that a 4x-smaller KV cache makes economical to serve.

Concurrency also widened, from V4 Pro's 500 to 2,500. For teams that were rate-limited on V4 Pro during peak hours, that is a bigger operational unlock than the headline price cut.

V4 Pro Is Being Retired on September 14, 2026

The most consequential line in the announcement is not about the new model at all. DeepSeek states that across multiple test rounds, V4.1 Flash has comprehensively surpassed V4 Pro on performance, cost, speed, and total time-to-completion, and that it therefore plans an orderly retirement of V4 Pro. Concretely:

  • From 12:00 Beijing time on September 14, 2026, until a future V4.1 Pro ships, every request specifying deepseek-v4-pro is routed to V4.1 Flash and billed at V4.1 Flash prices.
  • deepseek-v4-flash and deepseek-v4-flash-vision-exp are already offline as models; the IDs still resolve but are served by V4.1 Flash.
  • The new callable name is simply deepseek-flash.

This is a forced migration, not a deprecation window. Code pinned to deepseek-v4-pro will keep returning HTTP 200 responses - it will just be a different model at a different price. That is the dangerous shape of API change: nothing falls over, so nothing alerts. If your evaluation suite assumes V4 Pro's reasoning depth, your scores will shift without any error in the logs. The honest framing is that DeepSeek has decided its cheaper model is good enough to absorb its flagship's traffic, and is asking customers to accept that judgement on a four-day notice.

Migration checklist. Grep your codebase for deepseek-v4-pro and deepseek-v4-flash. Replace both with deepseek-flash. Re-run your evaluation suite against V4.1 Flash before September 14 so you learn the score delta on your own terms rather than discovering it in production. If your app depends on the Anthropic-format endpoint, note that V4.1 Flash supports both the OpenAI and Anthropic formats at api.deepseek.com/anthropic, so that path needs no change beyond the model ID.

Benchmarks: Strong for the Price, Short of the Frontier

DeepSeek published a comparison table against Opus-5.0, GPT-5.6 Sol, Kimi K3, GLM-5.3, and its own V4 Pro and V4 Flash. The pattern is consistent: V4.1 Flash beats the models it replaces and lands within striking distance of the frontier on agentic coding, while trailing clearly on the hardest reasoning and security-exploitation tasks.

Benchmark V4.1 Flash V4 Flash V4 Pro Best frontier
GPQA Diamond90.989.992.494.1 (GPT-5.6 Sol)
HLE36.837.842.756.3 (Opus-5.0)
Codeforces (Rating)3471328933483471 (itself)
Terminal-Bench 2.190.682.787.990.6 (itself)
DeepSWE v1.174.254.462.774.2 (itself)
CyberGym88.176.783.388.1 (itself)
ExploitGym15.31.85.433.7 (GPT-5.6 Sol)

Read that table carefully, because the headline framing and the underlying data tell different stories. V4.1 Flash leads this comparison set outright on Codeforces rating, Terminal-Bench 2.1, DeepSWE v1.1, and CyberGym - the agentic coding and security benchmarks. It is behind its own V4 Pro on GPQA Diamond and HLE, the two pure-reasoning tests. And on ExploitGym, which measures offensive security capability, it sits at 15.3 against GPT-5.6 Sol's 33.7.

DeepSeek also published scaffold sensitivity for its agent benchmarks, and this is the most usefully honest part of the report. DeepSWE v1.1 ranges from 65.5 (OpenCode) to 74.2 (mini-SWE) depending on which agent harness runs it; Terminal-Bench 2.1 ranges from 84.1 (Codex) to 90.6 (DSH Minimal). An 8.7-point swing from harness choice alone means that any single agentic benchmark number - theirs or a competitor's - is a statement about the scaffold as much as the model. If you are choosing a model on agentic scores, replicate the number in your harness before committing.

What This Means If You Build on the API

Switch if your workload is input-heavy and prefix-reusing. Long documents, large retrieval contexts, agents with fat system prompts, batch classification over shared instructions - these are the shapes where a 1/4 KV cache and a $0.006-per-million cache-read rate compound. The off-peak discount is a real 50% lever if your batch jobs can be scheduled outside Beijing business hours.

Hedge if your workload is depth-heavy. V4.1 Flash trades pure reasoning for throughput and cost. Its HLE score of 36.8 is the number to weigh against Opus-5.0's 56.3 if your app's value comes from hard multi-step reasoning rather than fast, cheap agentic execution. A routing setup that sends routine steps to V4.1 Flash and escalates the hardest ones elsewhere captures most of the saving without inheriting the ceiling.

Verify your evaluation suite before September 14. The V4 Pro rerouting is the actionable risk in this announcement. Four days of notice, no error, and a different model answering your requests is precisely the kind of change that passes CI and fails in production.

One caveat worth stating plainly: all figures here come from DeepSeek's own published pricing page, model card, and technical report, plus the OpenRouter model listing. The benchmark comparisons are vendor-run. DeepSeek's evaluation notes its own harness choices - DeepSeek Harness Minimal for most code-agent tests, mini-SWE for DeepSWE v1.1, Claude Code for SEC-Bench Pro and the visual agent benchmarks. Independent reproduction has not happened at the time of writing. Treat the architecture numbers (KV cache bytes, parameter counts, active-parameter figures) as solid, because they are structural and derived from the released config, and treat the cross-vendor benchmark edges as directional until third parties rerun them.

Frequently Asked Questions

What is DeepSeek V4.1 Flash and when was it released?

DeepSeek V4.1 Flash is a multimodal Mixture-of-Experts model with 552B backbone parameters, released on September 10, 2026. It is the smallest member of DeepSeek's new model-structure family and replaces both DeepSeek-V4-Flash and the experimental DeepSeek-V4-Flash-Vision-Exp. It natively processes images and text and supports contexts up to one million tokens. In the DeepSeek API the callable model name is now simply deepseek-flash; the legacy names still resolve but are routed to V4.1 Flash and billed at V4.1 Flash rates.

How much does DeepSeek V4.1 Flash cost per million tokens?

DeepSeek prices it in Chinese yuan with a peak/off-peak split. Off-peak: 0.02 CNY per million cache-hit input, 1 CNY per million cache-miss input, 4 CNY per million output. Peak: 0.04 / 2 / 8 CNY respectively. Peak hours are Beijing time Monday to Friday 09:00-12:00 and 14:00-18:00; everything else is off-peak at exactly half price. OpenRouter lists the same model at $0.30 per million input, $1.20 per million output, and $0.006 per million cache-read tokens.

Why does the 890-byte KV cache matter?

A one-million-token agent session must keep its key-value state resident in memory while the model works; a four-fold smaller cache directly reduces the GPU memory a long-running agent needs, which determines how many concurrent sessions a cluster can serve and therefore the provider's cost per session. DeepSeek reports 890 bytes per token, about 1/4 of V4 Flash and roughly 437x smaller than DeepSeek-V1, achieved through FP4 main KV caching in E2M1 format, CSA2 layer sharing, and SWA Bounded Replay reducing the persistent footprint to about 1/8.

What happens to DeepSeek V4 Pro on September 14, 2026?

From 12:00 Beijing time on September 14, 2026 until a future V4.1 Pro ships, any request specifying deepseek-v4-pro is routed to V4.1 Flash and billed at V4.1 Flash prices. DeepSeek's stated reason is that V4.1 Flash surpassed V4 Pro across performance, cost, speed, and total time-to-completion. Treat this as a forced migration date: the model ID keeps working, but the underlying model and the price both change without any error surfacing in logs.

Is DeepSeek V4.1 Flash open source?

Yes - MIT license, weights at deepseek-ai/DeepSeek-V4.1-Flash on Hugging Face, with a full technical report and reproduction instructions for DeepSWE v1.1. The model card documents a 40-layer Transformer split into a 20-layer causal encoder and 20-layer decoder, 384 routed experts plus 1 shared expert per MoE layer, 6 routed experts per token, an Engram conditional memory block of 196B parameters, DSpark speculative decoding, and pre-training on 45 trillion multimodal tokens.

Should long-context agent builders switch to it?

The economics favor switching for input-heavy and agentic workloads: 8B active parameters per token during prefill, 16B during decode, and off-peak cache-miss input near one fifteenth of V4 Pro's rate make it dramatically cheaper for long documents with reused prefixes. The trade-off is depth - HLE 36.8 against Opus-5.0's 56.3, and ExploitGym 15.3 against GPT-5.6 Sol's 33.7. Use it as a high-throughput workhorse and route the hardest reasoning steps elsewhere.

Sources

Last verified: 2026-09-11. Pricing, model IDs, and retirement dates on vendor pages change without notice - re-check the DeepSeek pricing page before pinning a production estimate.