LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

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.

Gemini 3.7 FlashGoogle
Coding
69.9
Overall
39.6
Output $/M
$3.75
16
GPT-5.1-CodexOpenAI
Coding
50.5
Overall
23.7
Output $/M
$10.00
1
vs boards won of 17 shared

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.

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.

Boards won, where both have a result
CategoryGemini 3.7 FlashBarsGPT-5.1-CodexTies
Coding41
Intelligence10
Agentic work30
Reasoning20
Web design50
General10
All shared boards161
CodingLike-for-likeFour of these boards feed the Vibe Coding Index41
Coding benchmarks for Gemini 3.7 Flash and GPT-5.1-Codex
BenchmarkGemini 3.7 FlashGPT-5.1-CodexLeader
SWE-bench VerifiedNot measured66.0%Only GPT-5.1-Codex measured
LiveBench coding80.5%Not measuredOnly Gemini 3.7 Flash measured
LMArena WebDev15911337Gemini 3.7 Flash
AA Coding Index71.5Not measuredOnly Gemini 3.7 Flash measured
LiveCodeBench (Vals AI)88.7%85.5%Gemini 3.7 Flash
SWE-bench Verified (Vals AI)80.8%Not measuredOnly Gemini 3.7 Flash measured
Terminal-Bench 4 (Vals AI)12.1%Not measuredOnly 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 measuredOnly Gemini 3.7 Flash measured
ProgramBench (Vals AI)0.0%Not measuredOnly Gemini 3.7 Flash measured
IOI (Vals AI)67.8%Not measuredOnly Gemini 3.7 Flash measured
Terminal-Bench 2.1 (Vals AI)77.5%Not measuredOnly Gemini 3.7 Flash measured
SkillsBench (Vals AI)65.9%Not measuredOnly Gemini 3.7 Flash measured
CyberBench (Vals AI)43.8%Not measuredOnly Gemini 3.7 Flash measured
LiveCodeBench (Artificial Analysis run)Not measured84.9%Only GPT-5.1-Codex measured
SciCode59.8%Not measuredOnly Gemini 3.7 Flash measured
Terminal-Bench Hard (Artificial Analysis run)Not measured34.8%Only GPT-5.1-Codex measured
Terminal-BenchNot measured57.8%Only GPT-5.1-Codex measured
FrontierCode43.6%Not measuredOnly Gemini 3.7 Flash measured
FrontierSWE20.3%Not measuredOnly Gemini 3.7 Flash measured
ALE-Bench904.31244.9GPT-5.1-Codex
LMArena Text: coding1499Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: software and IT1498Not measuredOnly Gemini 3.7 Flash measured
LMArena WebDev: React1587Not measuredOnly Gemini 3.7 Flash measured
LMArena WebDev: HTML15931346Gemini 3.7 Flash
LMArena WebDev: from an image1599Not measuredOnly 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
Intelligence benchmarks for Gemini 3.7 Flash and GPT-5.1-Codex
BenchmarkGemini 3.7 FlashGPT-5.1-CodexLeader
AA Intelligence Index39.623.7Gemini 3.7 Flash
Epoch Capabilities Index158.0Not measuredOnly Gemini 3.7 Flash measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index30
Agentic work benchmarks for Gemini 3.7 Flash and GPT-5.1-Codex
BenchmarkGemini 3.7 FlashGPT-5.1-CodexLeader
Design Arena: agents building web apps12241018Gemini 3.7 Flash
Design Arena: agents building full-stack apps12081086Gemini 3.7 Flash
Design Arena: agents building mobile apps12301191Gemini 3.7 Flash
Design Arena: agents building Android apps1247Not measuredOnly Gemini 3.7 Flash measured
Design Arena: agents building Godot games1264Not measuredOnly Gemini 3.7 Flash measured
Design Arena: agents building games1235Not measuredOnly Gemini 3.7 Flash measured
Design Arena: spreadsheets1028Not measuredOnly Gemini 3.7 Flash measured
LiveBench research76.5%Not measuredOnly Gemini 3.7 Flash measured
LiveBench browser56.0%Not measuredOnly Gemini 3.7 Flash measured
LiveBench long agentic28.3%Not measuredOnly Gemini 3.7 Flash measured
SREBench (Vals AI)4.6%Not measuredOnly Gemini 3.7 Flash measured
Finance Agent (Vals AI)59.0%Not measuredOnly Gemini 3.7 Flash measured
Tax Agent Bench (Vals AI)22.8%Not measuredOnly Gemini 3.7 Flash measured
Legal Research Bench (Vals AI)34.6%Not measuredOnly Gemini 3.7 Flash measured
Excel Modeling Benchmark (Vals AI)71.3%Not measuredOnly Gemini 3.7 Flash measured
Terminal-Bench-Science (Vals AI)7.1%Not measuredOnly Gemini 3.7 Flash measured
τ²-Bench TelecomNot measured83.0%Only GPT-5.1-Codex measured
APEX-Agents67.8%Not measuredOnly Gemini 3.7 Flash measured
Remote Labor Index5.0%Not measuredOnly 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
Reasoning benchmarks for Gemini 3.7 Flash and GPT-5.1-Codex
BenchmarkGemini 3.7 FlashGPT-5.1-CodexLeader
GPQA Diamond93.9%Not measuredOnly Gemini 3.7 Flash measured
LiveBench reasoning87.8%Not measuredOnly Gemini 3.7 Flash measured
MMMU Pro (Vals AI)89.0%Not measuredOnly 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 measuredOnly Gemini 3.7 Flash measured
ARC-AGI95.5%Not measuredOnly Gemini 3.7 Flash measured
ARC-AGI-284.6%Not measuredOnly Gemini 3.7 Flash measured
Chess puzzles66.0%Not measuredOnly Gemini 3.7 Flash measured
Mystery game puzzles37.0%Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: hard prompts1495Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: expert1512Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: hard prompts in English1487Not measuredOnly Gemini 3.7 Flash measured
LMArena Vision: diagrams1329Not measuredOnly Gemini 3.7 Flash measured
LMArena Vision: homework1320Not measuredOnly 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
Math benchmarks for Gemini 3.7 Flash and GPT-5.1-Codex
BenchmarkGemini 3.7 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 AIME97.2%Not measuredOnly Gemini 3.7 Flash measured
FrontierMath, tiers 1 to 371.6%Not measuredOnly Gemini 3.7 Flash measured
FrontierMath, tier 436.6%Not measuredOnly Gemini 3.7 Flash measured
ProofBench58.0%Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: math1511Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: mathematical work1502Not measuredOnly 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
Knowledge benchmarks for Gemini 3.7 Flash and GPT-5.1-Codex
BenchmarkGemini 3.7 FlashGPT-5.1-CodexLeader
MMLU Pro90.1%Not measuredOnly Gemini 3.7 Flash measured
LegalBench (Vals AI)87.3%Not measuredOnly Gemini 3.7 Flash measured
TaxEval (Vals AI)74.7%Not measuredOnly Gemini 3.7 Flash measured
MortgageTax (Vals AI)66.7%Not measuredOnly Gemini 3.7 Flash measured
MedCode (Vals AI)53.4%Not measuredOnly Gemini 3.7 Flash measured
MMLU Pro (Artificial Analysis run)Not measured86.0%Only GPT-5.1-Codex measured
SimpleQA Verified69.2%Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: science1511Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: medicine and healthcare1494Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: legal and government1496Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: business and finance1479Not measuredOnly 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
Web design benchmarks for Gemini 3.7 Flash and GPT-5.1-Codex
BenchmarkGemini 3.7 FlashGPT-5.1-CodexLeader
Design Arena: websites13041162Gemini 3.7 Flash
Design Arena: UI components12991237Gemini 3.7 Flash
Design Arena: game dev13181138Gemini 3.7 Flash
Design Arena: data viz13151213Gemini 3.7 Flash
Design Arena: 3D1308Not measuredOnly Gemini 3.7 Flash measured
Design Arena: all code categories13081153Gemini 3.7 Flash
Design Arena: SVG1283Not measuredOnly Gemini 3.7 Flash measured
Design Arena: ASCII art1276Not measuredOnly Gemini 3.7 Flash measured
LiveBench design73.2%Not measuredOnly Gemini 3.7 Flash measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index10
General benchmarks for Gemini 3.7 Flash and GPT-5.1-Codex
BenchmarkGemini 3.7 FlashGPT-5.1-CodexLeader
LiveBench data analysis68.0%Not measuredOnly Gemini 3.7 Flash measured
SAGE (Vals AI)49.2%Not measuredOnly Gemini 3.7 Flash measured
MedScribe (Vals AI)83.9%Not measuredOnly Gemini 3.7 Flash measured
IFBenchNot measured70.0%Only GPT-5.1-Codex measured
Long context reasoning (AA-LCR)83.0%69.3%Gemini 3.7 Flash
DTBench96.8%Not measuredOnly Gemini 3.7 Flash measured
LMCA50.4%Not measuredOnly Gemini 3.7 Flash measured
Furniture assembly26.7%Not measuredOnly Gemini 3.7 Flash measured
LMArena Text1489Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: instruction following1484Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: creative writing1488Not measuredOnly Gemini 3.7 Flash measured
LMArena Vision1314Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: English1483Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: non-English1487Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: Chinese1552Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: German1506Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: Japanese1511Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: Korean1481Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: French1500Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: Spanish1495Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: Russian1515Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: Polish1503Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: multi-turn1485Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: longer queries1492Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: writing and language1491Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: entertainment and media1477Not measuredOnly Gemini 3.7 Flash measured
LMArena Vision: English1309Not measuredOnly Gemini 3.7 Flash measured
LMArena Vision: Chinese1394Not measuredOnly Gemini 3.7 Flash measured
LMArena Vision: reading text1322Not measuredOnly Gemini 3.7 Flash measured
LMArena Vision: humor1299Not measuredOnly Gemini 3.7 Flash measured
LMArena Vision: creative writing1312Not measuredOnly 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
Image generation benchmarks for Gemini 3.7 Flash and GPT-5.1-Codex
BenchmarkGemini 3.7 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.7 Flash$0.0026Fits in one request
GPT-5.1-Codex$0.0063Fits in one request

Gemini 3.7 Flash costs less

Repository review

50K input + 3K output tokens

Gemini 3.7 Flash$0.049Fits in one request
GPT-5.1-Codex$0.092Fits in one request

Gemini 3.7 Flash costs less

Agent loop

200K input + 10K output tokens

Gemini 3.7 Flash$0.188Fits in one request
GPT-5.1-Codex$0.350Fits in one request

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.

Specifications of Gemini 3.7 Flash and GPT-5.1-Codex
SpecificationGoogle Gemini 3.7 FlashOpenAI GPT-5.1-Codex
MakerGoogleOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedAugust 13, 2026November 13, 2025
Context window1.05M400K
Input $/Mtok$0.75$1.25
Output $/Mtok$3.75$10.00
Coding index69.950.5
Independent measurements behind it22
Cost per solved task$1.78$0.892
SourceOpenRouter listingOpenRouter 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.

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-7-flash-vs-gpt-5-1-codex" title="Gemini 3.7 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-7-flash-vs-gpt-5-1-codex">LLMBenchmark.ai, Gemini 3.7 Flash vs GPT-5.1-Codex</a></p>