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 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

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-chat and deepseek-reasoner sunset 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

DeepSeek V4 Key Timeline (2026)
Date Event
April 24V4 preview + open source (MIT): V4-Pro (1.6T) and V4-Flash (284B)
MayProduction-tuned V4-Flash and V4-Pro; API goes live
JuneV4-Pro output price permanently cut 75% (to $0.87/M tokens)
June 29Email to all API users: GA mid-July, first disclosure of peak-valley billing
July 19Gray-test access for select developers; media reports "full release as early as tomorrow"
July 20GA release (publication date of this article)
July 24Legacy APIs deepseek-chat and deepseek-reasoner permanently sunset

Model Family Overview

V4-Pro vs V4-Flash Specifications
Spec V4-Pro V4-Flash
Total Parameters1.6 trillion (1.6T)284 billion (284B)
Active Parameters / Token49 billion (49B)13 billion (13B)
Transformer Layers6143
Context Window1,000,000 tokens1,000,000 tokens
Max Output384K tokens384K tokens
PrecisionFP4 (expert weights) + FP8 (rest)FP4 + FP8 mixed
Pretraining Data33T+ tokens32T+ tokens
LicenseMITMIT

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 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

V4 Inference Modes & Use Cases
Mode Behavior Best For
Non-thinkNo chain-of-thought, fastest responseSimple Q&A, routing
Think HighExplicit reasoning (CoT tags)Medium-complexity tasks, code debugging
Think MaxMaximum reasoning depth, needs 384K+ contextComplex math, long-chain Agents

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

03

V4-Pro Core Benchmark Data
Benchmark DeepSeek V4-Pro Claude Fable 5 GPT-5.6 Ultra Claude Opus 4.8
SWE-bench Verified80.6% ★ open-source best96.0%not separately published~69%
SWE-bench Pro55.4%80.3%78.1%69.2%
LiveCodeBench (Pass@1)93.5%88.1%87.4%83.2%
Codeforces Elo3,206
Terminal-Bench 2.183.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%).

DeepSeek V4-Pro vs GPT-5.6 Sol vs Claude Fable 5
Dimension DeepSeek V4-Pro GPT-5.6 Sol Claude Fable 5
Open Source✅ MIT❌ Closed❌ Closed
Self-Hostable
Context Window1M tokensnot disclosed1M tokens
API Output (off-peak)$0.87/M~$15/M$50/M
Peak Output$1.74/M
Agent CapabilityStrong, multi-Agent orchestrationStrongStrongest
Best ForBudget / private deploy / long contextComplex algorithms + mathPeak 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

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.

V4-Pro / V4-Flash Peak-Valley Pricing (Full Table)
Model Billing Item Off-Peak Peak
V4-ProInput (cache hit)¥0.025 / $0.0035 / 1M
V4-ProInput (cache miss)¥3.00 / $0.435 / 1M¥6.00 / $0.87
V4-ProOutput¥6.00 / $0.87 / 1M¥12.00 / $1.74
V4-FlashInput (cache hit)¥0.02 / $0.0028 / 1M
V4-FlashInput (cache miss)¥1.00 / $0.14 / 1M¥2.00 / $0.28
V4-FlashOutput¥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

⚠️ Critical: Legacy model IDs deepseek-chat and deepseek-reasoner stop working on July 24, 2026 at 15:59 UTC (23:59 Beijing time).

Legacy to New Model Migration Map
Old Model ID New Model ID Notes
deepseek-chatdeepseek-v4-flash (non-thinking)Fast, lightweight tasks
deepseek-reasonerdeepseek-v4-flash (thinking mode)Or upgrade to deepseek-v4-pro for stronger reasoning
  1. Search your entire codebase: Find every reference to deepseek-chat and deepseek-reasoner in code, CI configs, and environment variables.
  2. Pick migration targets: Lightweight chat → deepseek-v4-flash (Non-think). Former reasoner workloads → Flash thinking mode or deepseek-v4-pro.
  3. Update OpenAI SDK calls: Change the model parameter; enable thinking mode via extra_body.
  4. Verify Anthropic SDK compatibility: Keep base_url at https://api.deepseek.com; update model only.
  5. Staging load test: Before July 24, validate billing in both off-peak and peak windows; confirm Prompt Cache hit rates.
  6. Production cutover & monitoring: Canary-deploy new model IDs, watch error rates and token costs; keep a rollback window until the deadline.
migrate_deepseek_v4.py
# ❌ 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

  • 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.