Enter opens the highlighted result. Esc closes.

Gemini 3 Flash Preview vs GPT-5.1-Codex

Gemini 3 Flash Preview leads GPT-5.1-Codex on coding, 43.7 to 15.3 on the Vibe Coding Index, and Gemini 3 Flash Preview costs 3.3x less per output token ($3.00 vs $10.00 per million). Updated October 22, 2026; 22 benchmarks have a result for both.

Gemini 3 Flash PreviewGoogle
Coding
43.7
Overall
55.0
Output $/M
$3.00
19
GPT-5.1-CodexOpenAI
Coding
15.3
Overall
No data
Output $/M
$10.00
3
vs boards won of 22 shared

Gemini 3 Flash Preview or GPT-5.1-Codex: which to pick

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

Pick GPT-5.1-Codex for work measured by Design Arena: agents building full-stack apps or Design Arena: agents building mobile apps, where it leads.

Shared results
22
Gemini 3 Flash Preview only
49
GPT-5.1-Codex only
4
Like-for-like categories
8 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 Flash Preview 43.7 from 2 benchmarks, GPT-5.1-Codex 15.3 from 2 benchmarks.
Widest category
General, 8.3 points apart on average over 2 shared benchmarks.
Widest single gap
Design Arena: agents building mobile apps: Gemini 3 Flash Preview 1090 against GPT-5.1-Codex 1191, 12.6 points apart on a 0 to 100 scale.
Output price
Gemini 3 Flash Preview $3.00 against GPT-5.1-Codex $10.00 per million output tokens, 3.3x apart.
Context window
Gemini 3 Flash Preview 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 Flash PreviewBarsGPT-5.1-CodexTies
Coding70
Intelligence10
Agentic work13
Reasoning20
Math20
Knowledge10
Web design30
General20
All shared boards193
CodingLike-for-likeSix of these boards feed the Vibe Coding Index70
Coding benchmarks for Gemini 3 Flash Preview and GPT-5.1-Codex
BenchmarkGemini 3 Flash PreviewGPT-5.1-CodexLeader
SWE-bench Verified75.8%66.0%Gemini 3 Flash Preview
LMArena WebDevNot measured1337Only GPT-5.1-Codex measured
LiveCodeBench (Vals AI)85.6%85.5%Gemini 3 Flash Preview
SWE-bench Verified (Vals AI)75.0%Not measuredOnly Gemini 3 Flash Preview measured
Vibe Code Bench (Vals AI)20.2%13.1%Gemini 3 Flash Preview
Code migration (Vals AI)6.4%Not measuredOnly Gemini 3 Flash Preview measured
ProgramBench (Vals AI)0.0%Not measuredOnly Gemini 3 Flash Preview measured
Terminal-Bench 2.1 (Vals AI)53.9%Not measuredOnly Gemini 3 Flash Preview measured
LiveCodeBench (Artificial Analysis run)90.8%84.9%Gemini 3 Flash Preview
Terminal-Bench Hard (Artificial Analysis run)38.6%34.8%Gemini 3 Flash Preview
Terminal-Bench64.3%57.8%Gemini 3 Flash Preview
GSO-Bench9.8%Not measuredOnly Gemini 3 Flash Preview measured
WeirdML61.6%Not measuredOnly Gemini 3 Flash Preview measured
ALE-Bench1367.21244.9Gemini 3 Flash Preview
LMArena WebDev: HTMLNot measured1346Only GPT-5.1-Codex measured
SciCode12.7%Not measuredOnly Gemini 3 Flash Preview measured
Neither model has a result on the other 23 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Gemini 3 Flash Preview and GPT-5.1-Codex
BenchmarkGemini 3 Flash PreviewGPT-5.1-CodexLeader
AA Intelligence Index26.323.7Gemini 3 Flash Preview
Neither model has a result on the other 1 board here
Agentic workLike-for-likePublic boards, shown as published, kept out of the index13
Agentic work benchmarks for Gemini 3 Flash Preview and GPT-5.1-Codex
BenchmarkGemini 3 Flash PreviewGPT-5.1-CodexLeader
Design Arena: agents building web apps11111018Gemini 3 Flash Preview
Design Arena: agents building full-stack apps10631086GPT-5.1-Codex
Design Arena: agents building mobile apps10901191GPT-5.1-Codex
Design Arena: agents building Android apps1051Not measuredOnly Gemini 3 Flash Preview measured
Design Arena: agents building Godot games1161Not measuredOnly Gemini 3 Flash Preview measured
Design Arena: PowerPoint slides1036Not measuredOnly Gemini 3 Flash Preview measured
Finance Agent (Vals AI)42.5%Not measuredOnly Gemini 3 Flash Preview measured
Tax Agent Bench (Vals AI)11.8%Not measuredOnly Gemini 3 Flash Preview measured
Legal Research Bench (Vals AI)18.3%Not measuredOnly Gemini 3 Flash Preview measured
Excel Modeling Benchmark (Vals AI)26.0%Not measuredOnly Gemini 3 Flash Preview measured
τ²-Bench Telecom80.4%83.0%GPT-5.1-Codex
BALROG48.1%Not measuredOnly Gemini 3 Flash Preview measured
DeepResearch Bench49.8%Not measuredOnly Gemini 3 Flash Preview measured
Vending-Bench 2$3,635Not measuredOnly Gemini 3 Flash Preview measured
Neither model has a result on the other 27 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index20
Reasoning benchmarks for Gemini 3 Flash Preview and GPT-5.1-Codex
BenchmarkGemini 3 Flash PreviewGPT-5.1-CodexLeader
GPQA Diamond87.9%Not measuredOnly Gemini 3 Flash Preview measured
MMMU Pro (Vals AI)87.6%Not measuredOnly Gemini 3 Flash Preview measured
GPQA Diamond (Artificial Analysis run)89.8%86.0%Gemini 3 Flash Preview
Humanity's Last Exam (Artificial Analysis run)36.6%25.7%Gemini 3 Flash Preview
GPQA Diamond (Epoch AI run)89.4%Not measuredOnly Gemini 3 Flash Preview measured
ARC-AGI84.7%Not measuredOnly Gemini 3 Flash Preview measured
ARC-AGI-233.6%Not measuredOnly Gemini 3 Flash Preview measured
SimpleBench61.1%Not measuredOnly Gemini 3 Flash Preview measured
Chess puzzles39.0%Not measuredOnly Gemini 3 Flash Preview measured
Mystery game puzzles26.0%Not measuredOnly Gemini 3 Flash Preview measured
VPCT72.6%Not measuredOnly Gemini 3 Flash Preview measured
Neither model has a result on the other 11 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index20
Math benchmarks for Gemini 3 Flash Preview and GPT-5.1-Codex
BenchmarkGemini 3 Flash PreviewGPT-5.1-CodexLeader
AIME95.6%Not measuredOnly Gemini 3 Flash Preview measured
MGSM (Vals AI)93.3%Not measuredOnly Gemini 3 Flash Preview measured
AA Math Index97.095.7Gemini 3 Flash Preview
AIME 2025 (Artificial Analysis run)97.0%95.7%Gemini 3 Flash Preview
OTIS Mock AIME95.6%Not measuredOnly Gemini 3 Flash Preview measured
FrontierMath, tiers 1 to 351.2%Not measuredOnly Gemini 3 Flash Preview measured
FrontierMath, tier 417.1%Not measuredOnly Gemini 3 Flash Preview measured
ProofBench15.0%Not measuredOnly Gemini 3 Flash Preview measured
Neither model has a result on the other 5 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index10
Knowledge benchmarks for Gemini 3 Flash Preview and GPT-5.1-Codex
BenchmarkGemini 3 Flash PreviewGPT-5.1-CodexLeader
MMLU Pro88.6%Not measuredOnly Gemini 3 Flash Preview measured
LegalBench (Vals AI)86.9%Not measuredOnly Gemini 3 Flash Preview measured
CaseLaw (Vals AI)55.8%Not measuredOnly Gemini 3 Flash Preview measured
CorpFin (Vals AI)66.4%Not measuredOnly Gemini 3 Flash Preview measured
TaxEval (Vals AI)73.9%Not measuredOnly Gemini 3 Flash Preview measured
MortgageTax (Vals AI)68.7%Not measuredOnly Gemini 3 Flash Preview measured
MedQA (Vals AI)95.8%Not measuredOnly Gemini 3 Flash Preview measured
MedCode (Vals AI)55.9%Not measuredOnly Gemini 3 Flash Preview measured
MMLU Pro (Artificial Analysis run)89.0%86.0%Gemini 3 Flash Preview
SimpleQA Verified66.8%Not measuredOnly Gemini 3 Flash Preview measured
GeoBench88.0%Not measuredOnly Gemini 3 Flash Preview measured
FACTS Benchmark Suite63.4%Not measuredOnly Gemini 3 Flash Preview measured
Neither model has a result on the other 6 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index30
Web design benchmarks for Gemini 3 Flash Preview and GPT-5.1-Codex
BenchmarkGemini 3 Flash PreviewGPT-5.1-CodexLeader
Design Arena: websites11961161Gemini 3 Flash Preview
Design Arena: UI componentsNot measured1234Only GPT-5.1-Codex measured
Design Arena: game dev11661137Gemini 3 Flash Preview
Design Arena: data vizNot measured1213Only GPT-5.1-Codex measured
Design Arena: 3D1183Not measuredOnly Gemini 3 Flash Preview measured
Design Arena: all code categories11891152Gemini 3 Flash Preview
Neither model has a result on the other 3 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index20
General benchmarks for Gemini 3 Flash Preview and GPT-5.1-Codex
BenchmarkGemini 3 Flash PreviewGPT-5.1-CodexLeader
SAGE (Vals AI)51.8%Not measuredOnly Gemini 3 Flash Preview measured
MedScribe (Vals AI)69.9%Not measuredOnly Gemini 3 Flash Preview measured
Vals Multimodal Index52.2%Not measuredOnly Gemini 3 Flash Preview measured
IFBench78.0%70.0%Gemini 3 Flash Preview
Long context reasoning (AA-LCR)78.0%69.3%Gemini 3 Flash Preview
DTBench89.1%Not measuredOnly Gemini 3 Flash Preview measured
LMCA43.1%Not measuredOnly Gemini 3 Flash Preview measured
Neither model has a result on the other 39 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemini 3 Flash Preview and GPT-5.1-Codex
BenchmarkGemini 3 Flash PreviewGPT-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 Flash Preview$0.0020Fits in one request
GPT-5.1-Codex$0.0063Fits in one request

Gemini 3 Flash Preview costs less

Repository review

50K input + 3K output tokens

Gemini 3 Flash Preview$0.034Fits in one request
GPT-5.1-Codex$0.092Fits in one request

Gemini 3 Flash Preview costs less

Agent loop

200K input + 10K output tokens

Gemini 3 Flash Preview$0.130Fits in one request
GPT-5.1-Codex$0.350Fits in one request

Gemini 3 Flash Preview 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 Flash Preview and GPT-5.1-Codex
SpecificationGoogle Gemini 3 Flash PreviewOpenAI GPT-5.1-Codex
MakerGoogleOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedDecember 17, 2025November 13, 2025
Context window1.05M400K
Input $/Mtok$0.50$1.25
Output $/Mtok$3.00$10.00
Coding index43.715.3
Independent measurements behind it22
Cost per solved task$0.37$0.892
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick Gemini 3 Flash Preview for coding: it scores 43.7 on the Vibe Coding Index against 15.3 for GPT-5.1-Codex. Pick GPT-5.1-Codex for work measured by Design Arena: agents building full-stack apps or Design Arena: agents building mobile apps, where it leads.

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

Gemini 3 Flash Preview costs $0.50 per million input tokens and $3.00 per million output tokens; GPT-5.1-Codex costs $1.25 and $10.00. Per solved SWE-bench Verified task, Gemini 3 Flash Preview costs $0.37 and GPT-5.1-Codex $0.892.

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

Gemini 3 Flash Preview, with 1.05M tokens against 400K.

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

22 benchmarks have a result for both models as of October 22, 2026. Gemini 3 Flash Preview'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-flash-preview-vs-gpt-5-1-codex" title="Gemini 3 Flash Preview 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-flash-preview-vs-gpt-5-1-codex">LLMBenchmark.ai, Gemini 3 Flash Preview vs GPT-5.1-Codex</a></p>