Home / Blog / DeepSeek V4
ENGINEERING_BLOG · 2026.07.20

DeepSeek V4 Full Release (July 2026):
Pricing, Benchmarks & How It Stacks Up Against GPT-5.6

After three months of preview access, DeepSeek V4 GA went live on July 20, 2026. The production release adds measurable gains in Agent orchestration, math reasoning, and code generation, plus the first peak-valley pricing tier in DeepSeek's API history. If you are an indie developer, AI engineer, or team still calling deepseek-chat, this guide delivers what you need to decide fast: preview-to-GA timeline, V4-Pro/Flash specs (CSA+HCA, mHC, Muon), benchmark tables, head-to-head vs GPT-5.6 and Claude Fable 5, peak-valley cost tactics, a six-step migration before the July 24 sunset, citable technical data, and FAQ.

SECTION 01 What Pain Points Hit Developers Before DeepSeek V4 GA?

  • Legacy endpoints are dying: deepseek-chat and deepseek-reasoner shut down permanently at 23:59 Beijing time on July 24. Unmigrated production code breaks overnight.
  • Peak-valley pricing adds scheduling overhead: GA billing doubles rates during Beijing weekday peaks (09:00–12:00, 14:00–18:00). Batch inference jobs scheduled blindly can blow budgets.
  • Preview docs understate GA capability: The April preview was strong, but GA improves Agent workflows and long-chain code generation. Architecture reviews stuck on April numbers miss the production upgrade.
  • Closed flagship cost pressure: Claude Fable 5 output runs about $50/M; GPT-5.6 Sol about $15/M. High-frequency API teams need a self-hostable MIT alternative.
  • 1M context is easy on paper, hard in memory: KV cache footprint — not the token limit — is the real bottleneck. V4's architecture is why memory drops to roughly 10% of V3.2 at 1M tokens.

Bottom line: DeepSeek V4 GA is one of 2026's defining open-model milestones — delivering the strongest open-weight composite performance at roughly 1/10 to 1/100 closed-flagship cost (SWE-bench Verified 80.6%, the open-source record), while introducing disciplined peak-valley commercial pricing for the first time.

SECTION 02 Preview to GA: DeepSeek V4 Release Timeline

DeepSeek V4 key milestones (2026)
Date Event
April 24 V4 preview release and MIT open weights — V4-Pro (1.6T) and V4-Flash (284B)
May Production-tuned V4-Flash and V4-Pro; API generally available
June V4-Pro output price cut 75% permanently to $0.87/M tokens — historic value tier
June 29 DeepSeek emails all API users: GA mid-July, first disclosure of peak-valley billing
July 19 Multiple developers receive GA gray-release access; press reports full release imminent
July 20 GA production release (publication date of this article)
July 24 Legacy endpoints deepseek-chat and deepseek-reasoner permanently retired

SECTION 03 V4-Pro vs V4-Flash Architecture: How 1M Context Actually Works

DeepSeek V4 model family specifications
Spec V4-Pro V4-Flash
Total parameters 1.6 trillion (1.6T) 284 billion (284B)
Active params 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 (remainder) FP4 + FP8 mixed
Pretraining data 33T+ tokens 32T+ tokens
License MIT MIT

Standard Transformers grow KV cache linearly with context — 1M tokens was impractical until V4. Three architectural changes make it viable:

  • Hybrid attention (CSA + HCA): Compressed Sparse Attention (CSA) pools the KV sequence 4× via Softmax gating, then uses an FP4 "lightning indexer" for top-k sparse selection (Pro: top-1024, Flash: top-512) plus a 128-token sliding window. Heavy Compressed Attention (HCA) compresses tokens 128× for global dense attention, alternating with CSA. At 1M context, inference FLOPs drop to 27% of V3.2; KV cache memory to 10% (Flash as low as 7%).
  • Manifold-Constrained Hyper-Connections (mHC): Four-channel residual streams with doubly-stochastic matrix constraints (Birkhoff polytope) keep signal stable across 61 layers.
  • Muon optimizer: Training uses Muon instead of AdamW, with Newton-Schulz orthogonalized gradients for faster, more stable convergence.
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, code debugging
Think Max Maximum reasoning depth; needs 384K+ context Hard math, long-chain Agents

Official recommended sampling: temperature=1.0, top_p=1.0 across all modes.

SECTION 04 Benchmark Scorecard: V4-Pro vs Closed Flagships

V4-Pro core evaluation data
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% 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%

Per Artificial Analysis: Claude Fable 5 costs $3.48 per Strategy & Ops index task (score 50); DeepSeek V4-Pro costs $0.03 on the same task (score 38) — a 116× cost gap for roughly 12 points (31%) on score. V4-Flash stays under $0.04 per run across all six index task categories.

SECTION 05 DeepSeek V4 vs GPT-5.6 and Claude Fable 5: Which Should You Pick?

Three-way flagship positioning
Dimension DeepSeek V4-Pro GPT-5.6 Sol Claude Fable 5
Open / self-hostable MIT, yes Closed Closed
Context window 1M tokens Not disclosed 1M tokens
API output (off-peak) $0.87/M ~$15/M $50/M
API output (peak) $1.74/M
Code capability Very strong (near Fable 5) Very strong Strongest (SWE-bench Pro lead)
Data privacy Private deploy possible Cloud only Cloud only
  • Tight budget / high call volume / private deploy: V4-Pro or V4-Flash first.
  • Maximum code quality, cost secondary: Claude Fable 5 (SWE-bench Pro 80.3%).
  • Hard algorithms and math reasoning: GPT-5.6 Sol / Ultra — see our GPT-5.6 Sol Ultra math reasoning breakdown.
  • Massive log or document ingestion on a budget: V4-Flash cache-hit input at only $0.0028/M.

SECTION 06 Peak-Valley Pricing Explained: Four Ways to Cut Your Bill

The biggest GA billing change mirrors time-of-use electricity: weekday peak hours double the rate (Beijing time 09:00–12:00 and 14:00–18:00).

V4-Pro / V4-Flash full price table (per 1M tokens)
Model Line item Off-peak Peak
V4-Pro Input (cache hit) ¥0.025 / $0.0035 2× off-peak
V4-Pro Input (cache miss) ¥3.00 / $0.435 ¥6.00 / $0.87
V4-Pro Output ¥6.00 / $0.87 ¥12.00 / $1.74
V4-Flash Input (cache hit) ¥0.02 / $0.0028 2× off-peak
V4-Flash Input (cache miss) ¥1.00 / $0.14 ¥2.00 / $0.28
V4-Flash Output ¥2.00 / $0.28 ¥4.00 / $0.56
  • Schedule non-real-time work off-peak: Batch document processing, labeling, and code review after 18:00 or before 09:00 Beijing time.
  • Maximize prompt cache: V4-Flash cache hits at $0.0028/M — structure stable system prompts at the front.
  • Route with Flash first: Simple intent classification on V4-Flash; escalate hard tasks to V4-Pro.
  • Watch email alerts: DeepSeek commits to 24-hour notice before any billing change.

Even at peak, V4-Pro output at $1.74/M remains 8.6× cheaper than Claude Opus 4.8 ($15/M) and GPT-5.6 Sol (~$15/M).

SECTION 07 Migrate Before deepseek-chat Dies: Six-Step API Guide

Hard deadline: Legacy model names deepseek-chat and deepseek-reasoner stop responding at 15:59 UTC on July 24, 2026 (23:59 Beijing time).

Migration mapping
Legacy model New model Notes
deepseek-chat deepseek-v4-flash (non-thinking mode) Fast path for lightweight tasks
deepseek-reasoner deepseek-v4-flash (thinking mode) Or upgrade to deepseek-v4-pro for stronger reasoning
  1. Search the codebase for legacy names: Grep for deepseek-chat and deepseek-reasoner across application code, CI configs, and environment variables. List every call site.
  2. Pick target models: Lightweight chat → deepseek-v4-flash; complex reasoning → deepseek-v4-pro with thinking mode enabled.
  3. Update OpenAI SDK calls: Change only the model parameter; keep base_url at https://api.deepseek.com.
  4. Configure thinking mode (optional): Pass thinking settings via extra_body; budget at least 8000 tokens to start.
  5. Validate in staging: Run end-to-end regression before July 24 — focus on Agent long chains and cache hit behavior.
  6. Cut over production with monitoring: Gray-release new model IDs, watch peak-hour bills and latency, confirm peak-valley charges match expectations.
migrate_api.py
client.chat.completions.create(
    model="deepseek-chat",
    messages=[...]
)

client.chat.completions.create(
    model="deepseek-v4-pro",
    messages=[...],
    extra_body={"thinking": {"type": "enabled", "budget_tokens": 8000}}
)

V4 supports both OpenAI ChatCompletions and Anthropic Messages formats. With the Anthropic SDK, update model only and point base_url to https://api.deepseek.com.

SECTION 08 Citable Technical Data and Authoritative Sources

  • Open-source record: SWE-bench Verified 80.6% — tied with Gemini 3.1 Pro for the open-weight high.
  • Context efficiency: At 1M tokens, KV cache memory is 10% of V3.2 (Flash: 7%).
  • Price floor: V4-Pro output $0.87/M off-peak, $1.74/M peak — still far below closed flagships.
  • Migration cutoff: 2026-07-24 23:59 Beijing time; legacy endpoints permanently removed.
  • License: V4-Pro and V4-Flash both ship under MIT — commercial use and self-hosting allowed.
  • Sampling defaults: Official recommendation temperature=1.0, top_p=1.0.

Re-open these sources after upstream updates to verify specs and benchmark claims:

DeepSeek API official documentation

arXiv:2606.19348 — DeepSeek V4 technical paper

Hugging Face — DeepSeek model repository

Artificial Analysis — model cost-efficiency and Intelligence Index

DeepSeek V4 GA is not about beating Claude Fable 5 or GPT-5.6 on every chart today — it is about open-weight peak performance at a fraction of the cost. Teams that also need native Mac iOS CI/CD, Metal-accelerated inference, or 24/7 Agent pipelines still hit three API-only limits: (1) cross-border data compliance risk; (2) local Mac sleep kills always-on Agents; (3) macOS VMs carry hypervisor overhead and Metal compatibility gaps. For production environments requiring zero-overhead native Apple compute, stable iOS CI/CD, and always-on AI Agent automation, MACNOX cloud physical Mac nodes are usually the better fit: 100% genuine Apple hardware, full root access, no hypervisor tax, flexible daily/weekly/monthly billing. See our Kimi K3 open-source LLM review, DeepSeek custom silicon and compute layout analysis, and GPT-5.6 Sol Ultra multi-agent workflow breakdown.

SECTION 09 FAQ

How does DeepSeek V4 GA differ from the April preview?

Same core architecture (MoE + CSA/HCA). GA adds production tuning for Agent tasks, math reasoning, and code generation, plus peak-valley billing. The preview was already capable; GA is the stability and commercialization upgrade.

When are peak billing hours?

Beijing weekday 09:00–12:00 and 14:00–18:00 — rates double. Weekends and public holidays bill at off-peak rates.

V4-Pro or V4-Flash — which should I use?

Flash is cheaper and faster — ideal for routing and lightweight tasks. Pro delivers stronger reasoning for complex code and long-chain Agents. Run Flash as a first filter; escalate hard work to Pro.

How long can I still use deepseek-chat?

Until 23:59 Beijing time on July 24, 2026. Migrate to deepseek-v4-flash or deepseek-v4-pro before then.

Can DeepSeek V4 beat GPT-5.6 overall?

Closed flagships still lead composite benchmarks, but V4-Pro wins on LiveCodeBench and Codeforces-style tasks while costing roughly 1/17 of GPT-5.6. Pick by scenario and budget, not a single score.

Can I self-host DeepSeek V4?

Yes. Both V4-Pro and V4-Flash are MIT-licensed; weights are on Hugging Face. Production 1.6T MoE inference needs a large GPU cluster — see our DeepSeek compute and custom silicon analysis.