DeepSeek V4 Flash 0731 vs GPT-5.1-Codex
DeepSeek V4 Flash 0731 leads GPT-5.1-Codex on coding, 51.8 to 15.3 on the Vibe Coding Index, and DeepSeek V4 Flash 0731 costs 35.7x less per output token ($0.28 vs $10.00 per million). Updated October 21, 2026; 12 benchmarks have a result for both.
DeepSeek V4 Flash 0731 or GPT-5.1-Codex: which to pick
Pick DeepSeek V4 Flash 0731 for coding: it scores 51.8 on the Vibe Coding Index against 15.3 for GPT-5.1-Codex.
Pick GPT-5.1-Codex for work measured by Design Arena: UI components or Design Arena: data viz, where it leads.
- Shared results
- 12
- DeepSeek V4 Flash 0731 only
- 43
- GPT-5.1-Codex only
- 14
- Like-for-like categories
- 5 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 15.3.
4 and 2 benchmarks behind the scores
Intelligence
AA Intelligence Index
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 leads, 34.3 against 23.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
No call
Only DeepSeek V4 Flash 0731 has a GPQA Diamond result, 89.9%.
Directional only
Knowledge
MMLU Pro
No call
Only DeepSeek V4 Flash 0731 has a MMLU Pro result, 86.2%.
Directional only
Web design
Design Arena: websites
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 leads, 1238 against 1162.
Same board, both measured
Long documents
Listed context window
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 takes 1.05M tokens against 400K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 $0.0003, GPT-5.1-Codex $0.0063 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 $0.01, GPT-5.1-Codex $0.892.
Published attempt cost and pass rate
At a glance
- Coding index
- DeepSeek V4 Flash 0731 51.8 from 4 benchmarks, GPT-5.1-Codex 15.3 from 2 benchmarks.
- Widest category
- Coding, 21.8 points apart on average over 3 shared benchmarks.
- Widest single gap
- Vibe Code Bench (Vals AI): DeepSeek V4 Flash 0731 74.7% against GPT-5.1-Codex 13.1%, 61.6 points apart on a 0 to 100 scale.
- Output price
- DeepSeek V4 Flash 0731 $0.28 against GPT-5.1-Codex $10.00 per million output tokens, 35.7x apart.
- Context window
- DeepSeek V4 Flash 0731 takes 1.05M tokens, GPT-5.1-Codex 400K.
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 | GPT-5.1-Codex | Ties |
|---|---|---|---|---|
| Coding | 3 | 0 | ||
| Intelligence | 1 | 0 | ||
| Reasoning | 2 | 0 | ||
| Web design | 3 | 2 | ||
| General | 1 | 0 | ||
| All shared boards | 10 | 2 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index30
| Benchmark | DeepSeek V4 Flash 0731 | GPT-5.1-Codex | Leader |
|---|---|---|---|
| SWE-bench Verified | Not measured | 66.0% | Only GPT-5.1-Codex measured |
| LMArena WebDev | Not measured | 1337 | Only GPT-5.1-Codex measured |
| AA Coding Index | 69.1 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| LiveCodeBench (Vals AI) | 87.3% | 85.5% | DeepSeek V4 Flash 0731 |
| SWE-bench Verified (Vals AI) | 88.8% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Terminal-Bench 4 (Vals AI) | 18.7% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Vibe Code Bench (Vals AI) | 74.7% | 13.1% | DeepSeek V4 Flash 0731 |
| Code migration (Vals AI) | 38.6% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| 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% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| 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 |
| LiveCodeBench (Artificial Analysis run) | Not measured | 84.9% | Only GPT-5.1-Codex measured |
| SciCode | 50.3% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Terminal-Bench Hard (Artificial Analysis run) | Not measured | 34.8% | Only GPT-5.1-Codex measured |
| Terminal-Bench | Not measured | 57.8% | Only GPT-5.1-Codex measured |
| FrontierCode | 18.8% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| WeirdML | 63.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| ALE-Bench | 1306.1 | 1244.9 | DeepSeek V4 Flash 0731 |
| LMArena WebDev: HTML | Not measured | 1346 | Only GPT-5.1-Codex measured |
| Neither model has a result on the other 18 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | DeepSeek V4 Flash 0731 | GPT-5.1-Codex | Leader |
|---|---|---|---|
| AA Intelligence Index | 34.3 | 23.7 | DeepSeek V4 Flash 0731 |
| Epoch Capabilities Index | 154.8 | Not measured | Only DeepSeek V4 Flash 0731 measured |
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index11 boards, none shared
| Benchmark | DeepSeek V4 Flash 0731 | GPT-5.1-Codex | Leader |
|---|---|---|---|
| AA Agentic Index | 41.0 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Design Arena: agents building web apps | Not measured | 1018 | Only GPT-5.1-Codex measured |
| Design Arena: agents building full-stack apps | Not measured | 1086 | Only GPT-5.1-Codex measured |
| Design Arena: agents building mobile apps | Not measured | 1191 | Only GPT-5.1-Codex measured |
| Finance Agent (Vals AI) | 49.5% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Tax Agent Bench (Vals AI) | 28.1% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Legal Research Bench (Vals AI) | 30.3% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Excel Modeling Benchmark (Vals AI) | 57.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| 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 | 83.0% | Only GPT-5.1-Codex measured |
| Neither model has a result on the other 30 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | DeepSeek V4 Flash 0731 | GPT-5.1-Codex | Leader |
|---|---|---|---|
| GPQA Diamond | 89.9% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| GPQA Diamond (Artificial Analysis run) | 90.8% | 86.0% | DeepSeek V4 Flash 0731 |
| Humanity's Last Exam (Artificial Analysis run) | 38.6% | 25.7% | DeepSeek V4 Flash 0731 |
| GPQA Diamond (Epoch AI run) | 91.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| ARC-AGI | 89.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| ARC-AGI-2 | 61.4% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| 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 |
| Neither model has a result on the other 13 boards here | |||
MathDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
| Benchmark | DeepSeek V4 Flash 0731 | GPT-5.1-Codex | Leader |
|---|---|---|---|
| AA Math Index | Not measured | 95.7 | Only GPT-5.1-Codex measured |
| AIME 2025 (Artificial Analysis run) | Not measured | 95.7% | Only GPT-5.1-Codex 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 7 boards here | |||
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
| Benchmark | DeepSeek V4 Flash 0731 | GPT-5.1-Codex | Leader |
|---|---|---|---|
| MMLU Pro | 86.2% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| LegalBench (Vals AI) | 77.7% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| CorpFin (Vals AI) | 61.9% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| TaxEval (Vals AI) | 70.7% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| MedCode (Vals AI) | 41.4% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| MMLU Pro (Artificial Analysis run) | Not measured | 86.0% | Only GPT-5.1-Codex measured |
| SimpleQA Verified | 33.6% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Neither model has a result on the other 11 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index32
| Benchmark | DeepSeek V4 Flash 0731 | GPT-5.1-Codex | Leader |
|---|---|---|---|
| Design Arena: websites | 1238 | 1162 | DeepSeek V4 Flash 0731 |
| Design Arena: UI components | 1235 | 1237 | GPT-5.1-Codex |
| Design Arena: game dev | 1208 | 1138 | DeepSeek V4 Flash 0731 |
| Design Arena: data viz | 1180 | 1213 | GPT-5.1-Codex |
| Design Arena: 3D | 1209 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Design Arena: all code categories | 1230 | 1152 | DeepSeek V4 Flash 0731 |
| Design Arena: SVG | 1185 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Design Arena: ASCII art | 1090 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Neither model has a result on the other 1 board here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | DeepSeek V4 Flash 0731 | GPT-5.1-Codex | Leader |
|---|---|---|---|
| MedScribe (Vals AI) | 80.4% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| IFBench | Not measured | 70.0% | Only GPT-5.1-Codex measured |
| Long context reasoning (AA-LCR) | 79.7% | 69.3% | DeepSeek V4 Flash 0731 |
| DTBench | 90.9% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| LMCA | 41.7% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Neither model has a result on the other 41 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | DeepSeek V4 Flash 0731 | GPT-5.1-Codex | 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 | OpenAI GPT-5.1-Codex |
|---|---|---|
| Maker | DeepSeek | OpenAI |
| Weights | Open weights | No public weights listed |
| Released | July 31, 2026 | November 13, 2025 |
| Context window | 1.05M | 400K |
| Input $/Mtok | $0.14 | $1.25 |
| Output $/Mtok | $0.28 | $10.00 |
| Coding index | 51.8 | 15.3 |
| Independent measurements behind it | 4 | 2 |
| Cost per solved task | $0.01 | $0.892 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is DeepSeek V4 Flash 0731 better than GPT-5.1-Codex for coding?
Pick DeepSeek V4 Flash 0731 for coding: it scores 51.8 on the Vibe Coding Index against 15.3 for GPT-5.1-Codex. Pick GPT-5.1-Codex for work measured by Design Arena: UI components or Design Arena: data viz, where it leads.
Which is cheaper, DeepSeek V4 Flash 0731 or GPT-5.1-Codex?
DeepSeek V4 Flash 0731 costs $0.14 per million input tokens and $0.28 per million output tokens; GPT-5.1-Codex costs $1.25 and $10.00. Per solved SWE-bench Verified task, DeepSeek V4 Flash 0731 costs $0.01 and GPT-5.1-Codex $0.892.
Which has the bigger context window, DeepSeek V4 Flash 0731 or GPT-5.1-Codex?
DeepSeek V4 Flash 0731, with 1.05M tokens against 400K.
How many benchmarks is the DeepSeek V4 Flash 0731 vs GPT-5.1-Codex comparison based on?
12 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 GPT-5.1-Codex's on 2. Where only one model has a result, the page says so instead of naming a winner.