Gemini 3.5 Flash vs GPT-5.2-Codex
GPT-5.2-Codex leads Gemini 3.5 Flash on coding, 45.4 to 39.8 on the Vibe Coding Index, and Gemini 3.5 Flash costs 1.6x less per output token ($9.00 vs $14.00 per million). Updated October 21, 2026; 19 benchmarks have a result for both.
Gemini 3.5 Flash or GPT-5.2-Codex: which to pick
Pick GPT-5.2-Codex for coding: it scores 45.4 on the Vibe Coding Index against 39.8 for Gemini 3.5 Flash, though on 3 benchmarks against 4.
Pick Gemini 3.5 Flash for output tokens 1.6x cheaper ($9.00 vs $14.00 per million) and a larger context window (1.05M against 400K tokens).
- Shared results
- 19
- Gemini 3.5 Flash only
- 93
- GPT-5.2-Codex only
- 3
- 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
GPT-5.2-Codex
GPT-5.2-Codex scores 45.4 against 39.8.
4 and 3 benchmarks behind the scores
Intelligence
AA Intelligence Index
Gemini 3.5 Flash
Gemini 3.5 Flash leads, 33.6 against 28.5.
Same board, both measured
Reasoning
GPQA Diamond
No call
Only Gemini 3.5 Flash has a GPQA Diamond result, 92.7%.
Directional only
Knowledge
MMLU Pro
No call
Only Gemini 3.5 Flash has a MMLU Pro result, 89.5%.
Directional only
Web design
Design Arena: websites
No call
Only Gemini 3.5 Flash has a Design Arena: websites result, 1268.
Directional only
Long documents
Listed context window
Gemini 3.5 Flash
Gemini 3.5 Flash takes 1.05M tokens against 400K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemini 3.5 Flash
Gemini 3.5 Flash $0.0060, GPT-5.2-Codex $0.0088 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
GPT-5.2-Codex
Gemini 3.5 Flash $1.21, GPT-5.2-Codex $0.43.
Published attempt cost and pass rate
At a glance
- Coding index
- Gemini 3.5 Flash 39.8 from 4 benchmarks, GPT-5.2-Codex 45.4 from 3 benchmarks.
- Widest category
- Coding, 14.9 points apart on average over 8 shared benchmarks.
- Widest single gap
- LMArena WebDev: HTML: Gemini 3.5 Flash 1522 against GPT-5.2-Codex 1348, 29.0 points apart on a 0 to 100 scale.
- Output price
- Gemini 3.5 Flash $9.00 against GPT-5.2-Codex $14.00 per million output tokens, 1.6x apart.
- Context window
- Gemini 3.5 Flash takes 1.05M tokens, GPT-5.2-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.5 Flash | Bars | GPT-5.2-Codex | Ties |
|---|---|---|---|---|
| Coding | 6 | 2 | ||
| Intelligence | 1 | 0 | ||
| Agentic work | 5 | 1 | ||
| Reasoning | 2 | 0 | ||
| General | 0 | 2 | ||
| All shared boards | 14 | 5 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index62
| Benchmark | Gemini 3.5 Flash | GPT-5.2-Codex | Leader |
|---|---|---|---|
| SWE-bench Verified | Not measured | 72.8% | Only GPT-5.2-Codex measured |
| SWE-bench Multilingual | Not measured | 66.3% | Only GPT-5.2-Codex measured |
| LMArena WebDev | 1499 | 1339 | Gemini 3.5 Flash |
| LiveCodeBench (Vals AI) | 87.6% | 88.0% | GPT-5.2-Codex |
| SWE-bench Verified (Vals AI) | 78.8% | 72.4% | Gemini 3.5 Flash |
| Terminal-Bench 4 (Vals AI) | 6.1% | Not measured | Only Gemini 3.5 Flash measured |
| Vibe Code Bench (Vals AI) | 48.7% | 37.9% | Gemini 3.5 Flash |
| Code migration (Vals AI) | 26.8% | Not measured | Only Gemini 3.5 Flash measured |
| ProgramBench (Vals AI) | 0.0% | Not measured | Only Gemini 3.5 Flash measured |
| Terminal-Bench 2.1 (Vals AI) | 74.2% | Not measured | Only Gemini 3.5 Flash measured |
| SkillsBench (Vals AI) | 52.7% | Not measured | Only Gemini 3.5 Flash measured |
| SciCode | 53.9% | Not measured | Only Gemini 3.5 Flash measured |
| Terminal-Bench Hard (Artificial Analysis run) | 46.2% | 37.1% | Gemini 3.5 Flash |
| Terminal-Bench | Not measured | 66.5% | Only GPT-5.2-Codex measured |
| WeirdML | 62.6% | Not measured | Only Gemini 3.5 Flash measured |
| ALE-Bench | 911.0 | 1299.9 | GPT-5.2-Codex |
| LMArena Text: coding | 1493 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: software and IT | 1494 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena WebDev: React | 1495 | 1329 | Gemini 3.5 Flash |
| LMArena WebDev: HTML | 1522 | 1348 | Gemini 3.5 Flash |
| LMArena WebDev: from an image | 1504 | Not measured | Only Gemini 3.5 Flash measured |
| SciCode | 12.3% | Not measured | Only Gemini 3.5 Flash measured |
| Neither model has a result on the other 17 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Gemini 3.5 Flash | GPT-5.2-Codex | Leader |
|---|---|---|---|
| AA Intelligence Index | 33.6 | 28.5 | Gemini 3.5 Flash |
| Epoch Capabilities Index | 154.9 | Not measured | Only Gemini 3.5 Flash measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index51
| Benchmark | Gemini 3.5 Flash | GPT-5.2-Codex | Leader |
|---|---|---|---|
| Design Arena: agents building web apps | 1202 | 1051 | Gemini 3.5 Flash |
| Design Arena: agents building full-stack apps | 1197 | 993 | Gemini 3.5 Flash |
| Design Arena: agents building mobile apps | 1174 | 1090 | Gemini 3.5 Flash |
| Design Arena: agents building Android apps | 1184 | 1176 | Gemini 3.5 Flash |
| Design Arena: agents building Godot games | 1098 | 1142 | GPT-5.2-Codex |
| Design Arena: agents building games | 1180 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: HTML slides | 1142 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: PowerPoint slides | 1179 | Not measured | Only Gemini 3.5 Flash measured |
| Finance Agent (Vals AI) | 57.9% | Not measured | Only Gemini 3.5 Flash measured |
| Tax Agent Bench (Vals AI) | 21.6% | Not measured | Only Gemini 3.5 Flash measured |
| Legal Research Bench (Vals AI) | 30.8% | Not measured | Only Gemini 3.5 Flash measured |
| Excel Modeling Benchmark (Vals AI) | 63.5% | Not measured | Only Gemini 3.5 Flash measured |
| Terminal-Bench-Science (Vals AI) | 5.7% | Not measured | Only Gemini 3.5 Flash measured |
| τ²-Bench Telecom | 95.6% | 92.1% | Gemini 3.5 Flash |
| APEX-Agents | 27.5% | Not measured | Only Gemini 3.5 Flash measured |
| Vending-Bench 2 | $5,396 | Not measured | Only Gemini 3.5 Flash measured |
| Neither model has a result on the other 25 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | Gemini 3.5 Flash | GPT-5.2-Codex | Leader |
|---|---|---|---|
| GPQA Diamond | 92.7% | Not measured | Only Gemini 3.5 Flash measured |
| MMMU Pro (Vals AI) | 88.3% | Not measured | Only Gemini 3.5 Flash measured |
| GPQA Diamond (Artificial Analysis run) | 92.2% | 89.9% | Gemini 3.5 Flash |
| Humanity's Last Exam (Artificial Analysis run) | 42.7% | 35.7% | Gemini 3.5 Flash |
| GPQA Diamond (Epoch AI run) | 92.8% | Not measured | Only Gemini 3.5 Flash measured |
| ARC-AGI | 92.5% | Not measured | Only Gemini 3.5 Flash measured |
| ARC-AGI-2 | 72.1% | Not measured | Only Gemini 3.5 Flash measured |
| SimpleBench | 76.7% | Not measured | Only Gemini 3.5 Flash measured |
| Chess puzzles | 45.0% | Not measured | Only Gemini 3.5 Flash measured |
| Mystery game puzzles | 32.0% | Not measured | Only Gemini 3.5 Flash measured |
| EBR-bench | 4.8% | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: hard prompts | 1488 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: expert | 1495 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: hard prompts in English | 1483 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Vision: diagrams | 1323 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Vision: homework | 1330 | Not measured | Only Gemini 3.5 Flash measured |
| Neither model has a result on the other 6 boards here | |||
MathDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
| Benchmark | Gemini 3.5 Flash | GPT-5.2-Codex | Leader |
|---|---|---|---|
| OTIS Mock AIME | 95.6% | Not measured | Only Gemini 3.5 Flash measured |
| FrontierMath, tiers 1 to 3 | 62.8% | Not measured | Only Gemini 3.5 Flash measured |
| FrontierMath, tier 4 | 26.8% | Not measured | Only Gemini 3.5 Flash measured |
| ProofBench | 31.0% | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: math | 1504 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: mathematical work | 1495 | Not measured | Only Gemini 3.5 Flash measured |
| Neither model has a result on the other 7 boards here | |||
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index12 boards, none shared
| Benchmark | Gemini 3.5 Flash | GPT-5.2-Codex | Leader |
|---|---|---|---|
| MMLU Pro | 89.5% | Not measured | Only Gemini 3.5 Flash measured |
| LegalBench (Vals AI) | 83.6% | Not measured | Only Gemini 3.5 Flash measured |
| CorpFin (Vals AI) | 64.7% | Not measured | Only Gemini 3.5 Flash measured |
| TaxEval (Vals AI) | 74.4% | Not measured | Only Gemini 3.5 Flash measured |
| MortgageTax (Vals AI) | 68.1% | Not measured | Only Gemini 3.5 Flash measured |
| MedCode (Vals AI) | 55.8% | Not measured | Only Gemini 3.5 Flash measured |
| SimpleQA Verified | 66.2% | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: science | 1495 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: medicine and healthcare | 1483 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: legal and government | 1488 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: business and finance | 1467 | Not measured | Only Gemini 3.5 Flash measured |
| FACTS Benchmark Suite | 63.1% | Not measured | Only Gemini 3.5 Flash measured |
| Neither model has a result on the other 6 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
| Benchmark | Gemini 3.5 Flash | GPT-5.2-Codex | Leader |
|---|---|---|---|
| Design Arena: websites | 1268 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: UI components | 1273 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: game dev | 1263 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: data viz | 1236 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: 3D | 1244 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: all code categories | 1266 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: SVG | 1254 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: ASCII art | 1254 | Not measured | Only Gemini 3.5 Flash measured |
| Neither model has a result on the other 1 board here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | Gemini 3.5 Flash | GPT-5.2-Codex | Leader |
|---|---|---|---|
| Public Benefits Bench (Vals AI) | 59.5% | Not measured | Only Gemini 3.5 Flash measured |
| SAGE (Vals AI) | 49.9% | Not measured | Only Gemini 3.5 Flash measured |
| MedScribe (Vals AI) | 76.6% | Not measured | Only Gemini 3.5 Flash measured |
| Vals Multimodal Index | 62.9% | Not measured | Only Gemini 3.5 Flash measured |
| IFBench | 76.3% | 77.6% | GPT-5.2-Codex |
| Long context reasoning (AA-LCR) | 74.3% | 82.3% | GPT-5.2-Codex |
| DTBench | 94.7% | Not measured | Only Gemini 3.5 Flash measured |
| LMCA | 47.1% | Not measured | Only Gemini 3.5 Flash measured |
| Surface Evolver Bench | 58.1% | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text | 1482 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: instruction following | 1467 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: creative writing | 1470 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Vision | 1308 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: English | 1481 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: non-English | 1475 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: Chinese | 1527 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: German | 1494 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: Japanese | 1486 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: Korean | 1448 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: French | 1490 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: Spanish | 1480 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: Russian | 1493 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: Polish | 1516 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: multi-turn | 1481 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: longer queries | 1483 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: writing and language | 1478 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: entertainment and media | 1459 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Vision: English | 1305 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Vision: Chinese | 1377 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Vision: reading text | 1317 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Vision: humor | 1321 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Vision: creative writing | 1301 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Document | 1463 | Not measured | Only Gemini 3.5 Flash measured |
| Neither model has a result on the other 13 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemini 3.5 Flash | GPT-5.2-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.5 Flash costs less
Repository review
50K input + 3K output tokens
Gemini 3.5 Flash costs less
Agent loop
200K input + 10K output tokens
Gemini 3.5 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.5 Flash | OpenAI GPT-5.2-Codex |
|---|---|---|
| Maker | OpenAI | |
| Weights | No public weights listed | No public weights listed |
| Released | May 19, 2026 | January 14, 2026 |
| Context window | 1.05M | 400K |
| Input $/Mtok | $1.50 | $1.75 |
| Output $/Mtok | $9.00 | $14.00 |
| Coding index | 39.8 | 45.4 |
| Independent measurements behind it | 4 | 3 |
| Cost per solved task | $1.21 | $0.43 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemini 3.5 Flash better than GPT-5.2-Codex for coding?
Pick GPT-5.2-Codex for coding: it scores 45.4 on the Vibe Coding Index against 39.8 for Gemini 3.5 Flash, though on 3 benchmarks against 4. Pick Gemini 3.5 Flash for output tokens 1.6x cheaper ($9.00 vs $14.00 per million) and a larger context window (1.05M against 400K tokens).
Which is cheaper, Gemini 3.5 Flash or GPT-5.2-Codex?
Gemini 3.5 Flash costs $1.50 per million input tokens and $9.00 per million output tokens; GPT-5.2-Codex costs $1.75 and $14.00. Per solved SWE-bench Verified task, Gemini 3.5 Flash costs $1.21 and GPT-5.2-Codex $0.43.
Which has the bigger context window, Gemini 3.5 Flash or GPT-5.2-Codex?
Gemini 3.5 Flash, with 1.05M tokens against 400K.
How many benchmarks is the Gemini 3.5 Flash vs GPT-5.2-Codex comparison based on?
19 benchmarks have a result for both models as of October 21, 2026. Gemini 3.5 Flash's coding index rests on 4 independent benchmarks and GPT-5.2-Codex's on 3. Where only one model has a result, the page says so instead of naming a winner.