DeepSeek V4 Pro: 80.6% SWE-bench, Open Source, and How to Use It (2026)
August 17, 2026 Update: DeepSeek’s API now serves build V4-Pro-0813, the official GA release superseding the preview version, with the same 1.6T/49B active architecture and 1M context, but “greatly enhanced agentic capabilities” per DeepSeek’s own release notes. The bigger news for anyone budgeting API costs: DeepSeek is retiring its flat-rate pricing. Starting August 16, 2026 at 16:00 UTC, V4 Pro and V4 Flash move to peak/off-peak pricing, with peak-hour rates roughly double off-peak rates. See the updated Pricing section below for exact numbers, this is a real cost increase, not a rebrand.
DeepSeek V4 Pro landed on April 24, 2026, and it rewrites the rules for open-source AI. This is a 1.6 trillion parameter Mixture-of-Experts model with 49 billion active parameters per forward pass, a 1 million token context window, and an MIT license that lets you do whatever you want with it.
The numbers speak for themselves: 80.6% on SWE-bench Verified, 93.5% on LiveCodeBench, and a Codeforces rating of 3206 that places it 23rd among all human competitors. It matches or beats every closed-source frontier model on coding and math while costing a fraction of the price.
This guide covers the full picture: architecture, benchmarks, pricing, API setup, agentic coding workflows, and where V4 Pro still falls short. If you want the lighter variant, check out our DeepSeek V4 Flash guide.
What is DeepSeek V4 Pro?
DeepSeek V4 Pro is the flagship model in the V4 family from DeepSeek, a Chinese AI lab based in Hangzhou. It is a text-only, decoder-only transformer built on a Mixture-of-Experts architecture. The model ships under the MIT license, meaning there are zero restrictions on commercial use, fine-tuning, or redistribution.
Key specs at a glance:
- Total parameters: 1.6 trillion
- Active parameters per token: 49 billion
- Context window: 1,000,000 tokens
- Training data: 33 trillion tokens
- License: MIT (fully open)
- Release date: April 24, 2026
V4 Pro sits at the top of the DeepSeek V4 lineup. The V4 Flash variant offers a smaller, faster alternative for latency-sensitive workloads. For flash-tier comparisons, see Best Flash AI Models Compared, North Mini Code vs DeepSeek V4 Flash, Step 3.7 Flash vs DeepSeek V4 Flash, and Poolside Laguna vs DeepSeek V4 Flash. For API-specific details, see our DeepSeek V4 API guide.
Architecture deep dive
DeepSeek V4 Pro builds on the MoE foundation from V3 but introduces several architectural innovations that push efficiency and quality forward simultaneously.
Core transformer structure
The model uses 61 transformer layers with a hidden dimension of 7168. Each MoE layer contains 384 routed experts plus 1 shared expert, with 6 experts active per token. The shared expert processes every token, providing a stable baseline representation, while the router selects 6 task-specific experts from the pool of 384.
This design means only 49B of the 1.6T total parameters fire on any given token, keeping inference costs manageable despite the massive parameter count.
Hybrid CSA + HCA attention
The biggest architectural change from V3.2 is the hybrid attention mechanism combining Compressed Sparse Attention (CSA) and Hierarchical Chunked Attention (HCA). At the 1 million token context length, this hybrid approach uses only 27% of the FLOPs and 10% of the KV cache compared to V3.2’s standard attention.
This is what makes the 1M context window practical. Without the hybrid attention, serving a 1M context model at this scale would be prohibitively expensive. The CSA layers handle local patterns efficiently while HCA layers capture long-range dependencies through a hierarchical chunking strategy.
Manifold-Constrained Hyper-Connections
V4 Pro introduces Manifold-Constrained Hyper-Connections, a new residual connection design that replaces standard skip connections. Instead of simple additive residuals, hyper-connections route information through learned manifold projections between layers. This improves gradient flow during training and gives the model better control over how information propagates through the 61-layer stack.
Training details
- Optimizer: Muon optimizer, replacing AdamW from V3. Muon provides better convergence on MoE architectures by handling the sparse gradient patterns more effectively.
- Precision: FP4 + FP8 mixed precision training. Weights are stored in FP4 during forward passes with FP8 accumulation, cutting memory requirements roughly in half compared to BF16 training.
- Data: 33 trillion tokens across a multilingual corpus with heavy emphasis on code, math, and scientific text.
Three reasoning modes
DeepSeek V4 Pro supports three distinct reasoning modes that let you trade off between speed and depth of reasoning.
Non-think mode
The default mode. The model responds directly without explicit chain-of-thought reasoning. Best for simple queries, chat, summarization, and tasks where latency matters more than deep analysis.
Think High mode
Enables extended chain-of-thought reasoning. The model generates internal reasoning steps before producing its final answer. This improves performance on math, coding, and complex analytical tasks at the cost of higher token usage and latency.
To activate Think High, include the following in your system prompt:
Please think step by step before answering.
Think Max mode
The most powerful reasoning mode. Think Max uses a special system prompt that instructs the model to perform exhaustive multi-step reasoning with self-verification. This is the mode used for benchmark evaluations.
To activate Think Max, use this system prompt:
You are DeepSeek V4 Pro in maximum reasoning mode. For every problem:
1. Break it into sub-problems
2. Solve each sub-problem with detailed reasoning
3. Verify each step before proceeding
4. Cross-check your final answer against the original problem
Take as much space as you need. Accuracy matters more than brevity.
Think Max produces the best results on hard benchmarks but uses significantly more output tokens. For most production workloads, Think High offers the best quality-to-cost ratio.
Benchmarks
All scores below are for V4 Pro in Think Max mode unless noted. Competing models are also in their strongest reasoning configurations.
Coding benchmarks
| Benchmark | V4-Pro-Max | Opus 4.6 | GPT-5.4 | Gemini 3.1 Pro | K2.6 | GLM-5.1 |
|---|---|---|---|---|---|---|
| SWE-bench Verified | 80.6% | 79.8% | 78.2% | 75.1% | 74.3% | 71.9% |
| SWE-bench Pro | 55.4% | 54.1% | 52.8% | 49.6% | 48.2% | 45.7% |
| Terminal-Bench | 67.9% | 66.3% | 69.4% | 64.8% | 62.1% | 59.5% |
| LiveCodeBench | 93.5% | 91.2% | 90.8% | 88.4% | 87.1% | 84.6% |
| Codeforces (rating) | 3206 | 3104 | 3089 | 2945 | 2878 | 2756 |
V4 Pro leads on SWE-bench Verified, SWE-bench Pro, LiveCodeBench, and Codeforces. GPT-5.4 edges it out on Terminal-Bench by 1.5 points. For a detailed comparison, see DeepSeek V4 vs GPT-5.5 and DeepSeek V4 vs Claude Opus 4.6. You can also see how it stacks up against Meta’s offering in our DeepSeek V4 vs Llama 4 comparison.
Math benchmarks
| Benchmark | V4-Pro-Max | Opus 4.6 | GPT-5.4 | Gemini 3.1 Pro | K2.6 | GLM-5.1 |
|---|---|---|---|---|---|---|
| AIME 2026 | 94.3% | 92.1% | 91.7% | 89.5% | 88.2% | 85.4% |
| HMMT | 95.2% | 93.8% | 92.4% | 90.1% | 89.6% | 86.3% |
| IMOAnswerBench | 89.8% | 87.4% | 86.9% | 84.2% | 83.1% | 79.8% |
V4 Pro sweeps the math benchmarks. The Codeforces rating of 3206 places it 23rd among all human competitors on the platform, a first for any AI model. For a head-to-head with another Chinese open-source heavyweight, see DeepSeek V4 vs MiMo V2.5 Pro.
Knowledge and reasoning benchmarks
| Benchmark | V4-Pro-Max | Opus 4.6 | GPT-5.4 | Gemini 3.1 Pro | K2.6 | GLM-5.1 |
|---|---|---|---|---|---|---|
| MMLU-Pro | 87.5% | 88.1% | 89.2% | 89.2% | 86.4% | 85.1% |
| GPQA Diamond | 90.1% | 89.3% | 88.7% | 87.9% | 86.5% | 84.2% |
| HLE | 37.7% | 39.2% | 38.4% | 36.8% | 35.1% | 33.6% |
Knowledge benchmarks are more mixed. V4 Pro leads on GPQA Diamond but trails GPT-5.4 and Gemini 3.1 Pro on MMLU-Pro, and Opus 4.6 on HLE.
Tool use and agentic benchmarks
| Benchmark | V4-Pro-Max | Opus 4.6 | GPT-5.4 | Gemini 3.1 Pro | K2.6 | GLM-5.1 |
|---|---|---|---|---|---|---|
| MCPAtlas | 73.6% | 72.1% | 71.8% | 70.4% | 68.9% | 66.2% |
| Toolathlon | 51.8% | 53.4% | 52.1% | 50.7% | 49.3% | 47.1% |
V4 Pro leads on MCPAtlas but Opus 4.6 takes the top spot on Toolathlon. Tool use remains an area where all models have significant room to improve.
Pricing
Updated August 17, 2026: DeepSeek has retired flat-rate pricing for V4 Pro and V4 Flash. As of August 16, 2026, 16:00 UTC, pricing splits into peak and off-peak tiers, with off-peak rates set at half of peak rates. This is a genuine price increase, not just a restructuring. For full pricing comparisons across providers, see our AI API pricing compared breakdown.
| Token type | Off-peak (per 1M) | Peak (per 1M) | Previous flat rate |
|---|---|---|---|
| Input (cache miss) | $0.66 | $1.32 | $0.435 |
| Output | $1.98 | $3.96 | $0.87 |
Peak hours are defined by DeepSeek as 01:00-04:00 and 06:00-10:00 UTC. Off-peak covers the remaining hours. Even the off-peak output rate ($1.98) is more than double the pre-August-16 flat rate ($0.87), and the peak rate ($3.96) is more than 4.5x higher. If your workload can tolerate scheduling flexibility, batching non-urgent jobs into off-peak windows meaningfully cuts costs. DeepSeek frames this as resource allocation (“encouraging users to schedule their tasks based on actual usage”), but the practical effect for most developers is a substantial cost increase across the board.
Note that the $1.74/$0.145/$3.48 pricing shown in earlier snapshots of this article, and the “75% discount” language in some of our older DeepSeek coverage, no longer applies. If you have production code hardcoding the old rates for cost estimation, update it now.
For comparison, GPT-5.4 still charges roughly 4-8x more for output tokens even at DeepSeek’s new peak rate, and Opus 4.6 charges about 3-6x more. DeepSeek remains cheaper than Western frontier models, just by a smaller margin than before. If you need the cheapest possible inference regardless of the gap narrowing, the Qwen 3.7 Flash vs DeepSeek V4 Flash comparison breaks down the budget API tier, though V4 Flash is subject to the same peak/off-peak change.
API setup
DeepSeek V4 Pro uses an OpenAI-compatible API, so you can swap it into any existing OpenAI SDK integration with minimal changes.
Python example
from openai import OpenAI
client = OpenAI(
api_key="your-deepseek-api-key",
base_url="https://api.deepseek.com/v1"
)
response = client.chat.completions.create(
model="deepseek-v4-pro",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Explain the difference between CSA and HCA attention."}
],
max_tokens=4096
)
print(response.choices[0].message.content)
cURL example
curl https://api.deepseek.com/v1/chat/completions \
-H "Authorization: Bearer $DEEPSEEK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-pro",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Write a Python function to merge two sorted lists."}
],
"max_tokens": 2048
}'
The model ID is deepseek-v4-pro. For Think High mode, adjust your system prompt as described above. For local deployment options, see How to run DeepSeek V4 locally.
Want to self-host instead of using the API? See our tutorial on running DeepSeek V4 on a Vultr GPU server or compare GPU cloud pricing.
Agentic coding
V4 Pro works as a drop-in backend for several popular agentic coding tools:
Claude Code
You can point Claude Code at the DeepSeek API by setting the provider configuration:
export ANTHROPIC_BASE_URL=https://api.deepseek.com/v1
export ANTHROPIC_API_KEY=your-deepseek-api-key
claude-code --model deepseek-v4-pro
OpenClaw
OpenClaw natively supports DeepSeek models. Add the following to your .openclawrc:
{
"provider": "deepseek",
"model": "deepseek-v4-pro",
"apiKey": "your-deepseek-api-key"
}
OpenCode
OpenCode works with any OpenAI-compatible endpoint:
opencode --provider openai-compatible \
--base-url https://api.deepseek.com/v1 \
--model deepseek-v4-pro \
--api-key your-deepseek-api-key
The 1M context window makes V4 Pro particularly effective for agentic coding. It can hold entire codebases in context, reducing the need for retrieval-augmented approaches. The low output token pricing also helps, since agentic workflows tend to generate large volumes of output tokens across multiple tool calls. DeepSeek also offers their own coding agent called Reasonix — see our How to Use Reasonix setup guide and Reasonix vs Antigravity CLI comparison.
For a broader look at open-source options for coding, see our Best open-source coding models roundup and our Best Chinese AI Models for Coding ranking. For European alternatives, see Mistral Medium 3.5 vs DeepSeek V4.
Limitations
V4 Pro is not the best model at everything. Here is where it falls short:
- General knowledge: Trails Gemini 3.1 Pro and GPT-5.4 on MMLU-Pro by about 1.7 points. For knowledge-heavy tasks like trivia, encyclopedic Q&A, or broad factual recall, the closed-source models still have an edge.
- Terminal-Bench: GPT-5.4 scores 69.4% vs V4 Pro’s 67.9%. For complex terminal-based workflows involving multi-step system administration tasks, GPT-5.4 is slightly more reliable.
- Long-context retrieval: Opus 4.6 outperforms V4 Pro on needle-in-a-haystack and long-document retrieval tasks at the upper end of the context window. The hybrid attention mechanism trades some retrieval precision for efficiency.
- Text only: V4 Pro has no vision, audio, or video capabilities. If you need multimodal input, you will need a different model. DeepSeek has hinted at a multimodal V4 variant but nothing has shipped yet.
- HLE: Opus 4.6 leads on the Humanity’s Last Exam benchmark (39.2% vs 37.7%), suggesting slightly stronger performance on the hardest reasoning problems.
For a full model-by-model comparison, check out DeepSeek V4 vs Claude Opus 4.6 and DeepSeek V4 vs GPT-5.5.
Who should use DeepSeek V4 Pro?
V4 Pro is the strongest choice if you need:
- Top-tier coding performance at low cost
- An open-source model you can self-host, fine-tune, or modify
- A 1M context window for large codebase analysis
- Strong math and competition-level problem solving
- An OpenAI-compatible API for easy integration
It is less ideal if you need multimodal capabilities, maximum general knowledge accuracy, or the absolute best long-context retrieval performance. For a broader view of how open-source AI is evolving across regions, see EU vs US vs China: The Open AI Model Race. If you’re comparing V4 Pro to other agentic models from Chinese labs, MiniMax M2.7 vs DeepSeek V3 covers the prior generation.
For teams evaluating Chinese AI models more broadly, our Best Chinese AI models 2026 guide covers the full landscape including InclusionAI Ling 2.6 vs DeepSeek V4 and other trillion-parameter competitors.
Related Articles
For a live pricing calculator that shows cost per request for V4 Pro workloads, see APIpulse DeepSeek pricing.
How V4 Pro Compares Now
The competitive landscape has shifted significantly since V4 Pro launched:
| Model | Price (in/out) | SWE-bench Pro | Terminal-Bench | Open Source |
|---|---|---|---|---|
| DeepSeek V4 Pro | $0.66/$1.98 (off-peak), $1.32/$3.96 (peak) | 55.4% | not published | Yes (MIT) |
| GPT-5.6 Luna | $0.20/$1.20 | not published | 84.3% | No |
| Claude Sonnet 5 | $2/$10 | 63.2% | competitive | No |
| GPT-5.6 Terra | $2/$12 | not published | 82.5% | No |
| Kimi K3 | $3/$15 | not published | 88.3% | Yes |
Is V4 Pro still worth using? Yes, if you need open weights with MIT license. V4 Pro is still the best open-source model for general-purpose coding. But GPT-5.6 Luna at $0.20/$1.20 is now noticeably cheaper on output than even DeepSeek’s off-peak rate, and scores higher on Terminal-Bench.
When to choose V4 Pro over Luna:
- You need open weights for self-hosting or fine-tuning
- You want MIT license for commercial use without restrictions
- You need 55.4% SWE-bench Pro (Luna has not published this benchmark)
- You are already in the DeepSeek ecosystem
When to choose Luna over V4 Pro:
- You want the cheapest possible model
- You do not need open weights
- You want 84.3% Terminal-Bench performance
- You are building high-volume APIs where cost matters most
Related Comparisons
- Chinese AI Model Guides — DeepSeek, Qwen, Kimi, GLM, and more compared
- GPT-5.6 Luna vs DeepSeek V4 Pro — Budget frontier comparison
- Claude Sonnet 5 vs Kimi K3 — Western vs Chinese value
- GPT-5.6 Terra vs Claude Sonnet 5 — Mid-tier value
- AI API Pricing Compared — Full pricing breakdown
FAQ
Is DeepSeek V4 Pro really open source?
Yes. It ships under the MIT license, which is one of the most permissive open-source licenses available. You can use it commercially, modify it, redistribute it, and fine-tune it without restrictions. The model weights are available on Hugging Face.
How does V4 Pro compare to V3?
V4 Pro is a generational leap. It roughly doubles the total parameter count (1.6T vs 671B), adds the hybrid CSA+HCA attention for efficient 1M context, introduces Manifold-Constrained Hyper-Connections, and was trained on 33T tokens (up from 14.8T). Benchmark scores improve across the board, with SWE-bench Verified jumping from around 52% to 80.6%.
Can I run DeepSeek V4 Pro locally?
Yes, but you need serious hardware. The full FP4 model requires roughly 400GB of VRAM, which means a multi-GPU setup (for example, 8x H100 80GB or equivalent). Quantized versions are available that reduce requirements. See our How to run DeepSeek V4 locally guide for detailed hardware requirements and setup instructions.
What is DeepSeek V4-Pro-0813?
It’s the current production build served at the deepseek-v4-pro API endpoint. DeepSeek’s own model card describes it as “the official release of DeepSeek-V4-Pro, superseding the preview version, with greatly enhanced agentic capabilities and performance improvements that are especially pronounced in production environments.” The architecture, parameter count, and context window are unchanged from what’s documented in this guide. If you integrated against the preview endpoint earlier in 2026, DeepSeek says existing integrations keep running without changes, you’re just getting the GA build automatically.
Why did DeepSeek’s pricing change?
Starting August 16, 2026, DeepSeek moved from flat-rate pricing to peak/off-peak pricing, with off-peak rates at half of peak rates. DeepSeek frames this as a way to encourage users to schedule work during off-peak hours and reduce congestion on its infrastructure. In practice, both the new off-peak and peak rates are higher than the old flat rate, so most users will see a real cost increase regardless of scheduling. See the Pricing section above for exact numbers.
Which reasoning mode should I use?
For most tasks, Think High offers the best balance of quality and cost. Use Non-think for simple queries, chat, and summarization where speed matters. Reserve Think Max for hard problems where you need maximum accuracy and do not mind higher token usage. Think Max can use 3-5x more output tokens than Think High on complex problems.