Enter opens the highlighted result. Esc closes.

Gemini 3.5 Flash vs GPT-5.1-Codex

Gemini 3.5 Flash leads GPT-5.1-Codex on coding, 39.8 to 15.3 on the Vibe Coding Index, at about the same output price ($9.00 vs $10.00 per million). Updated October 22, 2026; 20 benchmarks have a result for both.

Gemini 3.5 FlashGoogle
Coding
39.8
Overall
63.8
Output $/M
$9.00
18
GPT-5.1-CodexOpenAI
Coding
15.3
Overall
No data
Output $/M
$10.00
2
vs boards won of 20 shared

Gemini 3.5 Flash or GPT-5.1-Codex: which to pick

Pick Gemini 3.5 Flash for coding: it scores 39.8 on the Vibe Coding Index against 15.3 for GPT-5.1-Codex.

Pick GPT-5.1-Codex for a lower cost per solved task ($0.892 against $1.21) and work measured by ALE-Bench or Design Arena: agents building mobile apps, where it leads.

Shared results
20
Gemini 3.5 Flash only
92
GPT-5.1-Codex only
6
Like-for-like categories
6 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.

At a glance

Coding index
Gemini 3.5 Flash 39.8 from 4 benchmarks, GPT-5.1-Codex 15.3 from 2 benchmarks.
Widest category
Coding, 18.8 points apart on average over 6 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): Gemini 3.5 Flash 48.7% against GPT-5.1-Codex 13.1%, 35.6 points apart on a 0 to 100 scale.
Output price
Gemini 3.5 Flash $9.00 against GPT-5.1-Codex $10.00 per million output tokens, 1.1x apart.
Context window
Gemini 3.5 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.

Boards won, where both have a result
CategoryGemini 3.5 FlashBarsGPT-5.1-CodexTies
Coding51
Intelligence10
Agentic work31
Reasoning20
Web design50
General20
All shared boards182
CodingLike-for-likeSix of these boards feed the Vibe Coding Index51
Coding benchmarks for Gemini 3.5 Flash and GPT-5.1-Codex
BenchmarkGemini 3.5 FlashGPT-5.1-CodexLeader
SWE-bench VerifiedNot measured66.0%Only GPT-5.1-Codex measured
LMArena WebDev14991337Gemini 3.5 Flash
LiveCodeBench (Vals AI)87.6%85.5%Gemini 3.5 Flash
SWE-bench Verified (Vals AI)78.8%Not measuredOnly Gemini 3.5 Flash measured
Terminal-Bench 4 (Vals AI)6.1%Not measuredOnly Gemini 3.5 Flash measured
Vibe Code Bench (Vals AI)48.7%13.1%Gemini 3.5 Flash
Code migration (Vals AI)26.8%Not measuredOnly Gemini 3.5 Flash measured
ProgramBench (Vals AI)0.0%Not measuredOnly Gemini 3.5 Flash measured
Terminal-Bench 2.1 (Vals AI)74.2%Not measuredOnly Gemini 3.5 Flash measured
SkillsBench (Vals AI)52.7%Not measuredOnly Gemini 3.5 Flash measured
LiveCodeBench (Artificial Analysis run)Not measured84.9%Only GPT-5.1-Codex measured
SciCode53.9%Not measuredOnly Gemini 3.5 Flash measured
Terminal-Bench Hard (Artificial Analysis run)46.2%34.8%Gemini 3.5 Flash
Terminal-BenchNot measured57.8%Only GPT-5.1-Codex measured
WeirdML62.6%Not measuredOnly Gemini 3.5 Flash measured
ALE-Bench911.01244.9GPT-5.1-Codex
LMArena Text: coding1493Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: software and IT1494Not measuredOnly Gemini 3.5 Flash measured
LMArena WebDev: React1495Not measuredOnly Gemini 3.5 Flash measured
LMArena WebDev: HTML15221346Gemini 3.5 Flash
LMArena WebDev: from an image1504Not measuredOnly Gemini 3.5 Flash measured
SciCode12.3%Not measuredOnly 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
Intelligence benchmarks for Gemini 3.5 Flash and GPT-5.1-Codex
BenchmarkGemini 3.5 FlashGPT-5.1-CodexLeader
AA Intelligence Index33.623.7Gemini 3.5 Flash
Epoch Capabilities Index154.9Not measuredOnly Gemini 3.5 Flash measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index31
Agentic work benchmarks for Gemini 3.5 Flash and GPT-5.1-Codex
BenchmarkGemini 3.5 FlashGPT-5.1-CodexLeader
Design Arena: agents building web apps12021018Gemini 3.5 Flash
Design Arena: agents building full-stack apps11971086Gemini 3.5 Flash
Design Arena: agents building mobile apps11741191GPT-5.1-Codex
Design Arena: agents building Android apps1185Not measuredOnly Gemini 3.5 Flash measured
Design Arena: agents building Godot games1098Not measuredOnly Gemini 3.5 Flash measured
Design Arena: agents building games1180Not measuredOnly Gemini 3.5 Flash measured
Design Arena: HTML slides1093Not measuredOnly Gemini 3.5 Flash measured
Design Arena: PowerPoint slides1154Not measuredOnly Gemini 3.5 Flash measured
Finance Agent (Vals AI)57.9%Not measuredOnly Gemini 3.5 Flash measured
Tax Agent Bench (Vals AI)21.6%Not measuredOnly Gemini 3.5 Flash measured
Legal Research Bench (Vals AI)30.8%Not measuredOnly Gemini 3.5 Flash measured
Excel Modeling Benchmark (Vals AI)63.5%Not measuredOnly Gemini 3.5 Flash measured
Terminal-Bench-Science (Vals AI)5.7%Not measuredOnly Gemini 3.5 Flash measured
τ²-Bench Telecom95.6%83.0%Gemini 3.5 Flash
APEX-Agents27.5%Not measuredOnly Gemini 3.5 Flash measured
Vending-Bench 2$5,396Not measuredOnly 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
Reasoning benchmarks for Gemini 3.5 Flash and GPT-5.1-Codex
BenchmarkGemini 3.5 FlashGPT-5.1-CodexLeader
GPQA Diamond92.7%Not measuredOnly Gemini 3.5 Flash measured
MMMU Pro (Vals AI)88.3%Not measuredOnly Gemini 3.5 Flash measured
GPQA Diamond (Artificial Analysis run)92.2%86.0%Gemini 3.5 Flash
Humanity's Last Exam (Artificial Analysis run)42.7%25.7%Gemini 3.5 Flash
GPQA Diamond (Epoch AI run)92.8%Not measuredOnly Gemini 3.5 Flash measured
ARC-AGI92.5%Not measuredOnly Gemini 3.5 Flash measured
ARC-AGI-272.1%Not measuredOnly Gemini 3.5 Flash measured
SimpleBench76.7%Not measuredOnly Gemini 3.5 Flash measured
Chess puzzles45.0%Not measuredOnly Gemini 3.5 Flash measured
Mystery game puzzles32.0%Not measuredOnly Gemini 3.5 Flash measured
EBR-bench4.8%Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: hard prompts1488Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: expert1495Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: hard prompts in English1483Not measuredOnly Gemini 3.5 Flash measured
LMArena Vision: diagrams1323Not measuredOnly Gemini 3.5 Flash measured
LMArena Vision: homework1330Not measuredOnly 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 index8 boards, none shared
Math benchmarks for Gemini 3.5 Flash and GPT-5.1-Codex
BenchmarkGemini 3.5 FlashGPT-5.1-CodexLeader
AA Math IndexNot measured95.7Only GPT-5.1-Codex measured
AIME 2025 (Artificial Analysis run)Not measured95.7%Only GPT-5.1-Codex measured
OTIS Mock AIME95.6%Not measuredOnly Gemini 3.5 Flash measured
FrontierMath, tiers 1 to 362.8%Not measuredOnly Gemini 3.5 Flash measured
FrontierMath, tier 426.8%Not measuredOnly Gemini 3.5 Flash measured
ProofBench31.0%Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: math1504Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: mathematical work1495Not measuredOnly Gemini 3.5 Flash measured
Neither model has a result on the other 5 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index13 boards, none shared
Knowledge benchmarks for Gemini 3.5 Flash and GPT-5.1-Codex
BenchmarkGemini 3.5 FlashGPT-5.1-CodexLeader
MMLU Pro89.5%Not measuredOnly Gemini 3.5 Flash measured
LegalBench (Vals AI)83.6%Not measuredOnly Gemini 3.5 Flash measured
CorpFin (Vals AI)64.7%Not measuredOnly Gemini 3.5 Flash measured
TaxEval (Vals AI)74.4%Not measuredOnly Gemini 3.5 Flash measured
MortgageTax (Vals AI)68.1%Not measuredOnly Gemini 3.5 Flash measured
MedCode (Vals AI)55.8%Not measuredOnly Gemini 3.5 Flash measured
MMLU Pro (Artificial Analysis run)Not measured86.0%Only GPT-5.1-Codex measured
SimpleQA Verified66.2%Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: science1495Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: medicine and healthcare1483Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: legal and government1488Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: business and finance1467Not measuredOnly Gemini 3.5 Flash measured
FACTS Benchmark Suite63.1%Not measuredOnly Gemini 3.5 Flash measured
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index50
Web design benchmarks for Gemini 3.5 Flash and GPT-5.1-Codex
BenchmarkGemini 3.5 FlashGPT-5.1-CodexLeader
Design Arena: websites12671161Gemini 3.5 Flash
Design Arena: UI components12691234Gemini 3.5 Flash
Design Arena: game dev12631137Gemini 3.5 Flash
Design Arena: data viz12361213Gemini 3.5 Flash
Design Arena: 3D1243Not measuredOnly Gemini 3.5 Flash measured
Design Arena: all code categories12661152Gemini 3.5 Flash
Design Arena: SVG1253Not measuredOnly Gemini 3.5 Flash measured
Design Arena: ASCII art1254Not measuredOnly 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 index20
General benchmarks for Gemini 3.5 Flash and GPT-5.1-Codex
BenchmarkGemini 3.5 FlashGPT-5.1-CodexLeader
Public Benefits Bench (Vals AI)59.5%Not measuredOnly Gemini 3.5 Flash measured
SAGE (Vals AI)49.9%Not measuredOnly Gemini 3.5 Flash measured
MedScribe (Vals AI)76.6%Not measuredOnly Gemini 3.5 Flash measured
Vals Multimodal Index62.9%Not measuredOnly Gemini 3.5 Flash measured
IFBench76.3%70.0%Gemini 3.5 Flash
Long context reasoning (AA-LCR)74.3%69.3%Gemini 3.5 Flash
DTBench94.7%Not measuredOnly Gemini 3.5 Flash measured
LMCA47.1%Not measuredOnly Gemini 3.5 Flash measured
Surface Evolver Bench58.1%Not measuredOnly Gemini 3.5 Flash measured
LMArena Text1482Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: instruction following1467Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: creative writing1470Not measuredOnly Gemini 3.5 Flash measured
LMArena Vision1308Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: English1481Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: non-English1475Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: Chinese1527Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: German1494Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: Japanese1486Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: Korean1448Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: French1490Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: Spanish1480Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: Russian1493Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: Polish1516Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: multi-turn1481Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: longer queries1483Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: writing and language1478Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: entertainment and media1459Not measuredOnly Gemini 3.5 Flash measured
LMArena Vision: English1305Not measuredOnly Gemini 3.5 Flash measured
LMArena Vision: Chinese1377Not measuredOnly Gemini 3.5 Flash measured
LMArena Vision: reading text1317Not measuredOnly Gemini 3.5 Flash measured
LMArena Vision: humor1321Not measuredOnly Gemini 3.5 Flash measured
LMArena Vision: creative writing1301Not measuredOnly Gemini 3.5 Flash measured
LMArena Document1463Not measuredOnly 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
Image generation benchmarks for Gemini 3.5 Flash and GPT-5.1-Codex
BenchmarkGemini 3.5 FlashGPT-5.1-CodexLeader
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$0.0060Fits in one request
GPT-5.1-Codex$0.0063Fits in one request

Gemini 3.5 Flash costs less

Repository review

50K input + 3K output tokens

Gemini 3.5 Flash$0.102Fits in one request
GPT-5.1-Codex$0.092Fits in one request

GPT-5.1-Codex costs less

Agent loop

200K input + 10K output tokens

Gemini 3.5 Flash$0.390Fits in one request
GPT-5.1-Codex$0.350Fits in one request

GPT-5.1-Codex 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.

Specifications of Gemini 3.5 Flash and GPT-5.1-Codex
SpecificationGoogle Gemini 3.5 FlashOpenAI GPT-5.1-Codex
MakerGoogleOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedMay 19, 2026November 13, 2025
Context window1.05M400K
Input $/Mtok$1.50$1.25
Output $/Mtok$9.00$10.00
Coding index39.815.3
Independent measurements behind it42
Cost per solved task$1.21$0.892
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemini 3.5 Flash better than GPT-5.1-Codex for coding?

Pick Gemini 3.5 Flash for coding: it scores 39.8 on the Vibe Coding Index against 15.3 for GPT-5.1-Codex. Pick GPT-5.1-Codex for a lower cost per solved task ($0.892 against $1.21) and work measured by ALE-Bench or Design Arena: agents building mobile apps, where it leads.

Which is cheaper, Gemini 3.5 Flash or GPT-5.1-Codex?

Gemini 3.5 Flash costs $1.50 per million input tokens and $9.00 per million output tokens; GPT-5.1-Codex costs $1.25 and $10.00. Per solved SWE-bench Verified task, Gemini 3.5 Flash costs $1.21 and GPT-5.1-Codex $0.892.

Which has the bigger context window, Gemini 3.5 Flash or GPT-5.1-Codex?

Gemini 3.5 Flash, with 1.05M tokens against 400K.

How many benchmarks is the Gemini 3.5 Flash vs GPT-5.1-Codex comparison based on?

20 benchmarks have a result for both models as of October 22, 2026. Gemini 3.5 Flash'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.

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/gemini-3-5-flash-vs-gpt-5-1-codex" title="Gemini 3.5 Flash vs GPT-5.1-Codex, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/gemini-3-5-flash-vs-gpt-5-1-codex">LLMBenchmark.ai, Gemini 3.5 Flash vs GPT-5.1-Codex</a></p>