LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

Gemini 3.1 Pro Preview vs Grok 4.7

Updated October 21, 2026. 84 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

Gemini 3.1 Pro PreviewGoogle
Coding
35.3
Overall
29.7
Output $/M
$12.00
52
Grok 4.7xAI
Coding
75.0
Overall
46.4
Output $/M
$6.00
31
vs boards won of 84 shared, 1 tied

Decision reading

Pick Grok 4.7 for coding: it scores 75.0 on the Vibe Coding Index against 35.3 for Gemini 3.1 Pro Preview.

Pick Gemini 3.1 Pro Preview when the context window is larger, 1.05M against 500K tokens, or when what matters is SciCode or LMArena Text: coding, where it leads.

Shared results
84
Gemini 3.1 Pro Preview only
47
Grok 4.7 only
15
Like-for-like categories
8 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

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 35.3 from 1 benchmark, Grok 4.7 75.0 from 2 benchmarks.
Widest category
Agentic work, 18.4 points apart on average over 10 shared benchmarks.
Widest single gap
Vending-Bench 2: Gemini 3.1 Pro Preview $911 against Grok 4.7 $10,537, 60.2 points apart on a 0 to 100 scale.
Output price
Gemini 3.1 Pro Preview $12.00 against Grok 4.7 $6.00 per million output tokens, 2.0x apart.
Context window
Gemini 3.1 Pro Preview takes 1.05M tokens, Grok 4.7 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.7Ties
Coding310
Intelligence01
Agentic work010
Reasoning111
Math411 tie
Knowledge70
Web design06
General272
All shared boards52311 tie
CodingLike-for-likeFour of these boards feed the Vibe Coding Index310
Coding benchmarks for Gemini 3.1 Pro Preview and Grok 4.7
BenchmarkGemini 3.1 Pro PreviewGrok 4.7Leader
LiveBench codingNot measured84.5%Only Grok 4.7 measured
LMArena WebDev14471637Grok 4.7
AA Coding Index68.8Not measuredOnly Gemini 3.1 Pro Preview measured
LiveCodeBench (Vals AI)88.5%Not measuredOnly Gemini 3.1 Pro Preview measured
SWE-bench Verified (Vals AI)78.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Terminal-Bench 4 (Vals AI)2.5%28.8%Grok 4.7
Vibe Code Bench (Vals AI)32.0%86.2%Grok 4.7
Code migration (Vals AI)17.3%44.8%Grok 4.7
ProgramBench (Vals AI)0.0%0.5%Grok 4.7
IOI (Vals AI)51.8%57.7%Grok 4.7
Terminal-Bench 2.1 (Vals AI)70.8%73.4%Grok 4.7
SWE-bench Multimodal (Vals AI)Not measured42.9%Only Grok 4.7 measured
Vibe Code Bench 1-100 (Vals AI)6.7%Not measuredOnly Gemini 3.1 Pro Preview measured
CyberBench (Vals AI)Not measured69.5%Only Grok 4.7 measured
SciCode58.7%57.8%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 measured47.6%Only Grok 4.7 measured
FrontierSWENot measured29.5%Only Grok 4.7 measured
GSO-Bench22.6%Not measuredOnly Gemini 3.1 Pro Preview measured
WeirdML72.1%Not measuredOnly Gemini 3.1 Pro Preview measured
MirrorCode8.9%Not measuredOnly Gemini 3.1 Pro Preview measured
ALE-Bench1160.6Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Text: coding14841432Gemini 3.1 Pro Preview
LMArena Text: software and IT14871421Gemini 3.1 Pro Preview
LMArena WebDev: React14381663Grok 4.7
LMArena WebDev: HTML14901627Grok 4.7
LMArena WebDev: from an image14811586Grok 4.7
Neither model has a result on the other 10 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.7
BenchmarkGemini 3.1 Pro PreviewGrok 4.7Leader
AA Intelligence Index29.746.4Grok 4.7
Epoch Capabilities IndexNot measured154.4Only Grok 4.7 measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index010
Agentic work benchmarks for Gemini 3.1 Pro Preview and Grok 4.7
BenchmarkGemini 3.1 Pro PreviewGrok 4.7Leader
AA Agentic Index8.2Not measuredOnly Gemini 3.1 Pro Preview measured
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 apps1055Not 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 slides1064Not measuredOnly Gemini 3.1 Pro Preview measured
LiveBench researchNot measured86.4%Only Grok 4.7 measured
LiveBench browserNot measured60.0%Only Grok 4.7 measured
LiveBench long agenticNot measured50.1%Only Grok 4.7 measured
SREBench (Vals AI)0.0%3.8%Grok 4.7
Finance Agent (Vals AI)43.0%52.3%Grok 4.7
Tax Agent Bench (Vals AI)9.3%34.2%Grok 4.7
Legal Research Bench (Vals AI)20.7%47.1%Grok 4.7
Harvey's Legal Agent Benchmark (Vals AI)Not measured18.3%Only Grok 4.7 measured
Excel Modeling Benchmark (Vals AI)52.6%67.0%Grok 4.7
BioMysteryBench (Vals AI)60.0%69.3%Grok 4.7
Terminal-Bench-Science (Vals AI)1.4%10.0%Grok 4.7
Vals Science Index27.4%34.8%Grok 4.7
Robo-bench (Vals AI)Not measured0.2%Only Grok 4.7 measured
τ²-Bench Telecom95.6%Not measuredOnly Gemini 3.1 Pro Preview measured
APEX-Agents35.1%54.6%Grok 4.7
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$911$10,537Grok 4.7
Neither model has a result on the other 10 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index111
Reasoning benchmarks for Gemini 3.1 Pro Preview and Grok 4.7
BenchmarkGemini 3.1 Pro PreviewGrok 4.7Leader
GPQA Diamond95.5%Not measuredOnly Gemini 3.1 Pro Preview measured
LiveBench reasoningNot measured82.7%Only Grok 4.7 measured
MysteryMechanism (Vals AI)20.7%25.2%Grok 4.7
MMMU Pro (Vals AI)88.2%Not measuredOnly Gemini 3.1 Pro Preview measured
GPQA Diamond (Artificial Analysis run)94.1%Not measuredOnly Gemini 3.1 Pro Preview measured
Humanity's Last Exam (Artificial Analysis run)47.0%43.1%Gemini 3.1 Pro Preview
GPQA Diamond (Epoch AI run)94.4%92.7%Gemini 3.1 Pro Preview
ARC-AGI98.0%90.2%Gemini 3.1 Pro Preview
ARC-AGI-277.1%61.4%Gemini 3.1 Pro Preview
SimpleBench79.6%Not measuredOnly Gemini 3.1 Pro Preview measured
Chess puzzles51.0%41.0%Gemini 3.1 Pro Preview
Mystery game puzzles34.0%29.0%Gemini 3.1 Pro Preview
EBR-bench14.3%Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Text: hard prompts14851415Gemini 3.1 Pro Preview
LMArena Text: expert14831439Gemini 3.1 Pro Preview
LMArena Text: hard prompts in English14801427Gemini 3.1 Pro Preview
LMArena Vision: diagrams13111254Gemini 3.1 Pro Preview
LMArena Vision: homework13161309Gemini 3.1 Pro Preview
Neither model has a result on the other 3 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index41
Math benchmarks for Gemini 3.1 Pro Preview and Grok 4.7
BenchmarkGemini 3.1 Pro PreviewGrok 4.7Leader
AIME98.1%Not measuredOnly Gemini 3.1 Pro Preview measured
OTIS Mock AIME95.6%98.1%Grok 4.7
FrontierMath, tiers 1 to 359.6%53.0%Gemini 3.1 Pro Preview
FrontierMath, tier 426.8%17.1%Gemini 3.1 Pro Preview
ProofBench26.0%26.0%Tie
LMArena Text: math14861414Gemini 3.1 Pro Preview
LMArena Text: mathematical work14781435Gemini 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 index70
Knowledge benchmarks for Gemini 3.1 Pro Preview and Grok 4.7
BenchmarkGemini 3.1 Pro PreviewGrok 4.7Leader
MMLU Pro91.0%Not measuredOnly Gemini 3.1 Pro Preview measured
LegalBench (Vals AI)87.4%84.4%Gemini 3.1 Pro Preview
CaseLaw (Vals AI)64.8%Not measuredOnly Gemini 3.1 Pro Preview measured
CorpFin (Vals AI)64.5%Not measuredOnly Gemini 3.1 Pro Preview measured
TaxEval (Vals AI)72.9%Not measuredOnly Gemini 3.1 Pro Preview measured
MortgageTax (Vals AI)69.4%Not measuredOnly Gemini 3.1 Pro Preview measured
MedQA (Vals AI)96.4%Not measuredOnly Gemini 3.1 Pro Preview measured
MedCode (Vals AI)59.1%49.5%Gemini 3.1 Pro Preview
SimpleQA Verified73.5%56.0%Gemini 3.1 Pro Preview
LMArena Text: science14971419Gemini 3.1 Pro Preview
LMArena Text: medicine and healthcare14861395Gemini 3.1 Pro Preview
LMArena Text: legal and government14871423Gemini 3.1 Pro Preview
LMArena Text: business and finance14591389Gemini 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 index06
Web design benchmarks for Gemini 3.1 Pro Preview and Grok 4.7
BenchmarkGemini 3.1 Pro PreviewGrok 4.7Leader
Design Arena: websites12341255Grok 4.7
Design Arena: UI components12261271Grok 4.7
Design Arena: game dev12031314Grok 4.7
Design Arena: data viz12091227Grok 4.7
Design Arena: 3D12341269Grok 4.7
Design Arena: all code categories12311271Grok 4.7
Design Arena: SVG1285Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: ASCII art1270Not measuredOnly Gemini 3.1 Pro Preview measured
LiveBench designNot measured78.0%Only Grok 4.7 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index272
General benchmarks for Gemini 3.1 Pro Preview and Grok 4.7
BenchmarkGemini 3.1 Pro PreviewGrok 4.7Leader
Vals IndexNot measured58.6%Only Grok 4.7 measured
LiveBench data analysisNot measured76.9%Only Grok 4.7 measured
Public Benefits Bench (Vals AI)53.8%65.6%Grok 4.7
SAGE (Vals AI)48.7%40.8%Gemini 3.1 Pro Preview
MedScribe (Vals AI)76.1%89.4%Grok 4.7
Vals Multimodal Index56.1%Not measuredOnly Gemini 3.1 Pro Preview measured
IFBench77.1%Not measuredOnly Gemini 3.1 Pro Preview measured
Long context reasoning (AA-LCR)82.0%80.0%Gemini 3.1 Pro Preview
DTBench97.1%96.0%Gemini 3.1 Pro Preview
LMCA53.8%49.4%Gemini 3.1 Pro Preview
CL-bench20.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Furniture assembly26.7%20.8%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 Text14801399Gemini 3.1 Pro Preview
LMArena Text: instruction following14661406Gemini 3.1 Pro Preview
LMArena Text: creative writing14821381Gemini 3.1 Pro Preview
LMArena Vision12961231Gemini 3.1 Pro Preview
LMArena Text: English14781411Gemini 3.1 Pro Preview
LMArena Text: non-English14761386Gemini 3.1 Pro Preview
LMArena Text: Chinese15271449Gemini 3.1 Pro Preview
LMArena Text: German14901366Gemini 3.1 Pro Preview
LMArena Text: Japanese14911359Gemini 3.1 Pro Preview
LMArena Text: Korean14551383Gemini 3.1 Pro Preview
LMArena Text: French14871431Gemini 3.1 Pro Preview
LMArena Text: Spanish14811406Gemini 3.1 Pro Preview
LMArena Text: Russian14971399Gemini 3.1 Pro Preview
LMArena Text: Polish14981420Gemini 3.1 Pro Preview
LMArena Text: multi-turn14871394Gemini 3.1 Pro Preview
LMArena Text: longer queries14821416Gemini 3.1 Pro Preview
LMArena Text: writing and language14811394Gemini 3.1 Pro Preview
LMArena Text: entertainment and media14651376Gemini 3.1 Pro Preview
LMArena Vision: English12871229Gemini 3.1 Pro Preview
LMArena Vision: Chinese13641250Gemini 3.1 Pro Preview
LMArena Vision: reading text13041241Gemini 3.1 Pro Preview
LMArena Vision: humor1322Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: captioning1345Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: recognizing things1330Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: creative writing13241217Gemini 3.1 Pro Preview
LMArena Document1444Not measuredOnly Gemini 3.1 Pro Preview measured
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.7
BenchmarkGemini 3.1 Pro PreviewGrok 4.7Leader
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.7$0.0050Fits in one request

Grok 4.7 costs less

Repository review

50K input + 3K output tokens

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

Grok 4.7 costs less

Agent loop

200K input + 10K output tokens

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

Grok 4.7 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.7
SpecificationGoogle Gemini 3.1 Pro PreviewSpaceXAI Grok 4.7
MakerGooglexAI
WeightsNo public weights listedNo public weights listed
ReleasedFebruary 19, 2026September 21, 2026
Context window1.05M500K
Input $/Mtok$2.00$2.00
Output $/Mtok$12.00$6.00
Coding index35.375.0
Independent measurements behind it12
Cost per solved task$0.99Not computable
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick Grok 4.7 for coding: it scores 75.0 on the Vibe Coding Index against 35.3 for Gemini 3.1 Pro Preview. Pick Gemini 3.1 Pro Preview when the context window is larger, 1.05M against 500K tokens, or when what matters is SciCode or LMArena Text: coding, where it leads.

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

Gemini 3.1 Pro Preview costs $2.00 per million input tokens and $12.00 per million output tokens; Grok 4.7 costs $2.00 and $6.00. Cost per solved task is known for Gemini 3.1 Pro Preview only.

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

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

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

84 benchmarks have a result for both models as of October 21, 2026. Gemini 3.1 Pro Preview's coding index rests on 1 independent benchmark and Grok 4.7's on 2. Where only one model has a result, the page says so instead of naming a winner.

Compare next