TL;DR: DeepSeek V4 GA combines MIT-licensed weights, a 1M-token context window, and an 80.6% SWE-bench Verified open-source record at roughly 1/10 to 1/100 the cost of closed-source flagships. This guide covers the release timeline, CSA/HCA/mHC/Muon architecture, benchmark tables, head-to-head comparisons with GPT-5.6 and Claude Fable 5, peak-valley pricing, and the July 24 API migration deadline — plus a six-step production runbook and FAQ. For private deployment, see our ds4 high-memory Mac cloud inference guide.
00What Is DeepSeek V4 GA?
DeepSeek V4 GA (General Availability) is the production-grade model family DeepSeek shipped on July 20, 2026. It includes V4-Pro (1.6T parameters) and V4-Flash (284B parameters), both released under the MIT license with a 1,000,000-token context window and up to 384K tokens of output per request.
Compared with the April preview, the GA build targets agent tasks, math reasoning, and code generation, and pairs with formal commercial billing — peak-valley differentiated pricing. Legacy endpoint names deepseek-chat and deepseek-reasoner retire permanently on July 24.
- Self-hostable under MIT: enterprises can deploy privately for data-sovereignty and cross-border compliance.
- 1M context that actually runs: KV cache memory is just 10% of V3.2 (7% on Flash).
- Open-source SWE-bench record: 80.6% Verified, tied with Gemini 3.1 Pro for the top open score.
- API value leader: V4-Pro output at $0.87/M off-peak and $1.74/M at peak — roughly 1/57 of Claude Fable 5.
Why teams are scrambling to migrate now
- Hard sunset on legacy models:
deepseek-chatanddeepseek-reasonerstop responding after July 24, 2026 at 15:59 UTC — any missed call site breaks production. - Peak-hour billing surprises: Beijing weekday mornings and afternoons double rates; unscheduled batch jobs can erase the savings from June's 75% price cut.
- Closed-source lock-in: Claude Fable 5 and GPT-5.6 Sol offer no self-host path and charge $50/M or ~$15/M on output.
- Agent CI fragility: long V4 sessions over shared pools or home hardware suffer bandwidth jitter and dropped SSH — token savings disappear when builds retry.
- Model routing complexity: Flash vs Pro vs Think High vs Think Max requires explicit routing logic that did not exist under the old two-model API.
01Timeline: Preview to Full Release
| Date | Event |
|---|---|
| 2026-04-24 | V4 preview launch + open weights (MIT), including V4-Pro (1.6T) and V4-Flash (284B) |
| 2026-05 | Production-tuned build ships; API goes generally available |
| 2026-06 | V4-Pro output price cut 75% permanently (to $0.87/M tokens) |
| 2026-06-29 | Email to all API users announcing mid-July GA and first disclosure of peak-valley pricing |
| 2026-07-19 | Multiple developers receive GA gray-release access; press reports "full build could land tomorrow" |
| 2026-07-20 | GA production release (publication date of this article) |
| 2026-07-24 | Legacy endpoints deepseek-chat / deepseek-reasoner permanently retired |
02Architecture Deep Dive
Model family overview
| Spec | V4-Pro | V4-Flash |
|---|---|---|
| Total parameters | 1.6 trillion (1.6T) | 284 billion (284B) |
| Active parameters per token | 49 billion (49B) | 13 billion (13B) |
| Transformer layers | 61 | 43 |
| Context window | 1,000,000 tokens | 1,000,000 tokens |
| Max output | 384K tokens | 384K tokens |
| Precision | FP4 (expert weights) + FP8 (everything else) | FP4 + FP8 mixed |
| Pre-training data | 33T+ tokens | 32T+ tokens |
| License | MIT | MIT |
Hybrid attention (CSA + HCA)
DeepSeek V4 drops the MLA design from V2/V3 in favor of a hybrid of two new attention mechanisms:
Compressed Sparse Attention (CSA): KV sequences are compressed 4x via Softmax-gated pooling, then an FP4 "lightning indexer" selects sparse top-k tokens (top-1024 on Pro, top-512 on Flash) while retaining a 128-token sliding window for recent context. At 1M tokens, inference requires only 27% of the FLOPs compared with V3.2.
Heavy Compressed Attention (HCA): tokens are compressed 128x before global dense attention to capture long-range dependencies. Flash uses HCA in the first two layers, then alternates CSA and HCA; Pro follows a similar pattern.
Net effect: at 1M tokens, KV cache memory is just 10% of V3.2 (as low as 7% on Flash).
Manifold-Constrained Hyper-Connections (mHC) and Muon optimizer
mHC upgrades standard residual connections with a 4-channel residual stream and doubly-stochastic matrix constraints (Birkhoff polytope), keeping signals stable across 61 layers. The Muon optimizer applies Newton-Schulz orthogonalization to gradients for faster convergence and steadier training.
Three inference modes
| Mode | Behavior | Best for |
|---|---|---|
| Non-think | No chain-of-thought; fastest response | Simple Q&A, routing, classification |
| Think High | Explicit reasoning (<redacted_thinking> tags) | Medium-complexity tasks, code debugging |
| Think Max | Maximum reasoning depth; needs 384K+ context | Hard math, long-horizon agents |
Official recommended sampling: temperature=1.0, top_p=1.0 across all modes.
03Benchmarks: The Open-Source Scorecard
| Benchmark | DeepSeek V4-Pro | Claude Fable 5 | GPT-5.6 Ultra | Claude Opus 4.8 |
|---|---|---|---|---|
| SWE-bench Verified | 80.6% (open-source high) | 96.0% | N/A | ~69% |
| SWE-bench Pro | 55.4% | 80.3% | 78.1% | 69.2% |
| LiveCodeBench (Pass@1) | 93.5% | 88.1% | 87.4% | 83.2% |
| Codeforces Elo | 3,206 | — | — | — |
| Terminal-Bench 2.1 | 83.9% | 88.0% | 85.1% | 82.7% |
SWE-bench Verified tests real GitHub bug fixes; 80.6% is the current open-model high. SWE-bench Pro is stricter — Claude Fable 5 leads at 80.3%.
Cost-performance cross-check
Artificial Analysis data on Strategy & Ops index tasks:
- Claude Fable 5: $3.48 per run, score 50
- DeepSeek V4-Pro: $0.03 per run, score 38
- DeepSeek V4-Flash: under $0.04 per run across all six index task types
Fable 5 costs 116x more than V4-Pro while scoring only ~12 points higher (~31%). Compare with our Kimi K3 review: K3 is larger on paper but API output runs $15/M — V4-Pro still dominates cost-sensitive workloads.
04Full Comparison: GPT-5.6 Sol and Claude Fable 5
| Dimension | DeepSeek V4-Pro | GPT-5.6 Sol | Claude Fable 5 |
|---|---|---|---|
| Open source | MIT license | Closed | Closed |
| Self-hostable | Yes | No | No |
| Context window | 1M tokens | Not disclosed | 1M tokens |
| Code capability | Very strong (near Fable 5) | Very strong | Strongest |
| API output (off-peak) | $0.87/M tokens | ~$15/M | $50/M |
| API output (peak) | $1.74/M tokens | — | — |
| Agent capability | Strong; multi-agent orchestration supported | Strong | Strongest |
| Data privacy | Private deployment possible | Not supported | Not supported |
Selection guide:
- Tight budget / high call volume / private deploy: V4-Pro or V4-Flash
- Maximum code quality, cost secondary: Claude Fable 5 (highest SWE-bench Pro)
- Hard algorithms and math reasoning: GPT-5.6 Sol / Ultra
- Massive log or document ingestion: V4-Flash (cache-hit input at just $0.0028/M)
05Peak-Valley Pricing: How to Save Money
The most watched GA change: DeepSeek's first peak-valley differentiated pricing, modeled on time-of-use electricity rates. Peak hours (Beijing time): weekdays 09:00–12:00 and 14:00–18:00, when rates double.
| Model | Line item | Off-peak | Peak |
|---|---|---|---|
| V4-Pro | Input (cache hit) | ¥0.025 / $0.0035 / 1M | 2x |
| Input (cache miss) | ¥3.00 / $0.435 / 1M | ¥6.00 / $0.87 | |
| Output | ¥6.00 / $0.87 / 1M | ¥12.00 / $1.74 | |
| V4-Flash | Input (cache hit) | ¥0.02 / $0.0028 / 1M | 2x |
| Input (cache miss) | ¥1.00 / $0.14 / 1M | ¥2.00 / $0.28 | |
| Output | ¥2.00 / $0.28 / 1M | ¥4.00 / $0.56 |
Four ways to cut spend:
- Schedule non-real-time jobs outside peak windows (after 18:00 or before 09:00)
- Lean on prompt cache — V4-Flash cache hits cost only $0.0028/M
- Route simple traffic to Flash; escalate hard reasoning to Pro
- Watch billing-change emails (DeepSeek promises 24-hour notice)
Even at peak, V4-Pro output at $1.74/M is still 8.6x cheaper than Claude Opus 4.8 ($15/M).
06API Migration Guide (Deadline: July 24)
deepseek-chat and deepseek-reasoner stop responding on July 24, 2026 at 15:59 UTC (23:59 Beijing time).| Legacy model | New model | Notes |
|---|---|---|
deepseek-chat | deepseek-v4-flash (non-thinking mode) | Fast; good for lightweight tasks |
deepseek-reasoner | deepseek-v4-flash (thinking mode) | Or upgrade to deepseek-v4-pro for stronger reasoning |
client.chat.completions.create(
model="deepseek-v4-pro",
messages=[...],
)
client = anthropic.Anthropic(
api_key="your-deepseek-api-key",
base_url="https://api.deepseek.com"
)
message = client.messages.create(
model="deepseek-v4-pro",
max_tokens=4096,
messages=[{"role": "user", "content": "Hello, DeepSeek V4!"}]
)
V4 supports both OpenAI ChatCompletions and Anthropic Messages formats. The base_url stays the same — update only the model parameter.
07Six-Step Runbook: Production V4 GA Rollout
-
01
Audit your codebase: grep for
deepseek-chatanddeepseek-reasoner; list every call site and environment variable. -
02
Pick target models: lightweight chat to
deepseek-v4-flash; complex agent/code work todeepseek-v4-pro; enable thinking mode viaextra_body. -
03
Staging smoke tests: before July 24, validate Non-think, Think High, and Think Max output quality in pre-production.
-
04
Configure peak-valley scheduling: cron batch doc processing and code review to after 18:00 or weekends; target 80%+ cache hit rate.
-
05
Build Flash-to-Pro routing: intent classification and FAQ on Flash ($0.28/M output); escalate hard reasoning to Pro.
-
06
Deploy agent hosts: long-running V4 agent sessions need stable SSH and dedicated compute. Review pricing for NUKCLOUD dedicated Mac nodes as your CI and agent build plane — shared-pool tail latency can erase API cost wins.
08Summary and FAQ
DeepSeek V4 GA is one of the most important open-model milestones of 2026. It does not beat Claude Fable 5 or GPT-5.6 on every axis — not yet — but it delivers the strongest open-source performance at roughly 1/10 to 1/100 the cost of closed flagships. Peak-valley pricing adds operational complexity, yet off-peak rates remain fiercely competitive. DeepSeek's evolution from price disruptor to a rules-based commercial platform is a sign of maturity.
Teams running V4 agents against large codebases still need a stable, auditable local dev and CI plane. Shared minute pools, desk-side Macs, and oversubscribed VPS hosts introduce bandwidth jitter, neighbor CPU contention, and dropped long-lived connections — friction that quickly eats token savings. For production agent hosts, NUKCLOUD multi-region bare-metal Mac / cloud Mac nodes provide dedicated Apple Silicon compute with clear tenant boundaries. Compare specs on the pricing page and provision a trial via order.
deepseek-v4-flash or deepseek-v4-pro before then.Data as of 2026-07-20. Sources: DeepSeek official documentation, arXiv:2606.19348, HuggingFace model pages, LLMReference, Artificial Analysis, MangoMind Blog.