Gemini 3.7 Flash vs GPT-5.1-Codex
Updated October 21, 2026. 17 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Pick Gemini 3.7 Flash for coding: it scores 69.9 on the Vibe Coding Index against 50.5 for GPT-5.1-Codex.
Pick GPT-5.1-Codex when a solved task costs $0.892 against $1.78, or when the benchmark that matters is ALE-Bench, where it leads.
- Shared results
- 17
- Gemini 3.7 Flash only
- 95
- GPT-5.1-Codex only
- 9
- Like-for-like categories
- 6 of 9
Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.
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, four public coding benchmarks
Gemini 3.7 Flash
Gemini 3.7 Flash scores 69.9 against 50.5.
2 benchmarks behind each score
Intelligence
AA Intelligence Index
Gemini 3.7 Flash
Gemini 3.7 Flash leads, 39.6 against 23.7.
Same board, both measured
Reasoning
GPQA Diamond
No call
Only Gemini 3.7 Flash has a GPQA Diamond result, 93.9%.
Directional only
Knowledge
MMLU Pro
No call
Only Gemini 3.7 Flash has a MMLU Pro result, 90.1%.
Directional only
Web design
Design Arena: websites
Gemini 3.7 Flash
Gemini 3.7 Flash leads, 1304 against 1162.
Same board, both measured
Long documents
Listed context window
Gemini 3.7 Flash
Gemini 3.7 Flash takes 1.05M tokens against 400K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemini 3.7 Flash
Gemini 3.7 Flash $0.0026, GPT-5.1-Codex $0.0063 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
GPT-5.1-Codex
Gemini 3.7 Flash $1.78, GPT-5.1-Codex $0.892.
Published attempt cost and pass rate
At a glance
- Coding index
- Gemini 3.7 Flash 69.9 from 2 benchmarks, GPT-5.1-Codex 50.5 from 2 benchmarks.
- Widest category
- Coding, 29.8 points apart on average over 5 shared benchmarks.
- Widest single gap
- Vibe Code Bench (Vals AI): Gemini 3.7 Flash 70.4% against GPT-5.1-Codex 13.1%, 57.3 points apart on a 0 to 100 scale.
- Output price
- Gemini 3.7 Flash $3.75 against GPT-5.1-Codex $10.00 per million output tokens, 2.7x apart.
- Context window
- Gemini 3.7 Flash 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 | Gemini 3.7 Flash | Bars | GPT-5.1-Codex | Ties |
|---|---|---|---|---|
| Coding | 4 | 1 | ||
| Intelligence | 1 | 0 | ||
| Agentic work | 3 | 0 | ||
| Reasoning | 2 | 0 | ||
| Web design | 5 | 0 | ||
| General | 1 | 0 | ||
| All shared boards | 16 | 1 |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index41
| Benchmark | Gemini 3.7 Flash | GPT-5.1-Codex | Leader |
|---|---|---|---|
| SWE-bench Verified | Not measured | 66.0% | Only GPT-5.1-Codex measured |
| LiveBench coding | 80.5% | Not measured | Only Gemini 3.7 Flash measured |
| LMArena WebDev | 1591 | 1337 | Gemini 3.7 Flash |
| AA Coding Index | 71.5 | Not measured | Only Gemini 3.7 Flash measured |
| LiveCodeBench (Vals AI) | 88.7% | 85.5% | Gemini 3.7 Flash |
| SWE-bench Verified (Vals AI) | 80.8% | Not measured | Only Gemini 3.7 Flash measured |
| Terminal-Bench 4 (Vals AI) | 12.1% | Not measured | Only Gemini 3.7 Flash measured |
| Vibe Code Bench (Vals AI) | 70.4% | 13.1% | Gemini 3.7 Flash |
| Code migration (Vals AI) | 34.8% | Not measured | Only Gemini 3.7 Flash measured |
| ProgramBench (Vals AI) | 0.0% | Not measured | Only Gemini 3.7 Flash measured |
| IOI (Vals AI) | 67.8% | Not measured | Only Gemini 3.7 Flash measured |
| Terminal-Bench 2.1 (Vals AI) | 77.5% | Not measured | Only Gemini 3.7 Flash measured |
| SkillsBench (Vals AI) | 65.9% | Not measured | Only Gemini 3.7 Flash measured |
| CyberBench (Vals AI) | 43.8% | Not measured | Only Gemini 3.7 Flash measured |
| LiveCodeBench (Artificial Analysis run) | Not measured | 84.9% | Only GPT-5.1-Codex measured |
| SciCode | 59.8% | Not measured | Only Gemini 3.7 Flash 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 | 43.6% | Not measured | Only Gemini 3.7 Flash measured |
| FrontierSWE | 20.3% | Not measured | Only Gemini 3.7 Flash measured |
| ALE-Bench | 904.3 | 1244.9 | GPT-5.1-Codex |
| LMArena Text: coding | 1499 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: software and IT | 1498 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena WebDev: React | 1587 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena WebDev: HTML | 1593 | 1346 | Gemini 3.7 Flash |
| LMArena WebDev: from an image | 1599 | Not measured | Only Gemini 3.7 Flash measured |
| Neither model has a result on the other 12 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Gemini 3.7 Flash | GPT-5.1-Codex | Leader |
|---|---|---|---|
| AA Intelligence Index | 39.6 | 23.7 | Gemini 3.7 Flash |
| Epoch Capabilities Index | 158.0 | Not measured | Only Gemini 3.7 Flash measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index30
| Benchmark | Gemini 3.7 Flash | GPT-5.1-Codex | Leader |
|---|---|---|---|
| Design Arena: agents building web apps | 1224 | 1018 | Gemini 3.7 Flash |
| Design Arena: agents building full-stack apps | 1208 | 1086 | Gemini 3.7 Flash |
| Design Arena: agents building mobile apps | 1230 | 1191 | Gemini 3.7 Flash |
| Design Arena: agents building Android apps | 1247 | Not measured | Only Gemini 3.7 Flash measured |
| Design Arena: agents building Godot games | 1264 | Not measured | Only Gemini 3.7 Flash measured |
| Design Arena: agents building games | 1235 | Not measured | Only Gemini 3.7 Flash measured |
| Design Arena: spreadsheets | 1028 | Not measured | Only Gemini 3.7 Flash measured |
| LiveBench research | 76.5% | Not measured | Only Gemini 3.7 Flash measured |
| LiveBench browser | 56.0% | Not measured | Only Gemini 3.7 Flash measured |
| LiveBench long agentic | 28.3% | Not measured | Only Gemini 3.7 Flash measured |
| SREBench (Vals AI) | 4.6% | Not measured | Only Gemini 3.7 Flash measured |
| Finance Agent (Vals AI) | 59.0% | Not measured | Only Gemini 3.7 Flash measured |
| Tax Agent Bench (Vals AI) | 22.8% | Not measured | Only Gemini 3.7 Flash measured |
| Legal Research Bench (Vals AI) | 34.6% | Not measured | Only Gemini 3.7 Flash measured |
| Excel Modeling Benchmark (Vals AI) | 71.3% | Not measured | Only Gemini 3.7 Flash measured |
| Terminal-Bench-Science (Vals AI) | 7.1% | Not measured | Only Gemini 3.7 Flash measured |
| τ²-Bench Telecom | Not measured | 83.0% | Only GPT-5.1-Codex measured |
| APEX-Agents | 67.8% | Not measured | Only Gemini 3.7 Flash measured |
| Remote Labor Index | 5.0% | Not measured | Only Gemini 3.7 Flash measured |
| Neither model has a result on the other 20 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | Gemini 3.7 Flash | GPT-5.1-Codex | Leader |
|---|---|---|---|
| GPQA Diamond | 93.9% | Not measured | Only Gemini 3.7 Flash measured |
| LiveBench reasoning | 87.8% | Not measured | Only Gemini 3.7 Flash measured |
| MMMU Pro (Vals AI) | 89.0% | Not measured | Only Gemini 3.7 Flash measured |
| GPQA Diamond (Artificial Analysis run) | 94.5% | 86.0% | Gemini 3.7 Flash |
| Humanity's Last Exam (Artificial Analysis run) | 47.9% | 25.7% | Gemini 3.7 Flash |
| GPQA Diamond (Epoch AI run) | 94.8% | Not measured | Only Gemini 3.7 Flash measured |
| ARC-AGI | 95.5% | Not measured | Only Gemini 3.7 Flash measured |
| ARC-AGI-2 | 84.6% | Not measured | Only Gemini 3.7 Flash measured |
| Chess puzzles | 66.0% | Not measured | Only Gemini 3.7 Flash measured |
| Mystery game puzzles | 37.0% | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: hard prompts | 1495 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: expert | 1512 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: hard prompts in English | 1487 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Vision: diagrams | 1329 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Vision: homework | 1320 | Not measured | Only Gemini 3.7 Flash measured |
| Neither model has a result on the other 6 boards here | |||
MathDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
| Benchmark | Gemini 3.7 Flash | 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 | 97.2% | Not measured | Only Gemini 3.7 Flash measured |
| FrontierMath, tiers 1 to 3 | 71.6% | Not measured | Only Gemini 3.7 Flash measured |
| FrontierMath, tier 4 | 36.6% | Not measured | Only Gemini 3.7 Flash measured |
| ProofBench | 58.0% | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: math | 1511 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: mathematical work | 1502 | Not measured | Only Gemini 3.7 Flash measured |
| Neither model has a result on the other 5 boards here | |||
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index11 boards, none shared
| Benchmark | Gemini 3.7 Flash | GPT-5.1-Codex | Leader |
|---|---|---|---|
| MMLU Pro | 90.1% | Not measured | Only Gemini 3.7 Flash measured |
| LegalBench (Vals AI) | 87.3% | Not measured | Only Gemini 3.7 Flash measured |
| TaxEval (Vals AI) | 74.7% | Not measured | Only Gemini 3.7 Flash measured |
| MortgageTax (Vals AI) | 66.7% | Not measured | Only Gemini 3.7 Flash measured |
| MedCode (Vals AI) | 53.4% | Not measured | Only Gemini 3.7 Flash measured |
| MMLU Pro (Artificial Analysis run) | Not measured | 86.0% | Only GPT-5.1-Codex measured |
| SimpleQA Verified | 69.2% | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: science | 1511 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: medicine and healthcare | 1494 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: legal and government | 1496 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: business and finance | 1479 | Not measured | Only Gemini 3.7 Flash measured |
| Neither model has a result on the other 6 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index50
| Benchmark | Gemini 3.7 Flash | GPT-5.1-Codex | Leader |
|---|---|---|---|
| Design Arena: websites | 1304 | 1162 | Gemini 3.7 Flash |
| Design Arena: UI components | 1299 | 1237 | Gemini 3.7 Flash |
| Design Arena: game dev | 1318 | 1138 | Gemini 3.7 Flash |
| Design Arena: data viz | 1315 | 1213 | Gemini 3.7 Flash |
| Design Arena: 3D | 1308 | Not measured | Only Gemini 3.7 Flash measured |
| Design Arena: all code categories | 1308 | 1153 | Gemini 3.7 Flash |
| Design Arena: SVG | 1283 | Not measured | Only Gemini 3.7 Flash measured |
| Design Arena: ASCII art | 1276 | Not measured | Only Gemini 3.7 Flash measured |
| LiveBench design | 73.2% | Not measured | Only Gemini 3.7 Flash measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Gemini 3.7 Flash | GPT-5.1-Codex | Leader |
|---|---|---|---|
| LiveBench data analysis | 68.0% | Not measured | Only Gemini 3.7 Flash measured |
| SAGE (Vals AI) | 49.2% | Not measured | Only Gemini 3.7 Flash measured |
| MedScribe (Vals AI) | 83.9% | Not measured | Only Gemini 3.7 Flash measured |
| IFBench | Not measured | 70.0% | Only GPT-5.1-Codex measured |
| Long context reasoning (AA-LCR) | 83.0% | 69.3% | Gemini 3.7 Flash |
| DTBench | 96.8% | Not measured | Only Gemini 3.7 Flash measured |
| LMCA | 50.4% | Not measured | Only Gemini 3.7 Flash measured |
| Furniture assembly | 26.7% | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text | 1489 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: instruction following | 1484 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: creative writing | 1488 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Vision | 1314 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: English | 1483 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: non-English | 1487 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: Chinese | 1552 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: German | 1506 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: Japanese | 1511 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: Korean | 1481 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: French | 1500 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: Spanish | 1495 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: Russian | 1515 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: Polish | 1503 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: multi-turn | 1485 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: longer queries | 1492 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: writing and language | 1491 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Text: entertainment and media | 1477 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Vision: English | 1309 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Vision: Chinese | 1394 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Vision: reading text | 1322 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Vision: humor | 1299 | Not measured | Only Gemini 3.7 Flash measured |
| LMArena Vision: creative writing | 1312 | Not measured | Only Gemini 3.7 Flash measured |
| Neither model has a result on the other 15 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemini 3.7 Flash | 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
Gemini 3.7 Flash costs less
Repository review
50K input + 3K output tokens
Gemini 3.7 Flash costs less
Agent loop
200K input + 10K output tokens
Gemini 3.7 Flash 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 | Google Gemini 3.7 Flash | OpenAI GPT-5.1-Codex |
|---|---|---|
| Maker | OpenAI | |
| Weights | No public weights listed | No public weights listed |
| Released | August 13, 2026 | November 13, 2025 |
| Context window | 1.05M | 400K |
| Input $/Mtok | $0.75 | $1.25 |
| Output $/Mtok | $3.75 | $10.00 |
| Coding index | 69.9 | 50.5 |
| Independent measurements behind it | 2 | 2 |
| Cost per solved task | $1.78 | $0.892 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemini 3.7 Flash better than GPT-5.1-Codex for coding?
Pick Gemini 3.7 Flash for coding: it scores 69.9 on the Vibe Coding Index against 50.5 for GPT-5.1-Codex. Pick GPT-5.1-Codex when a solved task costs $0.892 against $1.78, or when the benchmark that matters is ALE-Bench, where it leads.
Which is cheaper, Gemini 3.7 Flash or GPT-5.1-Codex?
Gemini 3.7 Flash costs $0.75 per million input tokens and $3.75 per million output tokens; GPT-5.1-Codex costs $1.25 and $10.00. Per solved SWE-bench Verified task, Gemini 3.7 Flash costs $1.78 and GPT-5.1-Codex $0.892.
Which has the bigger context window, Gemini 3.7 Flash or GPT-5.1-Codex?
Gemini 3.7 Flash, with 1.05M tokens against 400K.
How many benchmarks is the Gemini 3.7 Flash vs GPT-5.1-Codex comparison based on?
17 benchmarks have a result for both models as of October 21, 2026. Gemini 3.7 Flash's coding index rests on 2 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.