After three months of waiting, DeepSeek V4 GA (General Availability) went live on July 20, 2026. This article is for AI developers, indie builders, long-context Agent engineers, and budget-conscious product teams who need a clear answer on five fronts: architecture, benchmark scores, peak-valley pricing, head-to-head comparisons with GPT-5.6 and Claude Fable 5, and the July 24 API migration deadline.
01 DeepSeek V4 GA: Three Urgent Pressures for Production Teams
Compared to the April preview, the GA release brings targeted upgrades in Agent capability, math reasoning, and code generation — plus peak-valley differentiated billing for the first time. That signals a shift from "near-free" toward disciplined commercial operations. Before you celebrate, production teams should address these pain points immediately:
- API migration countdown: Legacy model IDs
deepseek-chatanddeepseek-reasonersunset permanently on July 24, 2026 at 15:59 UTC (23:59 Beijing time). Unmigrated services will break. - Peak-valley billing complexity: Weekday peak hours (Beijing 09:00–12:00 and 14:00–18:00) double rates. 24×7 Agent pipelines need a new cost model.
- Closed-source flagships still lead on hardest tasks: Claude Fable 5 tops SWE-bench Pro at 80.3%. Chasing leaderboard scores without calculating per-task cost can mean overpaying.
- Self-hosting ≠ zero ops: MIT-licensed, yes — but production inference for a 1.6T MoE still demands a serious GPU cluster. Most teams stay on API and inherit network and quota risks.
Bottom line: the preview was already strong. GA adds Agent, math, and code improvements on top, paired with a formal commercial billing system.
02 From Preview to GA: Timeline & Architecture Deep Dive
| Date | Event |
|---|---|
| April 24 | V4 preview + open source (MIT): V4-Pro (1.6T) and V4-Flash (284B) |
| May | Production-tuned V4-Flash and V4-Pro; API goes live |
| June | V4-Pro output price permanently cut 75% (to $0.87/M tokens) |
| June 29 | Email to all API users: GA mid-July, first disclosure of peak-valley billing |
| July 19 | Gray-test access for select developers; media reports "full release as early as tomorrow" |
| July 20 | GA release (publication date of this article) |
| July 24 | Legacy APIs deepseek-chat and deepseek-reasoner permanently sunset |
Model Family Overview
| Spec | V4-Pro | V4-Flash |
|---|---|---|
| Total Parameters | 1.6 trillion (1.6T) | 284 billion (284B) |
| Active Parameters / 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 (rest) | FP4 + FP8 mixed |
| Pretraining Data | 33T+ tokens | 32T+ tokens |
| License | MIT | MIT |
Core Architecture: How 1M Context Works
Standard Transformer KV cache memory grows linearly with context length. DeepSeek V4 solves this with three innovations — a different bet from the KDA route in Kimi K3, using CSA + HCA hybrid attention instead:
① Hybrid Attention (CSA + HCA) — abandoning V2/V3 MLA for two new mechanisms:
- Compressed Sparse Attention (CSA): KV sequences compressed 4× via Softmax-gated pooling, then FP4 "lightning indexer" top-k sparse selection (Pro: top-1024, Flash: top-512), plus a 128-token sliding window. At 1M context, inference FLOPs are only 27% of V3.2.
- Heavy Compressed Attention (HCA): Tokens compressed 128× for global dense attention on long-range dependencies. Flash uses HCA in the first 2 layers, then alternates CSA/HCA.
- Net effect: KV cache memory at 1M tokens is only 10% of V3.2 (Flash as low as 7%).
② Manifold-Constrained Hyper-Connections (mHC): Four-channel residual streams with mixing matrices constrained to the Birkhoff polytope (doubly stochastic), keeping signals stable across 61 layers.
③ Muon Optimizer: Training uses Muon (not AdamW) with Newton-Schulz orthogonalized gradients for faster convergence and stability.
Three Inference Modes
| Mode | Behavior | Best For |
|---|---|---|
| Non-think | No chain-of-thought, fastest response | Simple Q&A, routing |
| Think High | Explicit reasoning (CoT tags) | Medium-complexity tasks, code debugging |
| Think Max | Maximum reasoning depth, needs 384K+ context | Complex math, long-chain Agents |
Official recommended sampling: temperature=1.0, top_p=1.0 (all modes).
03 Benchmarks: Open-Source Leader vs GPT-5.6 & Claude Fable 5
| Benchmark | DeepSeek V4-Pro | Claude Fable 5 | GPT-5.6 Ultra | Claude Opus 4.8 |
|---|---|---|---|---|
| SWE-bench Verified | 80.6% ★ open-source best | 96.0% | not separately published | ~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-source high score, tied with Gemini 3.1 Pro. SWE-bench Pro is stricter — Claude Fable 5's 80.3% still leads.
Cost-Performance Comparison
Per Artificial Analysis: Claude Fable 5 costs $3.48 per Strategy & Ops index task (score 50). DeepSeek V4-Pro costs $0.03 (score 38). V4-Flash stays under $0.04 across six index categories. Fable 5 is 116× more expensive than V4-Pro for ~12 points higher (31%).
| Dimension | DeepSeek V4-Pro | GPT-5.6 Sol | Claude Fable 5 |
|---|---|---|---|
| Open Source | ✅ MIT | ❌ Closed | ❌ Closed |
| Self-Hostable | ✅ | ❌ | ❌ |
| Context Window | 1M tokens | not disclosed | 1M tokens |
| API Output (off-peak) | $0.87/M | ~$15/M | $50/M |
| Peak Output | $1.74/M | — | — |
| Agent Capability | Strong, multi-Agent orchestration | Strong | Strongest |
| Best For | Budget / private deploy / long context | Complex algorithms + math | Peak code quality, cost no object |
- Budget / high-frequency / private deploy: V4-Pro or V4-Flash
- Peak code quality, cost no object: Claude Fable 5 (highest SWE-bench Pro)
- Complex algorithms + math: GPT-5.6 Sol / Ultra
- Massive log/document processing: V4-Flash cache-hit input at only $0.0028/M
04 Peak-Valley Billing: Full Price Table & Cost-Saving Tips
GA's most debated change — like time-of-use electricity pricing. Peak hours: Beijing weekdays 09:00–12:00 and 14:00–18:00, rates double.
| Model | Billing Item | Off-Peak | Peak |
|---|---|---|---|
| V4-Pro | Input (cache hit) | ¥0.025 / $0.0035 / 1M | 2× |
| V4-Pro | Input (cache miss) | ¥3.00 / $0.435 / 1M | ¥6.00 / $0.87 |
| V4-Pro | Output | ¥6.00 / $0.87 / 1M | ¥12.00 / $1.74 |
| V4-Flash | Input (cache hit) | ¥0.02 / $0.0028 / 1M | 2× |
| V4-Flash | Input (cache miss) | ¥1.00 / $0.14 / 1M | ¥2.00 / $0.28 |
| V4-Flash | Output | ¥2.00 / $0.28 / 1M | ¥4.00 / $0.56 |
Four ways to cut costs:
- Schedule non-real-time work off-peak: Batch document processing, labeling, and code review after 18:00 or before 09:00
- Maximize cache hits: Reuse System Prompts via Prompt Cache — Flash cache-hit input is only $0.0028/M, nearly free
- Route with Flash: Simple intent detection and routing on V4-Flash; escalate complex reasoning to V4-Pro
- Watch for billing alerts: DeepSeek promises 24-hour advance email notice before any pricing change
Even at peak, V4-Pro output ($1.74/M) is 8.6× cheaper than Claude Opus 4.8 ($15/M) and GPT-5.6 Sol (~$15/M).
05 deepseek-chat Sunset: 6-Step API Migration (Deadline July 24)
⚠️ Critical: Legacy model IDs deepseek-chat and deepseek-reasoner stop working on July 24, 2026 at 15:59 UTC (23:59 Beijing time).
| Old Model ID | New Model ID | Notes |
|---|---|---|
deepseek-chat | deepseek-v4-flash (non-thinking) | Fast, lightweight tasks |
deepseek-reasoner | deepseek-v4-flash (thinking mode) | Or upgrade to deepseek-v4-pro for stronger reasoning |
- Search your entire codebase: Find every reference to
deepseek-chatanddeepseek-reasonerin code, CI configs, and environment variables. - Pick migration targets: Lightweight chat →
deepseek-v4-flash(Non-think). Former reasoner workloads → Flash thinking mode ordeepseek-v4-pro. - Update OpenAI SDK calls: Change the
modelparameter; enable thinking mode viaextra_body. - Verify Anthropic SDK compatibility: Keep
base_urlathttps://api.deepseek.com; updatemodelonly. - Staging load test: Before July 24, validate billing in both off-peak and peak windows; confirm Prompt Cache hit rates.
- Production cutover & monitoring: Canary-deploy new model IDs, watch error rates and token costs; keep a rollback window until the deadline.
# ❌ Old (stops working after July 24)
client.chat.completions.create(
model="deepseek-chat",
messages=[...]
)
# ✅ New — OpenAI SDK
client.chat.completions.create(
model="deepseek-v4-pro",
messages=[...],
# extra_body={"thinking": {"type": "enabled", "budget_tokens": 8000}}
)
# ✅ Anthropic SDK compatible
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!"}]
)
06 Citeable Data, Summary & Engineering Recommendations
- SWE-bench Verified: 80.6% — current open-source best, tied with Gemini 3.1 Pro
- 1M context KV cache: 10% of V3.2 (Flash 7%); inference FLOPs at 27% of V3.2
- V4-Pro output pricing: $0.87/M off-peak, $1.74/M peak — roughly 1/10 to 1/100 of closed-source flagships
- Artificial Analysis per-task cost: V4-Pro $0.03 vs Fable 5 $3.48 (116× gap)
- API migration deadline: 2026-07-24 15:59 UTC
- License: MIT — self-hosting and data residency supported
DeepSeek V4 GA is one of 2026's most important open-source milestones. It may not beat Claude Fable 5 or GPT-5.6 on every hard task yet — but it delivers undisputed open-source peak performance at 1/10 to 1/100 the cost of closed flagships. Peak-valley billing adds complexity, yet pricing remains highly competitive — a sign of maturation from "price disruptor" to "rules-based commercial platform."
Primary references below; pricing, capabilities, and migration policies may change — re-check links after release:
Official & technical documentation:
DeepSeek API Official Documentation
arXiv:2606.19348 — DeepSeek V4 Technical Paper
Third-party benchmarks & analysis:
Artificial Analysis — Model Cost-Performance Evaluation
HuggingFace — DeepSeek Model Hub
For teams running DeepSeek V4 Agents alongside Xcode and Metal toolchains on stable hardware, pure API calls still face latency and quota volatility. Shared VM / cloud virtual Mac setups add Hypervisor overhead and iOS CI compatibility issues. If your production environment needs zero-overhead Apple Silicon, 7×24 uptime, stable iOS CI/CD, and AI Agent automation (e.g., running Claude Code / Codex on bare-metal Mac with multi-model API routing), ZUKCLOUD bare-metal Mac mini cloud nodes are typically the more controllable choice — dedicated physical machines, no virtualization tax, flexible daily/weekly/monthly billing. See pricing and order, or read the bare-metal architecture manifesto and DeepSeek compute infrastructure article for Agent-grade hosting logic.
If you are still on deepseek-chat, complete your API migration before July 24 — or your service will go down.