Enter opens the highlighted result. Esc closes.

Gemini 3.1 Pro Preview vs GPT-5.4 Mini

GPT-5.4 Mini leads Gemini 3.1 Pro Preview on coding, 35.8 to 32.3 on the Vibe Coding Index, and GPT-5.4 Mini costs 2.7x less per output token ($4.50 vs $12.00 per million). Updated October 21, 2026; 86 benchmarks have a result for both.

Gemini 3.1 Pro PreviewGoogle
Coding
32.3
Overall
54.0
Output $/M
$12.00
79
GPT-5.4 MiniOpenAI
Coding
35.8
Overall
44.0
Output $/M
$4.50
5
vs boards won of 86 shared, 2 tied

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

Pick GPT-5.4 Mini for coding: it scores 35.8 on the Vibe Coding Index against 32.3 for Gemini 3.1 Pro Preview.

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

Shared results
86
Gemini 3.1 Pro Preview only
47
GPT-5.4 Mini only
3
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 Mini 35.8 from 5 benchmarks.
Widest category
Reasoning, 17.1 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 Mini 18.9%, 58.2 points apart on a 0 to 100 scale.
Output price
Gemini 3.1 Pro Preview $12.00 against GPT-5.4 Mini $4.50 per million output tokens, 2.7x apart.
Context window
Gemini 3.1 Pro Preview takes 1.05M tokens, GPT-5.4 Mini 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 MiniTies
Coding1322 ties
Intelligence10
Agentic work52
Reasoning140
Math70
Knowledge100
General291
All shared boards7952 ties
CodingLike-for-likeSix of these boards feed the Vibe Coding Index132
Coding benchmarks for Gemini 3.1 Pro Preview and GPT-5.4 Mini
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 MiniLeader
LMArena WebDev14471397Gemini 3.1 Pro Preview
AA Coding Index68.856.1Gemini 3.1 Pro Preview
LiveCodeBench (Vals AI)88.5%81.5%Gemini 3.1 Pro Preview
SWE-bench Verified (Vals AI)78.8%73.0%Gemini 3.1 Pro Preview
Terminal-Bench 4 (Vals AI)2.5%2.5%Tie
Vibe Code Bench (Vals AI)32.0%48.0%GPT-5.4 Mini
Code migration (Vals AI)17.3%12.9%Gemini 3.1 Pro Preview
ProgramBench (Vals AI)0.0%0.0%Tie
IOI (Vals AI)51.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Terminal-Bench 2.1 (Vals AI)70.8%54.7%Gemini 3.1 Pro Preview
Vibe Code Bench 1-100 (Vals AI)6.7%Not measuredOnly Gemini 3.1 Pro Preview measured
SciCode58.7%52.1%Gemini 3.1 Pro Preview
Terminal-Bench Hard (Artificial Analysis run)53.8%52.3%Gemini 3.1 Pro Preview
Terminal-Bench80.2%Not measuredOnly Gemini 3.1 Pro Preview measured
FrontierCodeNot measured27.0%Only GPT-5.4 Mini measured
GSO-Bench22.6%Not measuredOnly Gemini 3.1 Pro Preview measured
WeirdML72.1%60.3%Gemini 3.1 Pro Preview
MirrorCode8.9%Not measuredOnly Gemini 3.1 Pro Preview measured
ALE-Bench1160.61188.6GPT-5.4 Mini
LMArena Text: coding14841438Gemini 3.1 Pro Preview
LMArena Text: software and IT14871436Gemini 3.1 Pro Preview
LMArena WebDev: React14381386Gemini 3.1 Pro Preview
LMArena WebDev: HTML14901419Gemini 3.1 Pro Preview
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 14 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 Mini
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 MiniLeader
AA Intelligence Index29.724.1Gemini 3.1 Pro Preview
Epoch Capabilities IndexNot measured148.7Only GPT-5.4 Mini measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index52
Agentic work benchmarks for Gemini 3.1 Pro Preview and GPT-5.4 Mini
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 MiniLeader
AA Agentic Index8.217.9GPT-5.4 Mini
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 apps1093Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: agents building Android apps1048Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: agents building Godot games1236Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: agents building games1114Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: HTML slides1153Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: PowerPoint slides1066Not 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%45.4%GPT-5.4 Mini
Tax Agent Bench (Vals AI)9.3%8.8%Gemini 3.1 Pro Preview
Legal Research Bench (Vals AI)20.7%12.5%Gemini 3.1 Pro Preview
Excel Modeling Benchmark (Vals AI)52.6%45.4%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%83.3%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%36.3%Gemini 3.1 Pro Preview
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 Mini
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 MiniLeader
GPQA Diamond95.5%83.1%Gemini 3.1 Pro Preview
MysteryMechanism (Vals AI)20.7%Not measuredOnly Gemini 3.1 Pro Preview measured
MMMU Pro (Vals AI)88.2%79.3%Gemini 3.1 Pro Preview
GPQA Diamond (Artificial Analysis run)94.1%87.5%Gemini 3.1 Pro Preview
Humanity's Last Exam (Artificial Analysis run)47.0%28.1%Gemini 3.1 Pro Preview
GPQA Diamond (Epoch AI run)94.4%86.9%Gemini 3.1 Pro Preview
ARC-AGI98.0%63.7%Gemini 3.1 Pro Preview
ARC-AGI-277.1%18.9%Gemini 3.1 Pro Preview
SimpleBench79.6%Not measuredOnly Gemini 3.1 Pro Preview measured
Chess puzzles51.0%23.0%Gemini 3.1 Pro Preview
Mystery game puzzles34.0%11.0%Gemini 3.1 Pro Preview
EBR-bench14.3%Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Text: hard prompts14851424Gemini 3.1 Pro Preview
LMArena Text: expert14831435Gemini 3.1 Pro Preview
LMArena Text: hard prompts in English14801420Gemini 3.1 Pro Preview
LMArena Vision: diagrams13111266Gemini 3.1 Pro Preview
LMArena Vision: homework13161285Gemini 3.1 Pro Preview
Kagi LLM BenchmarkNot measured37.9%Only GPT-5.4 Mini 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 Mini
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 MiniLeader
AIME98.1%95.6%Gemini 3.1 Pro Preview
OTIS Mock AIME95.6%88.9%Gemini 3.1 Pro Preview
FrontierMath, tiers 1 to 359.6%51.2%Gemini 3.1 Pro Preview
FrontierMath, tier 426.8%9.8%Gemini 3.1 Pro Preview
ProofBench26.0%21.0%Gemini 3.1 Pro Preview
LMArena Text: math14861418Gemini 3.1 Pro Preview
LMArena Text: mathematical work14781429Gemini 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 index100
Knowledge benchmarks for Gemini 3.1 Pro Preview and GPT-5.4 Mini
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 MiniLeader
MMLU Pro91.0%84.5%Gemini 3.1 Pro Preview
LegalBench (Vals AI)87.4%Not measuredOnly Gemini 3.1 Pro Preview measured
CaseLaw (Vals AI)64.8%51.7%Gemini 3.1 Pro Preview
CorpFin (Vals AI)64.5%60.9%Gemini 3.1 Pro Preview
TaxEval (Vals AI)72.9%71.2%Gemini 3.1 Pro Preview
MortgageTax (Vals AI)69.4%63.5%Gemini 3.1 Pro Preview
MedQA (Vals AI)96.4%Not measuredOnly Gemini 3.1 Pro Preview measured
MedCode (Vals AI)59.1%Not measuredOnly Gemini 3.1 Pro Preview measured
SimpleQA Verified73.5%29.4%Gemini 3.1 Pro Preview
LMArena Text: science14971417Gemini 3.1 Pro Preview
LMArena Text: medicine and healthcare14861395Gemini 3.1 Pro Preview
LMArena Text: legal and government14871414Gemini 3.1 Pro Preview
LMArena Text: business and finance14591418Gemini 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 Mini
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 MiniLeader
Design Arena: websites1234Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: UI components1227Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: game dev1203Not 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 index291
General benchmarks for Gemini 3.1 Pro Preview and GPT-5.4 Mini
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 MiniLeader
Public Benefits Bench (Vals AI)53.8%Not measuredOnly Gemini 3.1 Pro Preview measured
SAGE (Vals AI)48.7%50.8%GPT-5.4 Mini
MedScribe (Vals AI)76.1%Not measuredOnly Gemini 3.1 Pro Preview measured
Vals Multimodal Index56.1%54.2%Gemini 3.1 Pro Preview
IFBench77.1%73.3%Gemini 3.1 Pro Preview
Long context reasoning (AA-LCR)82.0%77.0%Gemini 3.1 Pro Preview
DTBench97.1%80.0%Gemini 3.1 Pro Preview
LMCA53.8%40.8%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 Text14801412Gemini 3.1 Pro Preview
LMArena Text: instruction following14661405Gemini 3.1 Pro Preview
LMArena Text: creative writing14821370Gemini 3.1 Pro Preview
LMArena Vision12961245Gemini 3.1 Pro Preview
LMArena Text: English14781412Gemini 3.1 Pro Preview
LMArena Text: non-English14761405Gemini 3.1 Pro Preview
LMArena Text: Chinese15271446Gemini 3.1 Pro Preview
LMArena Text: German14901408Gemini 3.1 Pro Preview
LMArena Text: Japanese14911375Gemini 3.1 Pro Preview
LMArena Text: Korean14551370Gemini 3.1 Pro Preview
LMArena Text: French14871441Gemini 3.1 Pro Preview
LMArena Text: Spanish14811405Gemini 3.1 Pro Preview
LMArena Text: Russian14971417Gemini 3.1 Pro Preview
LMArena Text: Polish14981415Gemini 3.1 Pro Preview
LMArena Text: multi-turn14871429Gemini 3.1 Pro Preview
LMArena Text: longer queries14821408Gemini 3.1 Pro Preview
LMArena Text: writing and language14811393Gemini 3.1 Pro Preview
LMArena Text: entertainment and media14651373Gemini 3.1 Pro Preview
LMArena Vision: English12871244Gemini 3.1 Pro Preview
LMArena Vision: Chinese13641286Gemini 3.1 Pro Preview
LMArena Vision: reading text13041253Gemini 3.1 Pro Preview
LMArena Vision: humor13221235Gemini 3.1 Pro Preview
LMArena Vision: captioning1345Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: recognizing things13301218Gemini 3.1 Pro Preview
LMArena Vision: creative writing13241222Gemini 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 Mini
BenchmarkGemini 3.1 Pro PreviewGPT-5.4 MiniLeader
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 Mini$0.0030Fits in one request

GPT-5.4 Mini costs less

Repository review

50K input + 3K output tokens

Gemini 3.1 Pro Preview$0.136Fits in one request
GPT-5.4 Mini$0.051Fits in one request

GPT-5.4 Mini costs less

Agent loop

200K input + 10K output tokens

Gemini 3.1 Pro Preview$0.520Fits in one request
GPT-5.4 Mini$0.195Fits in one request

GPT-5.4 Mini 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 Mini
SpecificationGoogle Gemini 3.1 Pro PreviewOpenAI GPT-5.4 Mini
MakerGoogleOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedFebruary 19, 2026March 17, 2026
Context window1.05M400K
Input $/Mtok$2.00$0.75
Output $/Mtok$12.00$4.50
Coding index32.335.8
Independent measurements behind it45
Cost per solved task$0.99$0.70
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick GPT-5.4 Mini for coding: it scores 35.8 on the Vibe Coding Index against 32.3 for Gemini 3.1 Pro Preview. Pick Gemini 3.1 Pro Preview for a larger context window (1.05M against 400K tokens) and work measured by LMArena WebDev or AA Coding Index, where it leads.

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

Gemini 3.1 Pro Preview costs $2.00 per million input tokens and $12.00 per million output tokens; GPT-5.4 Mini costs $0.75 and $4.50. Per solved SWE-bench Verified task, Gemini 3.1 Pro Preview costs $0.99 and GPT-5.4 Mini $0.70.

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

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 Mini comparison based on?

86 benchmarks have a result for both models as of October 21, 2026. Gemini 3.1 Pro Preview's coding index rests on 4 independent benchmarks and GPT-5.4 Mini's on 5. 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-mini" title="Gemini 3.1 Pro Preview vs GPT-5.4 Mini, 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-mini">LLMBenchmark.ai, Gemini 3.1 Pro Preview vs GPT-5.4 Mini</a></p>