Developer
DeepSeek

DeepSeek V4

DeepSeek's open-weight MoE flagship: V4-Pro (1.6T total / 49B active) and V4-Flash (284B / 13B), with hybrid sparse attention, a 1M context, and an MIT license.

Updated

Released
Apr 24, 2026
Type
Language Model
Context window
1M tokens
Pricing
$0.435 / $0.87 per Mtok
License
MIT
On this page

Overview

DeepSeek V4 is the fourth generation of DeepSeek's open-weight large language model series, released on April 24, 2026. It is not a single model: the DeepSeek API changelog announced two callable models on that date, deepseek-v4-pro and deepseek-v4-flash, both reachable through the OpenAI ChatCompletions interface and the Anthropic Messages interface.

V4-Pro is the frontier tier — 1.6 trillion total parameters with 49 billion activated per token. V4-Flash is the cost tier — 284 billion total with 13 billion activated. Both share the same 1M token context window, the same 384K maximum output, and the same MIT license on Hugging Face.

The generation's defining engineering work is attention. V4 replaces dense attention with a hybrid stack of Compressed Sparse Attention (CSA) and Heavily Compressed Attention (HCA), layered on top of Manifold-Constrained Hyper-Connections (mHC) and trained with the Muon optimizer. DeepSeek reports that at a 1M-token context, V4-Pro "requires only 27% of single-token inference FLOPs and 10% of KV cache compared with DeepSeek-V3.2." Long context stops being a premium feature and becomes the default operating mode.

DeepSeek's own model card describes the released checkpoint as "a preview version" of the V4 series, pre-trained on "more than 32T diverse and high-quality tokens."

Capabilities

  • Frontier open-weight coding: 80.6 on SWE-bench Verified and a 3206 Codeforces rating put V4-Pro at the top of the open-weight field for software engineering.
  • Hybrid thinking: Both models support thinking and non-thinking modes in a single endpoint. Thinking is the default. There is no separate reasoner model to route to.
  • Million-token working memory: The hybrid attention stack is what makes a 1M window economically usable rather than a specification-sheet number.
  • 384K output: A maximum output length long enough to emit a large refactor, a full technical report, or an extended agent trajectory in one response.
  • Dual API surface: Native compatibility with both the OpenAI and Anthropic request formats.
  • Self-hostable: MIT-licensed weights on Hugging Face, with vLLM support including an optional speculative decoding module.

Technical Specifications

deepseek-v4-prodeepseek-v4-flash
Total parameters1.6T284B
Activated per token49B13B
Context window1M tokens1M tokens
Max output384K tokens384K tokens
LicenseMITMIT
Thinking modesthinking (default) / non-thinkingthinking (default) / non-thinking
  • Architecture: Mixture-of-Experts Transformer with a Hybrid Attention Architecture combining Compressed Sparse Attention (CSA) and Heavily Compressed Attention (HCA)
  • Residual structure: Manifold-Constrained Hyper-Connections (mHC)
  • Optimizer: Muon
  • Pre-training corpus: more than 32T tokens
  • Efficiency: at 1M-token context, V4-Pro uses 27% of the single-token inference FLOPs and 10% of the KV cache of DeepSeek-V3.2

DeepSeek-V4-Pro-DSpark

DeepSeek-V4-Pro-DSpark appears as a separate Hugging Face repository, but it is not a separate model. DeepSeek states plainly: "DeepSeek-V4-Pro-DSpark is not a new model. It is the same checkpoint with an additional speculative decoding module attached." In vLLM it is enabled with a single flag. Treat it as a serving optimization, not a capability upgrade.

Legacy model IDs

The two legacy API names, deepseek-chat and deepseek-reasoner, are discontinued on July 24, 2026. During the transition window they map to the non-thinking and thinking modes of deepseek-v4-flash respectively. Applications still pointing at those IDs should migrate to explicit V4 model names.

Use Cases

  • Repository-scale software engineering: The combination of an 80.6 SWE-bench Verified score, a 1M context window, and a 384K output ceiling suits whole-repo refactors and migrations that need to read broadly before writing.
  • Competitive and algorithmic programming: A 3206 Codeforces rating and 93.5 on LiveCodeBench make V4-Pro a strong assistant for algorithm design and contest-style problems.
  • Long-document analysis: Legal discovery, regulatory filings, and multi-paper literature review, where a million tokens of context removes most chunking and retrieval plumbing.
  • Cost-sensitive high-volume workloads: V4-Flash delivers the same context and output limits at roughly a third of Pro's input price and a third of its output price.
  • Private and air-gapped deployment: MIT-licensed weights make on-premises hosting viable for regulated industries.
  • Agentic pipelines: Long outputs and hybrid thinking support multi-step tool-using agents without a separate reasoning model.

Performance / Benchmarks

Numbers below are from DeepSeek's own model cards on Hugging Face.

DeepSeek-V4-Pro

BenchmarkScore
SWE-bench Verified80.6
GPQA Diamond90.1
LiveCodeBench93.5
Codeforces (rating)3206
MMLU-Pro87.5
Humanity's Last Exam (HLE)37.7

DeepSeek-V4-Flash

BenchmarkScore
LiveCodeBench91.6
MMLU-Pro86.2
SimpleQA-Verified34.1
MRCR (1M long context)78.7

V4-Flash figures are reported in Think Max mode. Vendor-reported benchmarks are self-selected; treat them as an upper bound and validate on your own evaluation set.

Limitations

  • No single "V4" endpoint: You must choose deepseek-v4-pro or deepseek-v4-flash. Code that assumes a generic deepseek-v4 ID will fail.
  • Preview checkpoint: DeepSeek describes the released V4-Pro weights as "a preview version" of the series. Behavior may shift in later revisions.
  • Legacy ID cutoff: deepseek-chat and deepseek-reasoner stop working on July 24, 2026.
  • Serving cost at 1.6T: Even at 49B active parameters, self-hosting V4-Pro requires a substantial multi-GPU cluster. V4-Flash is the practical self-hosting target for most teams.
  • Weights, not full openness: MIT covers the weights. Training data and the full training pipeline are not published.
  • No published knowledge cutoff: DeepSeek does not state a reliable knowledge cutoff date for V4. Ground time-sensitive queries with retrieval or tool use.
  • Benchmarks are vendor-reported: Independent third-party replication of the headline scores is limited.

Pricing & Access

Prices are from DeepSeek's pricing page, quoted per 1M tokens in USD.

ModelInput (cache hit)Input (cache miss)Output
deepseek-v4-pro$0.003625$0.435$0.87
deepseek-v4-flash$0.0028$0.14$0.28

The cache-hit price is roughly 1/120th of the cache-miss price on V4-Pro, which makes prompt caching the single highest-leverage optimization for any repeated-context workload. DeepSeek does not publish an off-peak discount for the V4 models.

Access options:

  • DeepSeek API — OpenAI ChatCompletions and Anthropic Messages interfaces
  • DeepSeek Chat — official web and mobile applications
  • Hugging Face — MIT-licensed weights for private deployment

Ecosystem & Tools

Community & Resources

Frequently Asked Questions

DeepSeek V4 arrived on April 24, 2026, when the DeepSeek API changelog announced that "The DeepSeek API now supports V4-Pro and V4-Flash, available via both the OpenAI ChatCompletions interface and the Anthropic interface."
No. "DeepSeek V4" is the series name. Two models shipped: deepseek-v4-pro and deepseek-v4-flash. There is no callable deepseek-v4 model ID.
V4-Pro is the frontier model at 1.6T total parameters with 49B activated per token. V4-Flash is the efficient model at 284B total with 13B activated. Both share the same 1M token context window, 384K max output, and MIT license, and both support thinking and non-thinking modes.
Per DeepSeek's own pricing page, deepseek-v4-pro is $0.435 per 1M input tokens on a cache miss, $0.003625 per 1M on a cache hit, and $0.87 per 1M output tokens. deepseek-v4-flash is $0.14 / $0.0028 / $0.28. Widely reposted figures of $0.145 input and $3.48 output do not match DeepSeek's documentation.
Both V4-Pro and V4-Flash support a 1M token context window with a maximum output of 384K tokens per request.
The weights are published on Hugging Face under the MIT License, which permits commercial use, modification, and redistribution. Training data and the full training pipeline are not released, so "open weights" is the more accurate term than "open source."
It is not a new model. DeepSeek's own model card states: "DeepSeek-V4-Pro-DSpark is not a new model. It is the same checkpoint with an additional speculative decoding module attached." It is enabled with a single flag in vLLM.
Both legacy model IDs are discontinued on July 24, 2026. During the transition they map to the non-thinking and thinking modes of deepseek-v4-flash respectively. Migrate to the explicit V4 model IDs before that date.
V4 combines Compressed Sparse Attention (CSA) and Heavily Compressed Attention (HCA), alongside Manifold-Constrained Hyper-Connections (mHC). DeepSeek reports that at a 1M-token context, V4-Pro "requires only 27% of single-token inference FLOPs and 10% of KV cache compared with DeepSeek-V3.2."
Yes. Both V4-Pro and V4-Flash are exposed through the OpenAI ChatCompletions interface and the Anthropic Messages interface, making migration from either SDK straightforward.

Explore More Models

Discover other AI models and compare their capabilities.