Compare / head-to-head

Gemini 3.1 Pro PreviewvsGrok 4

Gemini 3.1 Pro Preview leads 10 of 10 shared benchmarks. Gemini 3.1 Pro Preview has the larger context window (1.0M tokens).

Benchmarks from cited public sources; pricing from official pages; status from official provider feeds.

Shared benchmarks
10 – 0
Gemini 3.1 Pro Preview leads
Cheaper per token
—
list price, input + output
Larger context
Gemini 3.1 Pro Preview
1.0M tokens
Providers
2 providers
Google · xAI
Gemini 3.1 Pro Preview
Google · released 2026-02-19
textvisionaudio
Context
1.0M
Max out
66K
Input /1M
$2 ↗
Output /1M
$12 ↗
Cached /1M
$0.2
Scores
43 · 12 core
Grok 4
xAI · released 2025-07-09
textvision
Context
256K
Max out
—
Input /1M
—
Output /1M
—
Cached /1M
—
Scores
17 · 8 core
Quality

Benchmark matrix

BenchmarkGemini 3.1 Pro PreviewGrok 4ΔEdge
Reported by both · 10
GPQA Diamond94.3% ↗87% ↗epoch run+7.3 ptGemini 3.1 Pro Preview
LMArena Elo1480.1 ↗1410.8 ↗+69.3Gemini 3.1 Pro Preview
ARC-AGI-277.1% ↗15.9% ↗+61.2 ptGemini 3.1 Pro Preview
BALROG (BALROG)57% ↗43.6% ↗+13.4 ptGemini 3.1 Pro Preview
Chess Puzzles (Epoch AI run)55% ↗epoch run28% ↗epoch run+27 ptGemini 3.1 Pro Preview
LMArena Vision (LMArena)1279.3 ↗1184.2 ↗+95.1Gemini 3.1 Pro Preview
OTIS Mock AIME 2024-2025 (Epoch AI run)95.6% ↗epoch run84% ↗epoch run+11.6 ptGemini 3.1 Pro Preview
SAGE (Vals AI)48.7% ↗25.1% ↗+23.6 ptGemini 3.1 Pro Preview
SimpleBench (SimpleBench)79.6% ↗60.5% ↗+19.1 ptGemini 3.1 Pro Preview
WeirdML (Håvard Tveit Ihle)72.1% ↗45.7% ↗+26.4 ptGemini 3.1 Pro Preview
Only Gemini 3.1 Pro Preview reports · 26
AIME 202698.3% ↗matharena ⚠not reported——
APEX-Agents (Mercor)35.3% ↗not reported——
DeepSWE v1.1 (Datacurve)11.7% ↗not reported——
EBR-bench (Epoch AI run)14.3% ↗epoch runnot reported——
FrontierMath Tier 4 v2 (Epoch AI run)26.8% ↗epoch runnot reported——
FrontierMath Tiers 1-3 v2 (Epoch AI run)59.6% ↗epoch runnot reported——
Furniture Assembly (Epoch AI run)26.7% ↗epoch runnot reported——
GSO Opt@1 (GSO)21.6% ↗not reported——
LiveBench Agentic Coding (LiveBench)44.1% ↗not reported——
LiveBench Coding (LiveBench)76.5% ↗not reported——
LiveBench Data Analysis (LiveBench)78.5% ↗not reported——
LiveBench Instruction Following (LiveBench)79.1% ↗not reported——
LiveBench Language (LiveBench)85.4% ↗not reported——
LiveBench Mathematics (LiveBench)91% ↗not reported——
LiveBench Reasoning (LiveBench)84% ↗not reported——
LMArena Agent (LMArena)-0.0771 ↗not reported——
LMArena WebDev (LMArena)1446.2 ↗not reported——
MirrorCode (Epoch AI run)8.9% ↗epoch runnot reported——
Mystery Game Puzzles (Epoch AI run)34% ↗epoch runnot reported——
SimpleQA Verified73.5% ↗epoch runnot reported——
SWE-Bench Pro54.2% ↗not reported——
SWE-bench Verified (Epoch AI run)75.6% ↗epoch runnot reported——
tau2-bench Banking Knowledge (Sierra)26% ↗not reported——
Terminal-Bench 4.0 (Vals AI)2.5% ↗not reported——
Toolathlon-Verified (HKUST)61.1% ↗not reported——
Vending-Bench 2 (Andon Labs)3774.25 ↗not reported——
Only Grok 4 reports · 7
AIME 2025not reported91.7% ↗——
Humanity's Last Exam (no tools)not reported25.4% ↗——
GPQA (no tools)not reported87.5% ↗——
HMMT 2025 (no tools)not reported90% ↗——
Humanity's Last Exam (with tools)not reported38.6% ↗——
LiveCodeBench (Jan - May)not reported79% ↗——
USAMO 2025 (no tools)not reported37.5% ↗——
Scores tagged "epoch" or "matharena" are independent runs, used only where the lab has not published its own; ⚠ marks rows MathArena flags as released after the competition. Higher is better on every row. Δ is Gemini 3.1 Pro Preview minus Grok 4 in the benchmark's own unit. "Not reported" means the lab has not published that figure; it is not a zero. ↗ opens the source.
Specs & pricing

Side by side

SpecGemini 3.1 Pro PreviewGrok 4Edge
Context window1.0M tokens256K tokensGemini 3.1 Pro Preview
Max output66K tokens——
Input price / 1M$2 ↗——
Output price / 1M$12 ↗——
Cached input / 1M$0.2 ↗——
Input + output / 1M
Lower is cheaper. List prices; batch, tool and regional fees excluded.
$14——
Modalitiestext · vision · audiotext · visionGemini 3.1 Pro Preview
Released2026-02-192025-07-09—
Cited benchmark scores4317—
Reliability

Provider status

All providers →
More matchups

Gemini 3.1 Pro Preview vs …

Built by Respan
Which one wins on your data?

Public benchmarks are a starting point. Run Gemini 3.1 Pro Preview and Grok 4 on your own prompts with Respan evals, or route to either through one gateway key with automatic failover.