Enter opens the highlighted result. Esc closes.

Gemini 3.1 Pro Preview vs GPT-5.4

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

Gemini 3.1 Pro PreviewGoogle
Coding
32.3
Overall
54.0
Output $/M
$12.00
64
GPT-5.4OpenAI
Coding
64.4
Overall
69.6
Output $/M
$15.00
42
vs boards won of 107 shared, 1 tied

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

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

Pick Gemini 3.1 Pro Preview for output tokens 1.3x cheaper ($12.00 vs $15.00 per million) and a lower cost per solved task ($0.99 against $1.02).

Shared results
107
Gemini 3.1 Pro Preview only
26
GPT-5.4 only
3
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.1 Pro Preview 32.3 from 4 benchmarks, GPT-5.4 64.4 from 3 benchmarks.
Widest category
Math, 11.2 points apart on average over 7 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): Gemini 3.1 Pro Preview 32.0% against GPT-5.4 67.4%, 35.4 points apart on a 0 to 100 scale.
Output price
Gemini 3.1 Pro Preview $12.00 against GPT-5.4 $15.00 per million output tokens, 1.3x apart.
Context window
Gemini 3.1 Pro Preview takes 1.05M tokens, GPT-5.4 1.05M.

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.4Ties
Coding414
Intelligence01
Agentic work92
Reasoning96
Math16
Knowledge103
Web design80
General23101 tie
All shared boards64421 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index414
Coding benchmarks for Gemini 3.1 Pro Preview and GPT-5.4
BenchmarkGemini 3.1 Pro PreviewGPT-5.4Leader
LMArena WebDev14471464GPT-5.4
AA Coding Index68.871.1GPT-5.4
LiveCodeBench (Vals AI)88.5%84.1%Gemini 3.1 Pro Preview
SWE-bench Verified (Vals AI)78.8%78.2%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%67.4%GPT-5.4
Code migration (Vals AI)17.3%35.0%GPT-5.4
ProgramBench (Vals AI)0.0%0.5%GPT-5.4
IOI (Vals AI)51.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Terminal-Bench 2.1 (Vals AI)70.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Vibe Code Bench 1-100 (Vals AI)6.7%Not measuredOnly Gemini 3.1 Pro Preview measured
SkillsBench (Vals AI)Not measured51.7%Only GPT-5.4 measured
SciCode58.7%Not measuredOnly Gemini 3.1 Pro Preview measured
Terminal-Bench Hard (Artificial Analysis run)53.8%57.6%GPT-5.4
Terminal-Bench80.2%81.8%GPT-5.4
GSO-Bench22.6%31.4%GPT-5.4
WeirdML72.1%77.7%GPT-5.4
MirrorCode8.9%15.6%GPT-5.4
ALE-Bench1160.61607.0GPT-5.4
LMArena Text: coding14841496GPT-5.4
LMArena Text: software and IT14871491GPT-5.4
LMArena WebDev: React14381454GPT-5.4
LMArena WebDev: HTML14901478Gemini 3.1 Pro Preview
LMArena WebDev: from an image14811436Gemini 3.1 Pro Preview
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 index01
Intelligence benchmarks for Gemini 3.1 Pro Preview and GPT-5.4
BenchmarkGemini 3.1 Pro PreviewGPT-5.4Leader
AA Intelligence Index29.739.0GPT-5.4
Epoch Capabilities IndexNot measured157.3Only GPT-5.4 measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index92
Agentic work benchmarks for Gemini 3.1 Pro Preview and GPT-5.4
BenchmarkGemini 3.1 Pro PreviewGPT-5.4Leader
AA Agentic Index8.2Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: agents building web apps11251059Gemini 3.1 Pro Preview
Design Arena: agents building full-stack apps10681017Gemini 3.1 Pro Preview
Design Arena: agents building mobile apps10931087Gemini 3.1 Pro Preview
Design Arena: agents building Android apps10481030Gemini 3.1 Pro Preview
Design Arena: agents building Godot games12361135Gemini 3.1 Pro Preview
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%Not measuredOnly Gemini 3.1 Pro Preview measured
Tax Agent Bench (Vals AI)9.3%Not measuredOnly Gemini 3.1 Pro Preview measured
Legal Research Bench (Vals AI)20.7%Not measuredOnly Gemini 3.1 Pro Preview measured
Excel Modeling Benchmark (Vals AI)52.6%Not measuredOnly Gemini 3.1 Pro Preview measured
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%87.1%Gemini 3.1 Pro Preview
APEX-Agents35.1%52.4%GPT-5.4
METR time horizons77.0%74.3%Gemini 3.1 Pro Preview
BALROG57.0%Not measuredOnly Gemini 3.1 Pro Preview measured
DeepResearch Bench47.8%35.1%Gemini 3.1 Pro Preview
PostTrainBench22.0%19.0%Gemini 3.1 Pro Preview
Vending-Bench 2$911$6,144GPT-5.4
Neither model has a result on the other 17 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index96
Reasoning benchmarks for Gemini 3.1 Pro Preview and GPT-5.4
BenchmarkGemini 3.1 Pro PreviewGPT-5.4Leader
GPQA Diamond95.5%91.7%Gemini 3.1 Pro Preview
MysteryMechanism (Vals AI)20.7%Not measuredOnly Gemini 3.1 Pro Preview measured
MMMU Pro (Vals AI)88.2%87.5%Gemini 3.1 Pro Preview
GPQA Diamond (Artificial Analysis run)94.1%92.0%Gemini 3.1 Pro Preview
Humanity's Last Exam (Artificial Analysis run)47.0%43.7%Gemini 3.1 Pro Preview
GPQA Diamond (Epoch AI run)94.4%93.3%Gemini 3.1 Pro Preview
ARC-AGI98.0%93.7%Gemini 3.1 Pro Preview
ARC-AGI-277.1%74.0%Gemini 3.1 Pro Preview
SimpleBench79.6%Not measuredOnly Gemini 3.1 Pro Preview measured
Chess puzzles51.0%48.0%Gemini 3.1 Pro Preview
Mystery game puzzles34.0%37.0%GPT-5.4
EBR-bench14.3%25.4%GPT-5.4
LMArena Text: hard prompts14851485GPT-5.4
LMArena Text: expert14831507GPT-5.4
LMArena Text: hard prompts in English14801479Gemini 3.1 Pro Preview
LMArena Vision: diagrams13111327GPT-5.4
LMArena Vision: homework13161336GPT-5.4
Kagi LLM BenchmarkNot measured63.8%Only GPT-5.4 measured
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index16
Math benchmarks for Gemini 3.1 Pro Preview and GPT-5.4
BenchmarkGemini 3.1 Pro PreviewGPT-5.4Leader
AIME98.1%96.7%Gemini 3.1 Pro Preview
OTIS Mock AIME95.6%97.8%GPT-5.4
FrontierMath, tiers 1 to 359.6%78.6%GPT-5.4
FrontierMath, tier 426.8%49.0%GPT-5.4
ProofBench26.0%56.0%GPT-5.4
LMArena Text: math14861488GPT-5.4
LMArena Text: mathematical work14781497GPT-5.4
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index103
Knowledge benchmarks for Gemini 3.1 Pro Preview and GPT-5.4
BenchmarkGemini 3.1 Pro PreviewGPT-5.4Leader
MMLU Pro91.0%87.5%Gemini 3.1 Pro Preview
LegalBench (Vals AI)87.4%86.0%Gemini 3.1 Pro Preview
CaseLaw (Vals AI)64.8%63.8%Gemini 3.1 Pro Preview
CorpFin (Vals AI)64.5%65.3%GPT-5.4
TaxEval (Vals AI)72.9%74.0%GPT-5.4
MortgageTax (Vals AI)69.4%68.3%Gemini 3.1 Pro Preview
MedQA (Vals AI)96.4%96.1%Gemini 3.1 Pro Preview
MedCode (Vals AI)59.1%41.3%Gemini 3.1 Pro Preview
SimpleQA Verified73.5%45.1%Gemini 3.1 Pro Preview
LMArena Text: science14971479Gemini 3.1 Pro Preview
LMArena Text: medicine and healthcare14861458Gemini 3.1 Pro Preview
LMArena Text: legal and government14871486Gemini 3.1 Pro Preview
LMArena Text: business and finance14591474GPT-5.4
FACTS Benchmark Suite67.4%Not measuredOnly Gemini 3.1 Pro Preview measured
Neither model has a result on the other 4 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index80
Web design benchmarks for Gemini 3.1 Pro Preview and GPT-5.4
BenchmarkGemini 3.1 Pro PreviewGPT-5.4Leader
Design Arena: websites12341199Gemini 3.1 Pro Preview
Design Arena: UI components12271215Gemini 3.1 Pro Preview
Design Arena: game dev12031195Gemini 3.1 Pro Preview
Design Arena: data viz12091196Gemini 3.1 Pro Preview
Design Arena: 3D12341066Gemini 3.1 Pro Preview
Design Arena: all code categories12311180Gemini 3.1 Pro Preview
Design Arena: SVG12851142Gemini 3.1 Pro Preview
Design Arena: ASCII art12701188Gemini 3.1 Pro Preview
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index2310
General benchmarks for Gemini 3.1 Pro Preview and GPT-5.4
BenchmarkGemini 3.1 Pro PreviewGPT-5.4Leader
Public Benefits Bench (Vals AI)53.8%Not measuredOnly Gemini 3.1 Pro Preview measured
SAGE (Vals AI)48.7%43.3%Gemini 3.1 Pro Preview
MedScribe (Vals AI)76.1%77.5%GPT-5.4
Vals Multimodal Index56.1%Not measuredOnly Gemini 3.1 Pro Preview measured
IFBench77.1%73.9%Gemini 3.1 Pro Preview
Long context reasoning (AA-LCR)82.0%82.0%Tie
DTBench97.1%94.4%Gemini 3.1 Pro Preview
LMCA53.8%52.0%Gemini 3.1 Pro Preview
CL-bench20.8%27.9%GPT-5.4
Furniture assembly26.7%37.5%GPT-5.4
ExploitBench26.1%Not measuredOnly Gemini 3.1 Pro Preview measured
CL-bench Life16.9%21.7%GPT-5.4
LMArena Text14801469Gemini 3.1 Pro Preview
LMArena Text: instruction following14661469GPT-5.4
LMArena Text: creative writing14821439Gemini 3.1 Pro Preview
LMArena Vision12961303GPT-5.4
LMArena Text: English14781467Gemini 3.1 Pro Preview
LMArena Text: non-English14761465Gemini 3.1 Pro Preview
LMArena Text: Chinese15271520Gemini 3.1 Pro Preview
LMArena Text: German14901472Gemini 3.1 Pro Preview
LMArena Text: Japanese14911485Gemini 3.1 Pro Preview
LMArena Text: Korean14551449Gemini 3.1 Pro Preview
LMArena Text: French14871493GPT-5.4
LMArena Text: Spanish14811452Gemini 3.1 Pro Preview
LMArena Text: Russian14971480Gemini 3.1 Pro Preview
LMArena Text: Polish14981472Gemini 3.1 Pro Preview
LMArena Text: multi-turn14871482Gemini 3.1 Pro Preview
LMArena Text: longer queries14821473Gemini 3.1 Pro Preview
LMArena Text: writing and language14811458Gemini 3.1 Pro Preview
LMArena Text: entertainment and media14651438Gemini 3.1 Pro Preview
LMArena Vision: English12871301GPT-5.4
LMArena Vision: Chinese13641354Gemini 3.1 Pro Preview
LMArena Vision: reading text13041312GPT-5.4
LMArena Vision: humor13221284Gemini 3.1 Pro Preview
LMArena Vision: captioning1345Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: recognizing things13301251Gemini 3.1 Pro Preview
LMArena Vision: creative writing13241283Gemini 3.1 Pro Preview
LMArena Document14441471GPT-5.4
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
BenchmarkGemini 3.1 Pro PreviewGPT-5.4Leader
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$0.010Fits in one request

Gemini 3.1 Pro Preview costs less

Repository review

50K input + 3K output tokens

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

Gemini 3.1 Pro Preview costs less

Agent loop

200K input + 10K output tokens

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

Gemini 3.1 Pro 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.1 Pro Preview and GPT-5.4
SpecificationGoogle Gemini 3.1 Pro PreviewOpenAI GPT-5.4
MakerGoogleOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedFebruary 19, 2026March 5, 2026
Context window1.05M1.05M
Input $/Mtok$2.00$2.50
Output $/Mtok$12.00$15.00
Coding index32.364.4
Independent measurements behind it43
Cost per solved task$0.99$1.02
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick GPT-5.4 for coding: it scores 64.4 on the Vibe Coding Index against 32.3 for Gemini 3.1 Pro Preview, though on 3 benchmarks against 4. Pick Gemini 3.1 Pro Preview for output tokens 1.3x cheaper ($12.00 vs $15.00 per million) and a lower cost per solved task ($0.99 against $1.02).

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

Gemini 3.1 Pro Preview costs $2.00 per million input tokens and $12.00 per million output tokens; GPT-5.4 costs $2.50 and $15.00. Per solved SWE-bench Verified task, Gemini 3.1 Pro Preview costs $0.99 and GPT-5.4 $1.02.

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

GPT-5.4, with 1.05M tokens against 1.05M.

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

107 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's on 3. 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" title="Gemini 3.1 Pro Preview vs GPT-5.4, 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">LLMBenchmark.ai, Gemini 3.1 Pro Preview vs GPT-5.4</a></p>