Enter opens the highlighted result. Esc closes.

Gemini 3.1 Pro Preview vs Grok 4.5

Grok 4.5 leads Gemini 3.1 Pro Preview on coding, 58.6 to 32.3 on the Vibe Coding Index, and Grok 4.5 costs 2.0x less per output token ($6.00 vs $12.00 per million). Updated October 22, 2026; 108 benchmarks have a result for both.

Gemini 3.1 Pro PreviewGoogle
Coding
32.3
Overall
54.0
Output $/M
$12.00
67
Grok 4.5xAI
Coding
58.6
Overall
62.1
Output $/M
$6.00
40
vs boards won of 108 shared, 1 tied

Gemini 3.1 Pro Preview or Grok 4.5: which to pick

Pick Grok 4.5 for coding: it scores 58.6 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 500K tokens) and work measured by LiveCodeBench (Vals AI) or IOI (Vals AI), where it leads.

Shared results
108
Gemini 3.1 Pro Preview only
25
Grok 4.5 only
15
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, Grok 4.5 58.6 from 6 benchmarks.
Widest category
Agentic work, 14.1 points apart on average over 17 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): Gemini 3.1 Pro Preview 32.0% against Grok 4.5 69.0%, 37.0 points apart on a 0 to 100 scale.
Output price
Gemini 3.1 Pro Preview $12.00 against Grok 4.5 $6.00 per million output tokens, 2.0x apart.
Context window
Gemini 3.1 Pro Preview takes 1.05M tokens, Grok 4.5 500K.

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 PreviewBarsGrok 4.5Ties
Coding8101 tie
Intelligence01
Agentic work116
Reasoning140
Math33
Knowledge111
Web design26
General283
All shared boards67401 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index810
Coding benchmarks for Gemini 3.1 Pro Preview and Grok 4.5
BenchmarkGemini 3.1 Pro PreviewGrok 4.5Leader
LiveBench codingNot measured94.3%Only Grok 4.5 measured
LMArena WebDev14471553Grok 4.5
AA Coding Index68.872.4Grok 4.5
LiveCodeBench (Vals AI)88.5%87.3%Gemini 3.1 Pro Preview
SWE-bench Verified (Vals AI)78.8%86.6%Grok 4.5
Terminal-Bench 4 (Vals AI)2.5%8.6%Grok 4.5
Vibe Code Bench (Vals AI)32.0%69.0%Grok 4.5
Code migration (Vals AI)17.3%36.6%Grok 4.5
ProgramBench (Vals AI)0.0%0.0%Tie
IOI (Vals AI)51.8%40.6%Gemini 3.1 Pro Preview
Terminal-Bench 2.1 (Vals AI)70.8%67.8%Gemini 3.1 Pro Preview
Vibe Code Bench 1-100 (Vals AI)6.7%Not measuredOnly Gemini 3.1 Pro Preview measured
SkillsBench (Vals AI)Not measured66.0%Only Grok 4.5 measured
CyberBench (Vals AI)Not measured71.0%Only Grok 4.5 measured
SciCode58.7%55.0%Gemini 3.1 Pro Preview
Terminal-Bench Hard (Artificial Analysis run)53.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Terminal-Bench80.2%Not measuredOnly Gemini 3.1 Pro Preview measured
FrontierCodeNot measured42.4%Only Grok 4.5 measured
GSO-Bench22.6%Not measuredOnly Gemini 3.1 Pro Preview measured
WeirdML72.1%46.4%Gemini 3.1 Pro Preview
MirrorCode8.9%Not measuredOnly Gemini 3.1 Pro Preview measured
ALE-Bench1160.61309.3Grok 4.5
LMArena Text: coding14841474Gemini 3.1 Pro Preview
LMArena Text: software and IT14871471Gemini 3.1 Pro Preview
LMArena WebDev: React14381556Grok 4.5
LMArena WebDev: HTML14901567Grok 4.5
LMArena WebDev: from an image14811562Grok 4.5
SciCode14.3%6.5%Gemini 3.1 Pro Preview
Neither model has a result on the other 11 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for Gemini 3.1 Pro Preview and Grok 4.5
BenchmarkGemini 3.1 Pro PreviewGrok 4.5Leader
AA Intelligence Index29.738.8Grok 4.5
Epoch Capabilities IndexNot measured154.1Only Grok 4.5 measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index116
Agentic work benchmarks for Gemini 3.1 Pro Preview and Grok 4.5
BenchmarkGemini 3.1 Pro PreviewGrok 4.5Leader
AA Agentic Index8.241.2Grok 4.5
Design Arena: agents building web apps11251218Grok 4.5
Design Arena: agents building full-stack apps10681249Grok 4.5
Design Arena: agents building mobile apps10941220Grok 4.5
Design Arena: agents building Android apps10491236Grok 4.5
Design Arena: agents building Godot games12361229Gemini 3.1 Pro Preview
Design Arena: agents building games11131236Grok 4.5
Design Arena: HTML slides11031205Grok 4.5
Design Arena: PowerPoint slides10411230Grok 4.5
LiveBench researchNot measured85.9%Only Grok 4.5 measured
LiveBench browserNot measured44.0%Only Grok 4.5 measured
LiveBench long agenticNot measured27.9%Only Grok 4.5 measured
SREBench (Vals AI)0.0%0.8%Grok 4.5
Finance Agent (Vals AI)43.0%48.4%Grok 4.5
Tax Agent Bench (Vals AI)9.3%24.9%Grok 4.5
Legal Research Bench (Vals AI)20.7%38.0%Grok 4.5
Excel Modeling Benchmark (Vals AI)52.6%52.9%Grok 4.5
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
Time Horizon Index (Vals AI)Not measured6.3%Only Grok 4.5 measured
τ²-Bench Telecom95.6%Not measuredOnly Gemini 3.1 Pro Preview measured
APEX-Agents35.1%56.2%Grok 4.5
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%23.4%Grok 4.5
Vending-Bench 2$911$3,887Grok 4.5
LMArena SearchNot measured1216Only Grok 4.5 measured
Neither model has a result on the other 12 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index140
Reasoning benchmarks for Gemini 3.1 Pro Preview and Grok 4.5
BenchmarkGemini 3.1 Pro PreviewGrok 4.5Leader
GPQA Diamond95.5%92.9%Gemini 3.1 Pro Preview
LiveBench reasoningNot measured87.2%Only Grok 4.5 measured
MysteryMechanism (Vals AI)20.7%Not measuredOnly Gemini 3.1 Pro Preview measured
MMMU Pro (Vals AI)88.2%61.8%Gemini 3.1 Pro Preview
GPQA Diamond (Artificial Analysis run)94.1%93.1%Gemini 3.1 Pro Preview
Humanity's Last Exam (Artificial Analysis run)47.0%42.7%Gemini 3.1 Pro Preview
GPQA Diamond (Epoch AI run)94.4%93.4%Gemini 3.1 Pro Preview
ARC-AGI98.0%87.2%Gemini 3.1 Pro Preview
ARC-AGI-277.1%52.6%Gemini 3.1 Pro Preview
SimpleBench79.6%70.0%Gemini 3.1 Pro Preview
Chess puzzles51.0%35.0%Gemini 3.1 Pro Preview
Mystery game puzzles34.0%Not measuredOnly Gemini 3.1 Pro Preview measured
EBR-bench14.3%Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Text: hard prompts14851462Gemini 3.1 Pro Preview
LMArena Text: expert14831465Gemini 3.1 Pro Preview
LMArena Text: hard prompts in English14801464Gemini 3.1 Pro Preview
LMArena Vision: diagrams13111304Gemini 3.1 Pro Preview
LMArena Vision: homework13161295Gemini 3.1 Pro Preview
Kagi LLM BenchmarkNot measured83.5%Only Grok 4.5 measured
Neither model has a result on the other 3 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index33
Math benchmarks for Gemini 3.1 Pro Preview and Grok 4.5
BenchmarkGemini 3.1 Pro PreviewGrok 4.5Leader
AIME98.1%Not measuredOnly Gemini 3.1 Pro Preview measured
OTIS Mock AIME95.6%97.8%Grok 4.5
FrontierMath, tiers 1 to 359.6%57.2%Gemini 3.1 Pro Preview
FrontierMath, tier 426.8%24.4%Gemini 3.1 Pro Preview
ProofBench26.0%31.0%Grok 4.5
LMArena Text: math14861460Gemini 3.1 Pro Preview
LMArena Text: mathematical work14781482Grok 4.5
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index111
Knowledge benchmarks for Gemini 3.1 Pro Preview and Grok 4.5
BenchmarkGemini 3.1 Pro PreviewGrok 4.5Leader
MMLU Pro91.0%89.2%Gemini 3.1 Pro Preview
LegalBench (Vals AI)87.4%86.0%Gemini 3.1 Pro Preview
CaseLaw (Vals AI)64.8%Not measuredOnly Gemini 3.1 Pro Preview measured
CorpFin (Vals AI)64.5%67.4%Grok 4.5
TaxEval (Vals AI)72.9%71.7%Gemini 3.1 Pro Preview
MortgageTax (Vals AI)69.4%61.8%Gemini 3.1 Pro Preview
MedQA (Vals AI)96.4%Not measuredOnly Gemini 3.1 Pro Preview measured
MedCode (Vals AI)59.1%43.3%Gemini 3.1 Pro Preview
SimpleQA Verified73.5%48.3%Gemini 3.1 Pro Preview
LMArena Text: science14971464Gemini 3.1 Pro Preview
LMArena Text: medicine and healthcare14861440Gemini 3.1 Pro Preview
LMArena Text: legal and government14871463Gemini 3.1 Pro Preview
LMArena Text: business and finance14591441Gemini 3.1 Pro Preview
FACTS Benchmark Suite67.4%50.2%Gemini 3.1 Pro Preview
Neither model has a result on the other 4 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index26
Web design benchmarks for Gemini 3.1 Pro Preview and Grok 4.5
BenchmarkGemini 3.1 Pro PreviewGrok 4.5Leader
Design Arena: websites12331281Grok 4.5
Design Arena: UI components12241280Grok 4.5
Design Arena: game dev12021264Grok 4.5
Design Arena: data viz12091266Grok 4.5
Design Arena: 3D12341257Grok 4.5
Design Arena: all code categories12311275Grok 4.5
Design Arena: SVG12851215Gemini 3.1 Pro Preview
Design Arena: ASCII art12701256Gemini 3.1 Pro Preview
LiveBench designNot measured78.1%Only Grok 4.5 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index283
General benchmarks for Gemini 3.1 Pro Preview and Grok 4.5
BenchmarkGemini 3.1 Pro PreviewGrok 4.5Leader
LiveBench data analysisNot measured73.0%Only Grok 4.5 measured
Public Benefits Bench (Vals AI)53.8%Not measuredOnly Gemini 3.1 Pro Preview measured
SAGE (Vals AI)48.7%35.0%Gemini 3.1 Pro Preview
MedScribe (Vals AI)76.1%86.9%Grok 4.5
Vals Multimodal Index56.1%63.4%Grok 4.5
IFBench77.1%Not measuredOnly Gemini 3.1 Pro Preview measured
Long context reasoning (AA-LCR)82.0%79.3%Gemini 3.1 Pro Preview
DTBench97.1%96.5%Gemini 3.1 Pro Preview
LMCA53.8%45.2%Gemini 3.1 Pro Preview
CL-bench20.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Surface Evolver BenchNot measured74.4%Only Grok 4.5 measured
Furniture assembly26.7%22.5%Gemini 3.1 Pro Preview
ExploitBench26.1%Not measuredOnly Gemini 3.1 Pro Preview measured
CL-bench Life16.9%Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Text14801448Gemini 3.1 Pro Preview
LMArena Text: instruction following14661445Gemini 3.1 Pro Preview
LMArena Text: creative writing14821442Gemini 3.1 Pro Preview
LMArena Vision12961287Gemini 3.1 Pro Preview
LMArena Text: English14781453Gemini 3.1 Pro Preview
LMArena Text: non-English14761440Gemini 3.1 Pro Preview
LMArena Text: Chinese15271495Gemini 3.1 Pro Preview
LMArena Text: German14901448Gemini 3.1 Pro Preview
LMArena Text: Japanese14911430Gemini 3.1 Pro Preview
LMArena Text: Korean14551406Gemini 3.1 Pro Preview
LMArena Text: French14871457Gemini 3.1 Pro Preview
LMArena Text: Spanish14811451Gemini 3.1 Pro Preview
LMArena Text: Russian14971449Gemini 3.1 Pro Preview
LMArena Text: Polish14981432Gemini 3.1 Pro Preview
LMArena Text: multi-turn14871456Gemini 3.1 Pro Preview
LMArena Text: longer queries14821462Gemini 3.1 Pro Preview
LMArena Text: writing and language14811445Gemini 3.1 Pro Preview
LMArena Text: entertainment and media14651434Gemini 3.1 Pro Preview
LMArena Vision: English12871285Gemini 3.1 Pro Preview
LMArena Vision: Chinese13641345Gemini 3.1 Pro Preview
LMArena Vision: reading text13041293Gemini 3.1 Pro Preview
LMArena Vision: humor13221276Gemini 3.1 Pro Preview
LMArena Vision: captioning1345Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: recognizing things1330Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: creative writing13241293Gemini 3.1 Pro Preview
LMArena Document14441452Grok 4.5
Neither model has a result on the other 6 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 Grok 4.5
BenchmarkGemini 3.1 Pro PreviewGrok 4.5Leader
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
Grok 4.5$0.0050Fits in one request

Grok 4.5 costs less

Repository review

50K input + 3K output tokens

Gemini 3.1 Pro Preview$0.136Fits in one request
Grok 4.5$0.118Fits in one request

Grok 4.5 costs less

Agent loop

200K input + 10K output tokens

Gemini 3.1 Pro Preview$0.520Fits in one request
Grok 4.5$0.460Fits in one request

Grok 4.5 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 Grok 4.5
SpecificationGoogle Gemini 3.1 Pro PreviewSpaceXAI Grok 4.5
MakerGooglexAI
WeightsNo public weights listedNo public weights listed
ReleasedFebruary 19, 2026July 8, 2026
Context window1.05M500K
Input $/Mtok$2.00$2.00
Output $/Mtok$12.00$6.00
Coding index32.358.6
Independent measurements behind it46
Cost per solved task$0.99$0.62
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemini 3.1 Pro Preview better than Grok 4.5 for coding?

Pick Grok 4.5 for coding: it scores 58.6 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 500K tokens) and work measured by LiveCodeBench (Vals AI) or IOI (Vals AI), where it leads.

Which is cheaper, Gemini 3.1 Pro Preview or Grok 4.5?

Gemini 3.1 Pro Preview costs $2.00 per million input tokens and $12.00 per million output tokens; Grok 4.5 costs $2.00 and $6.00. Per solved SWE-bench Verified task, Gemini 3.1 Pro Preview costs $0.99 and Grok 4.5 $0.62.

Which has the bigger context window, Gemini 3.1 Pro Preview or Grok 4.5?

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

How many benchmarks is the Gemini 3.1 Pro Preview vs Grok 4.5 comparison based on?

108 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 Grok 4.5's on 6. 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-grok-4-5" title="Gemini 3.1 Pro Preview vs Grok 4.5, 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-grok-4-5">LLMBenchmark.ai, Gemini 3.1 Pro Preview vs Grok 4.5</a></p>