After three months of preview access, DeepSeek V4 officially hit general availability (GA) on July 20, 2026. The full release brings meaningful upgrades across agentic tasks, math, and coding — plus something the community has never seen from DeepSeek: time-based peak pricing.
This guide is written for developers evaluating API options, open-weight models, and production cost control. You will get the architecture breakdown, benchmark numbers, pricing tables, an honest comparison against GPT-5.6 and Claude Fable 5, and a migration checklist before the July 24 deadline.
01 What Changed in the GA Release vs. the April Preview?
Real pain points before you switch:
- Legacy endpoints expire July 24:
deepseek-chatanddeepseek-reasonerwill be permanently disabled. Unmigrated production code breaks immediately. - Peak pricing adds scheduling overhead: Rates double on weekdays 09:00–12:00 and 14:00–18:00 Beijing time. 24/7 agent pipelines need rescheduling.
- GA performance differs from preview: Agent, math, and code capabilities received targeted improvements. April benchmarks are no longer reliable.
- Pro vs Flash routing matters: 1.6T and 284B specs are very different. Wrong routing wastes budget or sacrifices quality.
| Date | Event |
|---|---|
| Apr 24, 2026 | V4 preview + MIT open source: V4-Pro (1.6T) and V4-Flash (284B) |
| May 2026 | Production-tuned V4-Flash and V4-Pro, API generally available |
| Jun 2026 | V4-Pro output price permanently cut 75% to $0.87/M tokens |
| Jun 29, 2026 | Email to all API users: GA mid-July, first disclosure of peak-valley pricing |
| Jul 19, 2026 | GA gray-release access for selected developers; media reports imminent launch |
| Jul 20, 2026 | GA officially live |
| Jul 24, 2026 | deepseek-chat / deepseek-reasoner permanently retired |
The GA release is not a new architecture — it is the April preview graduating into production with stability improvements and a formal commercial pricing structure.
02 How DeepSeek V4 Makes 1M Tokens Practical at Scale
| Spec | V4-Pro | V4-Flash |
|---|---|---|
| Total Parameters | 1.6 trillion | 284 billion |
| Active per Token | 49B (3% of total) | 13B (4.6% of total) |
| Layers | 61 | 43 |
| Context Window | 1,000,000 tokens | 1,000,000 tokens |
| Max Output | 384K tokens | 384K tokens |
| Precision | FP4 (MoE experts) + FP8 (rest) | FP4 + FP8 mixed |
| Training Data | 33T+ tokens | 32T+ tokens |
| License | MIT | MIT |
DeepSeek replaced Multi-head Latent Attention (MLA) from V2/V3 with a two-track hybrid system:
- Compressed Sparse Attention (CSA): Compresses KV entries 4x via softmax-gated pooling, then uses an FP4 lightning indexer for top-k selection (top-1024 on Pro, top-512 on Flash), plus a 128-token sliding window. At 1M tokens, inference needs only 27% of V3.2 FLOPs.
- Heavily Compressed Attention (HCA): 128x compression followed by dense global attention. Captures long-range patterns CSA might miss. CSA and HCA alternate across layers.
- Manifold-Constrained Hyper-Connections (mHC): A 4-channel residual stream governed by a doubly stochastic matrix keeps gradients stable through 61 deep layers.
- Muon Optimizer: Newton-Schulz orthogonalization conditions gradient steps better than AdamW, enabling faster convergence.
Net result: KV cache at 1M tokens drops to 10% of V3.2 memory (7% on V4-Flash).
| Mode | Description | When to Use |
|---|---|---|
| Non-think | Fast, no chain of thought | Simple queries, routing, classification |
| Think High | Explicit reasoning in thinking blocks | Debugging, medium complexity tasks |
| Think Max | Maximum reasoning effort (384K+ context) | Complex math, multi-step agent planning |
Official recommended sampling: temperature=1.0, top_p=1.0 for all modes.
03 Is DeepSeek V4 Better Than GPT-5.6? Benchmark Numbers
| Benchmark | DeepSeek V4-Pro | Claude Fable 5 | GPT-5.6 Ultra | Claude Opus 4.8 |
|---|---|---|---|---|
| SWE-bench Verified | 80.6% (open-weight record) | 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% |
Per Artificial Analysis on Strategy & Ops tasks: Claude Fable 5 scores 50 at $3.48 per task; DeepSeek V4-Pro scores 38 at $0.03 per task. That is 116x cheaper for a 24% performance gap.
| Dimension | DeepSeek V4-Pro | GPT-5.6 Sol | Claude Fable 5 |
|---|---|---|---|
| Open weights / self-hostable | Yes (MIT) | No | No |
| 1M context | Yes | Not confirmed | Yes |
| Output cost (off-peak) | $0.87/M | ~$15/M | ~$50/M |
| Output cost (peak) | $1.74/M | — | — |
| Best overall coding | Second tier | Second tier | Leads SWE-bench Pro |
| Data sovereignty | Self-host possible | No | No |
Pick V4-Pro or V4-Flash for budget, high-volume, or self-hosted workloads. Pick Claude Fable 5 for the hardest multi-file repo work. Pick GPT-5.6 for terminal-heavy agentic workflows and M365/Azure integration.
04 What Is DeepSeek Peak-Valley Pricing and How to Cut Costs?
The most significant GA change: time-based pricing. Rates double during Beijing weekday peak hours: 09:00–12:00 and 14:00–18:00.
| Model | Item | Off-Peak | Peak |
|---|---|---|---|
| V4-Pro | Input (cache hit) | $0.0035/1M | 2x |
| V4-Pro | Input (cache miss) | $0.435/1M | $0.87/1M |
| V4-Pro | Output | $0.87/1M | $1.74/1M |
| V4-Flash | Input (cache hit) | $0.0028/1M | 2x |
| V4-Flash | Input (cache miss) | $0.14/1M | $0.28/1M |
| V4-Flash | Output | $0.28/1M | $0.56/1M |
Four practical cost cuts:
- Schedule batch jobs off-peak: Run bulk summarization, code review, and data pipelines after 18:00 or before 09:00 Beijing time.
- Maximize cache hit rate: Static system prompts first. V4-Flash cache hits cost just $0.0028/M.
- Route simple queries to V4-Flash: Intent classification and FAQ responses on Flash; escalate complex reasoning to Pro.
- Monitor billing emails: DeepSeek sends 24-hour advance notice on pricing changes.
Even at peak, V4-Pro output at $1.74/M is 8.6x cheaper than Claude Opus 4.8 ($15/M) and GPT-5.6 Sol (~$15/M).
05 How to Migrate from deepseek-chat Before July 24
Deadline: July 24, 2026, 15:59 UTC. Legacy names deepseek-chat and deepseek-reasoner will be permanently disabled.
| Old Model | New Equivalent | Notes |
|---|---|---|
| deepseek-chat | deepseek-v4-flash (non-thinking) | Drop-in for most chat use cases |
| deepseek-reasoner | deepseek-v4-flash (thinking mode) | Or upgrade to deepseek-v4-pro |
# Old (stops working July 24)
client.chat.completions.create(
model="deepseek-chat",
messages=[...]
)
# New
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 API formats. Base URL stays the same; only update the model name.
Primary official sources — re-check links after any upstream update:
https://arxiv.org/abs/2606.19348
https://huggingface.co/deepseek-ai
Six-step migration checklist:
- Search your codebase: Find all references to
deepseek-chatanddeepseek-reasonerin code, CI configs, and env vars. - Map replacements: Lightweight chat to
deepseek-v4-flash(Non-think); reasoning to Flash thinking mode ordeepseek-v4-pro. - Update SDK calls: OpenAI-compatible clients only need a model name change. Anthropic SDK keeps
base_url=https://api.deepseek.com. - Configure thinking mode: Former reasoner users enable thinking via
extra_body. Think Max requires 384K+ context. - Test in staging: Complete end-to-end validation before July 24. Verify peak pricing impact on your budget.
- Cron off-peak batch jobs: Schedule document processing and code review after 18:00 or on weekends. Combine with Prompt Cache for maximum savings.
Citable technical data:
- SWE-bench Verified 80.6%: Best open-weight score, tied with Gemini 3.1 Pro (source: DeepSeek official docs, Jul 2026).
- KV cache at 10%: 1M-token scenarios use only 10% of V3.2 memory; V4-Flash as low as 7% (source: arXiv:2606.19348).
- 116x cost advantage: Artificial Analysis Strategy & Ops: V4-Pro $0.03/task vs Fable 5 $3.48/task (source: Artificial Analysis, Jul 2026).
Bottom line: DeepSeek V4 GA is not about beating Claude Fable 5 or GPT-5.6 on every benchmark — it is about delivering the strongest open-weight performance at 1/10 to 1/100 the cost of closed-source frontier models.
When wiring DeepSeek V4 API into a local OpenClaw Gateway or Cursor agent stack, a sleeping Mac interrupts long SWE-bench-style runs, and peak-hour 24/7 pipelines are hard to schedule on a laptop. Pure API calls need no local GPU, but hybrid setups (local gateway + cloud inference + always-on orchestration) often lack a stable host for agent loops. For production environments running AI coding agents, OpenClaw multi-model routing, or 24/7 agent cycles, CALMVPS bare-metal Mac Mini rental is usually the better choice: dedicated Apple Silicon, Metal-native acceleration, flexible monthly billing, ~120-second delivery. See the pricing page.