DeepSeek V4 GA release: MoE architecture, 1M context window, and peak-valley API pricing overview

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

After three months of preview access, DeepSeek V4 general availability (GA) went live on July 20, 2026. Compared with the April preview, the production build delivers targeted upgrades in agents, math reasoning, and code generation—and for the first time, peak-valley API pricing. That shift marks DeepSeek's move from "nearly free" toward disciplined commercial operations. This guide, grounded in official docs and the technical report, walks through the timeline, architecture, benchmarks, comparison with GPT-5.6 and Claude Fable 5, peak-valley pricing, and the July 24 API migration deadline.

1. Three selection pain points: GA changes, billing complexity, and migration urgency

  1. Preview ≠ production final state: April's architecture was already strong, but GA adds targeted tuning for agent orchestration, math, and code—while legacy model names deepseek-chat and deepseek-reasoner retire permanently at 23:59 Beijing time on July 24. Delaying migration is an outage you schedule yourself.
  2. Peak-valley billing adds ops overhead: Weekday peak hours in Beijing time (09:00–12:00 and 14:00–18:00) double rates. Batch inference, code review, and data labeling must move off-peak—or your bill can double unexpectedly.
  3. "Best open model" ≠ "best closed model": V4-Pro sets an open-weight record on SWE-bench Verified at 80.6%, but Claude Fable 5 still leads on Verified (96.0%) and Pro (80.3%). Pick on capability ÷ price, not a single leaderboard row.

2. Timeline: from preview to full release

Date Event
2026-04-24 V4 preview launches under MIT license: V4-Pro (1.6T) and V4-Flash (284B)
2026-05 Production-tuned V4-Flash and V4-Pro ship; API goes live
2026-06 V4-Pro output price cut 75% permanently ($0.87/M tokens)—the most cost-effective window on record
2026-06-29 DeepSeek emails all API users: GA mid-July, first disclosure of peak-valley pricing
2026-07-19 Multiple developers receive GA gray-release access; media reports "full release as soon as tomorrow"
2026-07-20 GA production release (publication date of this article)
2026-07-24 Legacy endpoints deepseek-chat and deepseek-reasoner permanently disabled

In one sentence: the preview was already capable; GA layers agent upgrades, math and code gains, and a formal commercial billing system on top.

3. Architecture deep dive: how 1 million tokens of context actually works

3.1 Model family specifications

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 (rest) FP4 + FP8 mixed
Pre-training data 33T+ tokens 32T+ tokens
License MIT MIT

3.2 Hybrid attention: CSA + HCA

DeepSeek V4 drops the Multi-head Latent Attention (MLA) from V2/V3 in favor of a hybrid of two new mechanisms:

  • Compressed Sparse Attention (CSA): KV sequences are compressed via softmax-gated pooling, then an FP4 "lightning indexer" performs top-k sparse selection (top-1024 on V4-Pro, top-512 on V4-Flash), while retaining a 128-token sliding window for recent context. At 1M tokens, inference needs only 27% of the FLOPs compared with V3.2.
  • Heavily Compressed Attention (HCA): Tokens are compressed 128× before global dense attention to capture long-range dependencies, complementing CSA. V4-Flash uses HCA in the first two layers, then alternates CSA/HCA; V4-Pro follows a similar pattern.

Net effect: at 1M tokens, KV cache memory drops to 10% of V3.2 (as low as 7% on V4-Flash)—the same hardware serves longer contexts at far lower cost.

3.3 Manifold-Constrained Hyper-Connections (mHC) and the Muon optimizer

mHC upgrades standard residual connections with a 4-channel residual stream. A mixing matrix constrained to doubly stochastic form (Birkhoff polytope) keeps signals stable through 61 deep layers—deeper networks, more stable training.

Muon (replacing standard AdamW) applies Newton–Schulz orthogonalization to gradients for better-conditioned steps, faster convergence, and stabler training runs.

3.4 Three reasoning modes and official sampling defaults

Mode Behavior Best for
Non-think No chain of thought; fastest response Simple Q&A, routing
Think High Explicit reasoning (<redacted_thinking> tags) Medium-complexity tasks, code debugging
Think Max Maximum reasoning effort; needs 384K+ context Complex math, long-chain agents

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

4. Benchmark scores: the open-weight leader's report card

4.1 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-weight best) 96.0% Not published separately ~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 measures real GitHub bug fixes—80.6% is the current open-model high, tied with Gemini 3.1 Pro. SWE-bench Pro is stricter; Claude Fable 5's 80.3% still leads there.

4.2 Cost-performance cross-check (Artificial Analysis)

  • Claude Fable 5: Strategy & Ops index tasks cost $3.48 each, scoring 50 points
  • DeepSeek V4-Pro: Same task class costs $0.03, scoring 38 points
  • DeepSeek V4-Flash: All six index task types stay below $0.04 per run

Fable 5 costs 116× more than V4-Pro while scoring only ~12 points higher (~31%). For most production workloads, V4-Pro's value is hard to beat.

5. Full comparison vs GPT-5.6 and Claude Fable 5

Dimension DeepSeek V4-Pro GPT-5.6 Sol Claude Fable 5
Open weights MIT; self-hostable Closed Closed
Context window 1M tokens Not disclosed 1M tokens
Coding ability Very strong (near Fable 5) Very strong Strongest
API output price (off-peak) $0.87/M tokens ~$15/M $50/M
Peak output price $1.74/M tokens
Agent capability Strong; multi-agent orchestration Strong Strongest
Data privacy Private deployment possible Cloud only Cloud only

Scenario picker:

  • Tight budget / high call volume / private deployment: V4-Pro or V4-Flash first
  • Maximum code quality, cost secondary: Claude Fable 5 (highest SWE-bench Pro score)
  • Complex algorithms and math reasoning: GPT-5.6 Sol / Ultra
  • Massive log or document processing on a budget: V4-Flash (cache-hit input at $0.0028/M)

6. Peak-valley pricing explained: how to keep costs down

The GA release's most watched change: DeepSeek's first time-of-use pricing, similar to time-of-day electricity rates. Peak hours (Beijing time): weekdays 09:00–12:00 and 14:00–18:00, with rates doubled.

Model Line item Off-peak Peak
V4-Pro Input (cache hit) ¥0.025 / $0.0035 / 1M
V4-Pro Input (cache miss) ¥3.00 / $0.435 / 1M ¥6.00 / $0.87 / 1M
V4-Pro Output ¥6.00 / $0.87 / 1M ¥12.00 / $1.74 / 1M
V4-Flash Input (cache hit) ¥0.02 / $0.0028 / 1M
V4-Flash Input (cache miss) ¥1.00 / $0.14 / 1M ¥2.00 / $0.28 / 1M
V4-Flash Output ¥2.00 / $0.28 / 1M ¥4.00 / $0.56 / 1M

Four cost-saving tactics:

  1. Schedule non-real-time work off-peak: batch document processing, labeling, and code review after 18:00 or before 09:00.
  2. Maximize cache hits: reuse System Prompts via Prompt Cache; V4-Flash cache-hit input costs only $0.0028/M—effectively free.
  3. Route with Flash first: intent classification and routing on V4-Flash; escalate hard reasoning to V4-Pro.
  4. Watch billing notification email: DeepSeek commits to 24-hour advance 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).

7. Developer guide: API migration (deadline July 24)

Critical: legacy model names deepseek-chat and deepseek-reasoner stop working at July 24, 2026, 15:59 UTC (23:59 Beijing time).

Legacy model New model Notes
deepseek-chat deepseek-v4-flash (non-thinking mode) Fast; suited to lightweight tasks
deepseek-reasoner deepseek-v4-flash (thinking mode) Or upgrade to deepseek-v4-pro for stronger reasoning

7.1 Five-step migration checklist

  1. Search the entire repo: grep code, CI, and environment variables for deepseek-chat and deepseek-reasoner.
  2. Map by scenario: lightweight chat → deepseek-v4-flash; former reasoner → flash thinking mode or deepseek-v4-pro.
  3. Update OpenAI SDK calls: change only the model parameter; add extra_body for thinking mode.
  4. Configure peak-valley scheduling: cron batch jobs off-peak; pin System Prompts to improve cache hit rate.
  5. Validate in staging: run core paths before July 24; confirm zero legacy model names remain.

7.2 Python example (OpenAI SDK)

# Legacy (stops working after July 24)
client.chat.completions.create(
    model="deepseek-chat",
    messages=[...]
)

# Current
client.chat.completions.create(
    model="deepseek-v4-pro",          # or deepseek-v4-flash
    messages=[...],
    # Thinking mode control:
    # extra_body={"thinking": {"type": "enabled", "budget_tokens": 8000}}
)

7.3 Anthropic SDK compatibility

V4 supports both OpenAI ChatCompletions and Anthropic Messages formats. Keep base_url unchanged; update model only:

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!"}]
)

8. FAQ

Q: What changed between preview and GA?
Architecture is the same. GA improves agents, math, and code generation, and introduces peak-valley billing for the first time. Legacy endpoints deepseek-chat and deepseek-reasoner retire on July 24.

Q: When are peak billing hours?
Beijing time on weekdays: 09:00–12:00 and 14:00–18:00. Rates double; off-peak V4-Pro output stays at $0.87/M tokens.

Q: V4-Pro or V4-Flash?
V4-Pro (1.6T / 49B active) for complex reasoning and code agents. V4-Flash (284B / 13B active) for routing and high-frequency light tasks—with cache-hit input at $0.0028/M.

Q: Can V4 beat GPT-5.6?
Claude Fable 5 still leads top benchmarks, but V4-Pro sets the open-weight SWE-bench Verified record at 80.6% at roughly 1/10 to 1/100 of closed flagship output pricing.

Q: Still on deepseek-chat?
Migrate before July 24 or your calls will fail.

9. Summary: GA is one of 2026's most important open-model milestones

DeepSeek V4 GA is the default pick for teams that cannot send data offshore, budget-conscious indie developers, agent engineers who need 1M-token context, and AI product squads optimizing unit economics—V4-Pro has almost no weak spot at its price point.

Peak-valley billing adds operational complexity, but off-peak rates remain aggressively competitive—a sign of maturation, not regression. The value is not beating Claude Fable 5 or GPT-5.6 on every benchmark today; it is delivering the strongest open-weight performance at a fraction of closed API cost.

If you are running V4 weights locally or on a VPS for agent integration, Windows/Linux setups lack Apple's Xcode, Metal, and unified memory advantages; closing a laptop lid kills always-on cron batch jobs and SFTP/rsync workspace sync. An always-on Apple Silicon remote Mac is a better host for peak-valley scheduling, cron batches, and local inference benchmarkingSFTPMAC remote Mac rental provides native macOS nodes and low-latency file transfer so you can finish API migration and agent pipeline validation before the July 24 cutoff.

Sources: DeepSeek official documentation · arXiv:2606.19348 · HuggingFace model pages · LLMReference · Artificial Analysis · MangoMind Blog