Enter opens the highlighted result. Esc closes.

Gemini 3.1 Pro Preview vs GPT-5.4 Nano

GPT-5.4 Nano leads Gemini 3.1 Pro Preview on coding, 44.8 to 32.3 on the Vibe Coding Index, and GPT-5.4 Nano costs 9.6x less per output token ($1.25 vs $12.00 per million). Updated October 22, 2026; 83 benchmarks have a result for both.

Gemini 3.1 Pro PreviewGoogle
Coding
32.3
Overall
54.0
Output $/M
$12.00
81
GPT-5.4 NanoOpenAI
Coding
44.8
Overall
45.7
Output $/M
$1.25
2
vs boards won of 83 shared

Gemini 3.1 Pro Preview or GPT-5.4 Nano: which to pick

Pick GPT-5.4 Nano for coding: it scores 44.8 on the Vibe Coding Index against 32.3 for Gemini 3.1 Pro Preview, though on 2 benchmarks against 4.

Pick Gemini 3.1 Pro Preview for a larger context window (1.05M against 400K tokens) and work measured by AA Coding Index or LiveCodeBench (Vals AI), where it leads.

Shared results
83
Gemini 3.1 Pro Preview only
50
GPT-5.4 Nano only
2
Like-for-like categories
7 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.1 Pro Preview 32.3 from 4 benchmarks, GPT-5.4 Nano 44.8 from 2 benchmarks.
Widest category
Reasoning, 22.0 points apart on average over 14 shared benchmarks.
Widest single gap
ARC-AGI-2: Gemini 3.1 Pro Preview 77.1% against GPT-5.4 Nano 5.7%, 71.4 points apart on a 0 to 100 scale.
Output price
Gemini 3.1 Pro Preview $12.00 against GPT-5.4 Nano $1.25 per million output tokens, 9.6x apart.
Context window
Gemini 3.1 Pro Preview takes 1.05M tokens, GPT-5.4 Nano 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.1 Pro PreviewBarsGPT-5.4 NanoTies
Coding120
Intelligence10
Agentic work51
Reasoning140
Math70
Knowledge120
General301
All shared boards812
CodingLike-for-likeSix of these boards feed the Vibe Coding Index120
Coding benchmarks for Gemini 3.1 Pro Preview and GPT-5.4 Nano
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 NanoLeader
LMArena WebDev1447Not measuredOnly Gemini 3.1 Pro Preview measured
AA Coding Index68.856.1Gemini 3.1 Pro Preview
LiveCodeBench (Vals AI)88.5%84.0%Gemini 3.1 Pro Preview
SWE-bench Verified (Vals AI)78.8%69.8%Gemini 3.1 Pro Preview
Terminal-Bench 4 (Vals AI)2.5%Not measuredOnly Gemini 3.1 Pro Preview measured
Vibe Code Bench (Vals AI)32.0%26.1%Gemini 3.1 Pro Preview
Code migration (Vals AI)17.3%14.5%Gemini 3.1 Pro Preview
ProgramBench (Vals AI)0.0%Not measuredOnly Gemini 3.1 Pro Preview measured
IOI (Vals AI)51.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Terminal-Bench 2.1 (Vals AI)70.8%41.6%Gemini 3.1 Pro Preview
Vibe Code Bench 1-100 (Vals AI)6.7%Not measuredOnly Gemini 3.1 Pro Preview measured
SciCode58.7%47.2%Gemini 3.1 Pro Preview
Terminal-Bench Hard (Artificial Analysis run)53.8%42.4%Gemini 3.1 Pro Preview
Terminal-Bench80.2%Not measuredOnly Gemini 3.1 Pro Preview measured
GSO-Bench22.6%Not measuredOnly Gemini 3.1 Pro Preview measured
WeirdML72.1%49.2%Gemini 3.1 Pro Preview
MirrorCode8.9%Not measuredOnly Gemini 3.1 Pro Preview measured
ALE-Bench1160.61004.5Gemini 3.1 Pro Preview
LMArena Text: coding14841404Gemini 3.1 Pro Preview
LMArena Text: software and IT14871402Gemini 3.1 Pro Preview
LMArena WebDev: React1438Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena WebDev: HTML1490Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena WebDev: from an image1481Not measuredOnly Gemini 3.1 Pro Preview measured
SciCode14.3%Not measuredOnly Gemini 3.1 Pro Preview measured
Neither model has a result on the other 15 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Gemini 3.1 Pro Preview and GPT-5.4 Nano
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 NanoLeader
AA Intelligence Index29.720.7Gemini 3.1 Pro Preview
Epoch Capabilities IndexNot measured146.0Only GPT-5.4 Nano measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index51
Agentic work benchmarks for Gemini 3.1 Pro Preview and GPT-5.4 Nano
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 NanoLeader
AA Agentic Index8.216.0GPT-5.4 Nano
Design Arena: agents building web apps1125Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: agents building full-stack apps1068Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: agents building mobile apps1094Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: agents building Android apps1049Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: agents building Godot games1236Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: agents building games1113Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: HTML slides1103Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: PowerPoint slides1041Not measuredOnly Gemini 3.1 Pro Preview measured
SREBench (Vals AI)0.0%Not measuredOnly Gemini 3.1 Pro Preview measured
Finance Agent (Vals AI)43.0%38.2%Gemini 3.1 Pro Preview
Tax Agent Bench (Vals AI)9.3%5.0%Gemini 3.1 Pro Preview
Legal Research Bench (Vals AI)20.7%6.3%Gemini 3.1 Pro Preview
Excel Modeling Benchmark (Vals AI)52.6%44.8%Gemini 3.1 Pro Preview
BioMysteryBench (Vals AI)60.0%Not measuredOnly Gemini 3.1 Pro Preview measured
Terminal-Bench-Science (Vals AI)1.4%Not measuredOnly Gemini 3.1 Pro Preview measured
Vals Science Index27.4%Not measuredOnly Gemini 3.1 Pro Preview measured
τ²-Bench Telecom95.6%76.0%Gemini 3.1 Pro Preview
APEX-Agents35.1%Not measuredOnly Gemini 3.1 Pro Preview measured
METR time horizons77.0%Not measuredOnly Gemini 3.1 Pro Preview measured
BALROG57.0%Not measuredOnly Gemini 3.1 Pro Preview measured
DeepResearch Bench47.8%Not measuredOnly Gemini 3.1 Pro Preview measured
PostTrainBench22.0%Not measuredOnly Gemini 3.1 Pro Preview measured
Vending-Bench 2$911Not measuredOnly Gemini 3.1 Pro Preview measured
Neither model has a result on the other 17 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index140
Reasoning benchmarks for Gemini 3.1 Pro Preview and GPT-5.4 Nano
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 NanoLeader
GPQA Diamond95.5%77.5%Gemini 3.1 Pro Preview
MysteryMechanism (Vals AI)20.7%Not measuredOnly Gemini 3.1 Pro Preview measured
MMMU Pro (Vals AI)88.2%73.6%Gemini 3.1 Pro Preview
GPQA Diamond (Artificial Analysis run)94.1%81.7%Gemini 3.1 Pro Preview
Humanity's Last Exam (Artificial Analysis run)47.0%28.3%Gemini 3.1 Pro Preview
GPQA Diamond (Epoch AI run)94.4%78.5%Gemini 3.1 Pro Preview
ARC-AGI98.0%51.5%Gemini 3.1 Pro Preview
ARC-AGI-277.1%5.7%Gemini 3.1 Pro Preview
SimpleBench79.6%Not measuredOnly Gemini 3.1 Pro Preview measured
Chess puzzles51.0%45.0%Gemini 3.1 Pro Preview
Mystery game puzzles34.0%9.0%Gemini 3.1 Pro Preview
EBR-bench14.3%Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Text: hard prompts14851381Gemini 3.1 Pro Preview
LMArena Text: expert14831396Gemini 3.1 Pro Preview
LMArena Text: hard prompts in English14801387Gemini 3.1 Pro Preview
LMArena Vision: diagrams13111210Gemini 3.1 Pro Preview
LMArena Vision: homework13161225Gemini 3.1 Pro Preview
Kagi LLM BenchmarkNot measured39.7%Only GPT-5.4 Nano measured
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index70
Math benchmarks for Gemini 3.1 Pro Preview and GPT-5.4 Nano
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 NanoLeader
AIME98.1%88.8%Gemini 3.1 Pro Preview
OTIS Mock AIME95.6%87.8%Gemini 3.1 Pro Preview
FrontierMath, tiers 1 to 359.6%44.9%Gemini 3.1 Pro Preview
FrontierMath, tier 426.8%12.2%Gemini 3.1 Pro Preview
ProofBench26.0%5.0%Gemini 3.1 Pro Preview
LMArena Text: math14861405Gemini 3.1 Pro Preview
LMArena Text: mathematical work14781409Gemini 3.1 Pro Preview
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index120
Knowledge benchmarks for Gemini 3.1 Pro Preview and GPT-5.4 Nano
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 NanoLeader
MMLU Pro91.0%77.2%Gemini 3.1 Pro Preview
LegalBench (Vals AI)87.4%77.9%Gemini 3.1 Pro Preview
CaseLaw (Vals AI)64.8%51.9%Gemini 3.1 Pro Preview
CorpFin (Vals AI)64.5%61.2%Gemini 3.1 Pro Preview
TaxEval (Vals AI)72.9%67.4%Gemini 3.1 Pro Preview
MortgageTax (Vals AI)69.4%59.1%Gemini 3.1 Pro Preview
MedQA (Vals AI)96.4%Not measuredOnly Gemini 3.1 Pro Preview measured
MedCode (Vals AI)59.1%41.0%Gemini 3.1 Pro Preview
SimpleQA Verified73.5%11.7%Gemini 3.1 Pro Preview
LMArena Text: science14971374Gemini 3.1 Pro Preview
LMArena Text: medicine and healthcare14861369Gemini 3.1 Pro Preview
LMArena Text: legal and government14871368Gemini 3.1 Pro Preview
LMArena Text: business and finance14591366Gemini 3.1 Pro Preview
FACTS Benchmark Suite67.4%Not measuredOnly Gemini 3.1 Pro Preview measured
Neither model has a result on the other 4 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for Gemini 3.1 Pro Preview and GPT-5.4 Nano
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 NanoLeader
Design Arena: websites1233Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: UI components1224Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: game dev1202Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: data viz1209Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: 3D1234Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: all code categories1231Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: SVG1285Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: ASCII art1270Not measuredOnly Gemini 3.1 Pro Preview measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index301
General benchmarks for Gemini 3.1 Pro Preview and GPT-5.4 Nano
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 NanoLeader
Public Benefits Bench (Vals AI)53.8%Not measuredOnly Gemini 3.1 Pro Preview measured
SAGE (Vals AI)48.7%38.1%Gemini 3.1 Pro Preview
MedScribe (Vals AI)76.1%77.1%GPT-5.4 Nano
Vals Multimodal Index56.1%47.6%Gemini 3.1 Pro Preview
IFBench77.1%75.9%Gemini 3.1 Pro Preview
Long context reasoning (AA-LCR)82.0%76.7%Gemini 3.1 Pro Preview
DTBench97.1%80.3%Gemini 3.1 Pro Preview
LMCA53.8%36.9%Gemini 3.1 Pro Preview
CL-bench20.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Furniture assembly26.7%Not measuredOnly Gemini 3.1 Pro Preview measured
ExploitBench26.1%Not measuredOnly Gemini 3.1 Pro Preview measured
CL-bench Life16.9%Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Text14801372Gemini 3.1 Pro Preview
LMArena Text: instruction following14661362Gemini 3.1 Pro Preview
LMArena Text: creative writing14821315Gemini 3.1 Pro Preview
LMArena Vision12961196Gemini 3.1 Pro Preview
LMArena Text: English14781381Gemini 3.1 Pro Preview
LMArena Text: non-English14761359Gemini 3.1 Pro Preview
LMArena Text: Chinese15271391Gemini 3.1 Pro Preview
LMArena Text: German14901368Gemini 3.1 Pro Preview
LMArena Text: Japanese14911343Gemini 3.1 Pro Preview
LMArena Text: Korean14551321Gemini 3.1 Pro Preview
LMArena Text: French14871395Gemini 3.1 Pro Preview
LMArena Text: Spanish14811371Gemini 3.1 Pro Preview
LMArena Text: Russian14971363Gemini 3.1 Pro Preview
LMArena Text: Polish14981366Gemini 3.1 Pro Preview
LMArena Text: multi-turn14871382Gemini 3.1 Pro Preview
LMArena Text: longer queries14821365Gemini 3.1 Pro Preview
LMArena Text: writing and language14811338Gemini 3.1 Pro Preview
LMArena Text: entertainment and media14651325Gemini 3.1 Pro Preview
LMArena Vision: English12871202Gemini 3.1 Pro Preview
LMArena Vision: Chinese13641232Gemini 3.1 Pro Preview
LMArena Vision: reading text13041204Gemini 3.1 Pro Preview
LMArena Vision: humor13221161Gemini 3.1 Pro Preview
LMArena Vision: captioning1345Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: recognizing things13301141Gemini 3.1 Pro Preview
LMArena Vision: creative writing13241159Gemini 3.1 Pro Preview
LMArena Document1444Not measuredOnly Gemini 3.1 Pro Preview measured
Neither model has a result on the other 8 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemini 3.1 Pro Preview and GPT-5.4 Nano
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 NanoLeader
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.1 Pro Preview$0.0080Fits in one request
GPT-5.4 Nano$0.0008Fits in one request

GPT-5.4 Nano costs less

Repository review

50K input + 3K output tokens

Gemini 3.1 Pro Preview$0.136Fits in one request
GPT-5.4 Nano$0.014Fits in one request

GPT-5.4 Nano costs less

Agent loop

200K input + 10K output tokens

Gemini 3.1 Pro Preview$0.520Fits in one request
GPT-5.4 Nano$0.052Fits in one request

GPT-5.4 Nano 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.1 Pro Preview and GPT-5.4 Nano
SpecificationGoogle Gemini 3.1 Pro PreviewOpenAI GPT-5.4 Nano
MakerGoogleOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedFebruary 19, 2026March 17, 2026
Context window1.05M400K
Input $/Mtok$2.00$0.20
Output $/Mtok$12.00$1.25
Coding index32.344.8
Independent measurements behind it42
Cost per solved task$0.99$0.14
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemini 3.1 Pro Preview better than GPT-5.4 Nano for coding?

Pick GPT-5.4 Nano for coding: it scores 44.8 on the Vibe Coding Index against 32.3 for Gemini 3.1 Pro Preview, though on 2 benchmarks against 4. Pick Gemini 3.1 Pro Preview for a larger context window (1.05M against 400K tokens) and work measured by AA Coding Index or LiveCodeBench (Vals AI), where it leads.

Which is cheaper, Gemini 3.1 Pro Preview or GPT-5.4 Nano?

Gemini 3.1 Pro Preview costs $2.00 per million input tokens and $12.00 per million output tokens; GPT-5.4 Nano costs $0.20 and $1.25. Per solved SWE-bench Verified task, Gemini 3.1 Pro Preview costs $0.99 and GPT-5.4 Nano $0.14.

Which has the bigger context window, Gemini 3.1 Pro Preview or GPT-5.4 Nano?

Gemini 3.1 Pro Preview, with 1.05M tokens against 400K.

How many benchmarks is the Gemini 3.1 Pro Preview vs GPT-5.4 Nano comparison based on?

83 benchmarks have a result for both models as of October 22, 2026. Gemini 3.1 Pro Preview's coding index rests on 4 independent benchmarks and GPT-5.4 Nano'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-1-pro-preview-vs-gpt-5-4-nano" title="Gemini 3.1 Pro Preview vs GPT-5.4 Nano, 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-1-pro-preview-vs-gpt-5-4-nano">LLMBenchmark.ai, Gemini 3.1 Pro Preview vs GPT-5.4 Nano</a></p>