DeepSeek V4 Flash 0731 vs Grok 4.20
DeepSeek V4 Flash 0731 leads Grok 4.20 on coding, 51.8 to 33.3 on the Vibe Coding Index, and DeepSeek V4 Flash 0731 costs 8.9x less per output token ($0.28 vs $2.50 per million). Updated October 21, 2026; 34 benchmarks have a result for both.
DeepSeek V4 Flash 0731 or Grok 4.20: which to pick
Pick DeepSeek V4 Flash 0731 for coding: it scores 51.8 on the Vibe Coding Index against 33.3 for Grok 4.20.
Pick Grok 4.20 for a larger context window (2M against 1.05M tokens) and work measured by GPQA Diamond (Artificial Analysis run) or ARC-AGI, where it leads.
- Shared results
- 34
- DeepSeek V4 Flash 0731 only
- 21
- Grok 4.20 only
- 21
- Like-for-like categories
- 7 of 9
Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.
Which one for your work
Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.
Coding
Vibe Coding Index, six public coding benchmarks
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 scores 51.8 against 33.3.
4 and 2 benchmarks behind the scores
Intelligence
AA Intelligence Index
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 leads, 34.3 against 25.7.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only DeepSeek V4 Flash 0731 has a AA Agentic Index result, 41.0.
Directional only
Reasoning
GPQA Diamond
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 leads, 89.9% against 88.6%.
Same board, both measured
Math
AIME
No call
Only Grok 4.20 has a AIME result, 96.5%.
Directional only
Knowledge
MMLU Pro
Grok 4.20
Grok 4.20 leads, 86.3% against 86.2%.
Same board, both measured
Web design
Design Arena: websites
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 leads, 1238 against 1229.
Same board, both measured
Long documents
Listed context window
Grok 4.20
Grok 4.20 takes 2M tokens against 1.05M.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 $0.0003, Grok 4.20 $0.0025 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 $0.01, Grok 4.20 $0.72.
Published attempt cost and pass rate
At a glance
- Coding index
- DeepSeek V4 Flash 0731 51.8 from 4 benchmarks, Grok 4.20 33.3 from 2 benchmarks.
- Widest category
- Coding, 27.0 points apart on average over 6 shared benchmarks.
- Widest single gap
- Vibe Code Bench (Vals AI): DeepSeek V4 Flash 0731 74.7% against Grok 4.20 4.1%, 70.7 points apart on a 0 to 100 scale.
- Output price
- DeepSeek V4 Flash 0731 $0.28 against Grok 4.20 $2.50 per million output tokens, 8.9x apart.
- Context window
- DeepSeek V4 Flash 0731 takes 1.05M tokens, Grok 4.20 2M.
Benchmark by benchmark
First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.
| Category | DeepSeek V4 Flash 0731 | Bars | Grok 4.20 | Ties |
|---|---|---|---|---|
| Coding | 6 | 0 | ||
| Intelligence | 2 | 0 | ||
| Agentic work | 4 | 0 | ||
| Reasoning | 2 | 3 | ||
| Knowledge | 1 | 4 | ||
| Web design | 6 | 2 | ||
| General | 4 | 0 | ||
| All shared boards | 25 | 9 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index60
| Benchmark | DeepSeek V4 Flash 0731 | Grok 4.20 | Leader |
|---|---|---|---|
| AA Coding Index | 69.1 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| LiveCodeBench (Vals AI) | 87.3% | 84.3% | DeepSeek V4 Flash 0731 |
| SWE-bench Verified (Vals AI) | 88.8% | 72.2% | DeepSeek V4 Flash 0731 |
| Terminal-Bench 4 (Vals AI) | 18.7% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Vibe Code Bench (Vals AI) | 74.7% | 4.1% | DeepSeek V4 Flash 0731 |
| Code migration (Vals AI) | 38.6% | 0.3% | DeepSeek V4 Flash 0731 |
| ProgramBench (Vals AI) | 0.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| IOI (Vals AI) | 32.7% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Terminal-Bench 2.1 (Vals AI) | 67.0% | 44.2% | DeepSeek V4 Flash 0731 |
| SkillsBench (Vals AI) | 50.7% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| CyberBench (Vals AI) | 72.1% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| SciCode | 50.3% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Terminal-Bench Hard (Artificial Analysis run) | Not measured | 37.9% | Only Grok 4.20 measured |
| Terminal-Bench | Not measured | 57.3% | Only Grok 4.20 measured |
| FrontierCode | 18.8% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| WeirdML | 63.0% | 52.3% | DeepSeek V4 Flash 0731 |
| ALE-Bench | 1306.1 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Neither model has a result on the other 22 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | DeepSeek V4 Flash 0731 | Grok 4.20 | Leader |
|---|---|---|---|
| AA Intelligence Index | 34.3 | 25.7 | DeepSeek V4 Flash 0731 |
| Epoch Capabilities Index | 154.8 | 152.1 | DeepSeek V4 Flash 0731 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index40
| Benchmark | DeepSeek V4 Flash 0731 | Grok 4.20 | Leader |
|---|---|---|---|
| AA Agentic Index | 41.0 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Design Arena: agents building web apps | Not measured | 1144 | Only Grok 4.20 measured |
| Design Arena: agents building full-stack apps | Not measured | 1054 | Only Grok 4.20 measured |
| Design Arena: agents building mobile apps | Not measured | 1090 | Only Grok 4.20 measured |
| Design Arena: agents building Android apps | Not measured | 1052 | Only Grok 4.20 measured |
| Design Arena: agents building Godot games | Not measured | 1089 | Only Grok 4.20 measured |
| Design Arena: HTML slides | Not measured | 1180 | Only Grok 4.20 measured |
| Finance Agent (Vals AI) | 49.5% | 28.5% | DeepSeek V4 Flash 0731 |
| Tax Agent Bench (Vals AI) | 28.1% | 7.0% | DeepSeek V4 Flash 0731 |
| Legal Research Bench (Vals AI) | 30.3% | 13.9% | DeepSeek V4 Flash 0731 |
| Excel Modeling Benchmark (Vals AI) | 57.0% | 11.7% | DeepSeek V4 Flash 0731 |
| BioMysteryBench (Vals AI) | 64.4% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Terminal-Bench-Science (Vals AI) | 4.3% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| τ²-Bench Telecom | Not measured | 93.0% | Only Grok 4.20 measured |
| Vending-Bench 2 | Not measured | $4,663 | Only Grok 4.20 measured |
| Neither model has a result on the other 26 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index23
| Benchmark | DeepSeek V4 Flash 0731 | Grok 4.20 | Leader |
|---|---|---|---|
| GPQA Diamond | 89.9% | 88.6% | DeepSeek V4 Flash 0731 |
| MMMU Pro (Vals AI) | Not measured | 83.5% | Only Grok 4.20 measured |
| GPQA Diamond (Artificial Analysis run) | 90.8% | 91.1% | Grok 4.20 |
| Humanity's Last Exam (Artificial Analysis run) | 38.6% | 34.5% | DeepSeek V4 Flash 0731 |
| GPQA Diamond (Epoch AI run) | 91.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| ARC-AGI | 89.0% | 89.5% | Grok 4.20 |
| ARC-AGI-2 | 61.4% | 65.1% | Grok 4.20 |
| SimpleBench | 61.1% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Chess puzzles | 32.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Mystery game puzzles | 34.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Kagi LLM Benchmark | Not measured | 75.0% | Only Grok 4.20 measured |
| Neither model has a result on the other 11 boards here | |||
MathDirectional onlyPublic boards, shown as published, kept out of the index5 boards, none shared
| Benchmark | DeepSeek V4 Flash 0731 | Grok 4.20 | Leader |
|---|---|---|---|
| AIME | Not measured | 96.5% | Only Grok 4.20 measured |
| OTIS Mock AIME | 94.4% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| FrontierMath, tiers 1 to 3 | 57.5% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| FrontierMath, tier 4 | 24.4% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| ProofBench | 56.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Neither model has a result on the other 8 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index14
| Benchmark | DeepSeek V4 Flash 0731 | Grok 4.20 | Leader |
|---|---|---|---|
| MMLU Pro | 86.2% | 86.3% | Grok 4.20 |
| LegalBench (Vals AI) | 77.7% | 77.7% | Grok 4.20 |
| CaseLaw (Vals AI) | Not measured | 54.4% | Only Grok 4.20 measured |
| CorpFin (Vals AI) | 61.9% | 63.7% | Grok 4.20 |
| TaxEval (Vals AI) | 70.7% | 74.1% | Grok 4.20 |
| MortgageTax (Vals AI) | Not measured | 45.4% | Only Grok 4.20 measured |
| MedQA (Vals AI) | Not measured | 94.5% | Only Grok 4.20 measured |
| MedCode (Vals AI) | 41.4% | 32.2% | DeepSeek V4 Flash 0731 |
| SimpleQA Verified | 33.6% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Neither model has a result on the other 9 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index62
| Benchmark | DeepSeek V4 Flash 0731 | Grok 4.20 | Leader |
|---|---|---|---|
| Design Arena: websites | 1238 | 1229 | DeepSeek V4 Flash 0731 |
| Design Arena: UI components | 1235 | 1199 | DeepSeek V4 Flash 0731 |
| Design Arena: game dev | 1208 | 1192 | DeepSeek V4 Flash 0731 |
| Design Arena: data viz | 1180 | 1217 | Grok 4.20 |
| Design Arena: 3D | 1209 | 1193 | DeepSeek V4 Flash 0731 |
| Design Arena: all code categories | 1230 | 1221 | DeepSeek V4 Flash 0731 |
| Design Arena: SVG | 1185 | 1164 | DeepSeek V4 Flash 0731 |
| Design Arena: ASCII art | 1090 | 1174 | Grok 4.20 |
| Neither model has a result on the other 1 board here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index40
| Benchmark | DeepSeek V4 Flash 0731 | Grok 4.20 | Leader |
|---|---|---|---|
| SAGE (Vals AI) | Not measured | 38.2% | Only Grok 4.20 measured |
| MedScribe (Vals AI) | 80.4% | 63.4% | DeepSeek V4 Flash 0731 |
| Vals Multimodal Index | Not measured | 39.1% | Only Grok 4.20 measured |
| IFBench | Not measured | 81.2% | Only Grok 4.20 measured |
| Long context reasoning (AA-LCR) | 79.7% | 69.0% | DeepSeek V4 Flash 0731 |
| DTBench | 90.9% | 90.1% | DeepSeek V4 Flash 0731 |
| LMCA | 41.7% | 38.7% | DeepSeek V4 Flash 0731 |
| CL-bench | Not measured | 22.2% | Only Grok 4.20 measured |
| CL-bench Life | Not measured | 11.9% | Only Grok 4.20 measured |
| Neither model has a result on the other 37 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | DeepSeek V4 Flash 0731 | Grok 4.20 | Leader |
|---|---|---|---|
| Neither model has a result on 5 boards here | |||
What each workload costs
Three fixed token mixes at each model's listed price, so per-token rates become a bill.
Chat turn
1K input + 500 output tokens
DeepSeek V4 Flash 0731 costs less
Repository review
50K input + 3K output tokens
DeepSeek V4 Flash 0731 costs less
Agent loop
200K input + 10K output tokens
DeepSeek V4 Flash 0731 costs less
Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.
Specification differences
The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.
| Specification | DeepSeek V4 Flash 0731 | SpaceXAI Grok 4.20 |
|---|---|---|
| Maker | DeepSeek | xAI |
| Weights | Open weights | No public weights listed |
| Released | July 31, 2026 | March 31, 2026 |
| Context window | 1.05M | 2M |
| Input $/Mtok | $0.14 | $1.25 |
| Output $/Mtok | $0.28 | $2.50 |
| Coding index | 51.8 | 33.3 |
| Independent measurements behind it | 4 | 2 |
| Cost per solved task | $0.01 | $0.72 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is DeepSeek V4 Flash 0731 better than Grok 4.20 for coding?
Pick DeepSeek V4 Flash 0731 for coding: it scores 51.8 on the Vibe Coding Index against 33.3 for Grok 4.20. Pick Grok 4.20 for a larger context window (2M against 1.05M tokens) and work measured by GPQA Diamond (Artificial Analysis run) or ARC-AGI, where it leads.
Which is cheaper, DeepSeek V4 Flash 0731 or Grok 4.20?
DeepSeek V4 Flash 0731 costs $0.14 per million input tokens and $0.28 per million output tokens; Grok 4.20 costs $1.25 and $2.50. Per solved SWE-bench Verified task, DeepSeek V4 Flash 0731 costs $0.01 and Grok 4.20 $0.72.
Which has the bigger context window, DeepSeek V4 Flash 0731 or Grok 4.20?
Grok 4.20, with 2M tokens against 1.05M.
How many benchmarks is the DeepSeek V4 Flash 0731 vs Grok 4.20 comparison based on?
34 benchmarks have a result for both models as of October 21, 2026. DeepSeek V4 Flash 0731's coding index rests on 4 independent benchmarks and Grok 4.20's on 2. Where only one model has a result, the page says so instead of naming a winner.