Gemini 3.1 Pro Preview vs GPT-4o
Updated October 21, 2026. 16 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Pick GPT-4o for coding: it scores 38.8 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 128K tokens, or when what matters is Terminal-Bench Hard (Artificial Analysis run) or τ²-Bench Telecom, where it leads.
- Shared results
- 16
- Gemini 3.1 Pro Preview only
- 115
- GPT-4o only
- 10
- Like-for-like categories
- 5 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.
Coding
Vibe Coding Index, four public coding benchmarks
GPT-4o
GPT-4o scores 38.8 against 35.3.
One benchmark behind each score
Intelligence
AA Intelligence Index
No call
Only Gemini 3.1 Pro Preview has a AA Intelligence Index result, 29.7.
Directional only
Agentic work
AA Agentic Index
No call
Only Gemini 3.1 Pro Preview has a AA Agentic Index result, 8.2.
Directional only
Reasoning
GPQA Diamond
No call
Only Gemini 3.1 Pro Preview has a GPQA Diamond result, 95.5%.
Directional only
Math
AIME
No call
Only Gemini 3.1 Pro Preview has a AIME result, 98.1%.
Directional only
Knowledge
MMLU Pro
No call
Only Gemini 3.1 Pro Preview has a MMLU Pro result, 91.0%.
Directional only
Web design
Design Arena: websites
Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview leads, 1234 against 831.
Same board, both measured
Long documents
Listed context window
Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview takes 1.05M tokens against 128K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GPT-4o
Gemini 3.1 Pro Preview $0.0080, GPT-4o $0.0075 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only Gemini 3.1 Pro Preview has the number, $0.99.
Directional only
At a glance
- Coding index
- Gemini 3.1 Pro Preview 35.3 from 1 benchmark, GPT-4o 38.8 from 1 benchmark.
- Widest category
- Agentic work, 70.5 points apart on average over 1 shared benchmark.
- Widest single gap
- ARC-AGI: Gemini 3.1 Pro Preview 98.0% against GPT-4o 4.5%, 93.5 points apart on a 0 to 100 scale.
- Output price
- Gemini 3.1 Pro Preview $12.00 against GPT-4o $10.00 per million output tokens, 1.2x apart.
- Context window
- Gemini 3.1 Pro Preview takes 1.05M tokens, GPT-4o 128K.
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.
| Category | Gemini 3.1 Pro Preview | Bars | GPT-4o | Ties |
|---|---|---|---|---|
| Coding | 1 | 0 | ||
| Agentic work | 1 | 0 | ||
| Reasoning | 4 | 0 | ||
| Web design | 6 | 0 | ||
| General | 4 | 0 | ||
| All shared boards | 16 | 0 |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index10
| Benchmark | Gemini 3.1 Pro Preview | GPT-4o | Leader |
|---|---|---|---|
| SWE-bench Verified | Not measured | 38.8% | Only GPT-4o measured |
| SWE-bench Lite | Not measured | 38.0% | Only GPT-4o measured |
| SWE-bench (full test set) | Not measured | 18.8% | Only GPT-4o measured |
| SWE-bench Multimodal | Not measured | 30.4% | Only GPT-4o measured |
| LMArena WebDev | 1447 | Not measured | Only Gemini 3.1 Pro Preview measured |
| AA Coding Index | 68.8 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LiveCodeBench (Vals AI) | 88.5% | Not measured | Only Gemini 3.1 Pro Preview measured |
| SWE-bench Verified (Vals AI) | 78.8% | Not measured | Only Gemini 3.1 Pro Preview measured |
| Terminal-Bench 4 (Vals AI) | 2.5% | Not measured | Only Gemini 3.1 Pro Preview measured |
| Vibe Code Bench (Vals AI) | 32.0% | Not measured | Only Gemini 3.1 Pro Preview measured |
| Code migration (Vals AI) | 17.3% | Not measured | Only Gemini 3.1 Pro Preview measured |
| ProgramBench (Vals AI) | 0.0% | Not measured | Only Gemini 3.1 Pro Preview measured |
| IOI (Vals AI) | 51.8% | Not measured | Only Gemini 3.1 Pro Preview measured |
| Terminal-Bench 2.1 (Vals AI) | 70.8% | Not measured | Only Gemini 3.1 Pro Preview measured |
| Vibe Code Bench 1-100 (Vals AI) | 6.7% | Not measured | Only Gemini 3.1 Pro Preview measured |
| LiveCodeBench (Artificial Analysis run) | Not measured | 30.9% | Only GPT-4o measured |
| SciCode | 58.7% | Not measured | Only Gemini 3.1 Pro Preview measured |
| Terminal-Bench Hard (Artificial Analysis run) | 53.8% | 8.3% | Gemini 3.1 Pro Preview |
| Terminal-Bench | 80.2% | Not measured | Only Gemini 3.1 Pro Preview measured |
| GSO-Bench | 22.6% | Not measured | Only Gemini 3.1 Pro Preview measured |
| WeirdML | 72.1% | Not measured | Only Gemini 3.1 Pro Preview measured |
| MirrorCode | 8.9% | Not measured | Only Gemini 3.1 Pro Preview measured |
| ALE-Bench | 1160.6 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: coding | 1484 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: software and IT | 1487 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena WebDev: React | 1438 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena WebDev: HTML | 1490 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena WebDev: from an image | 1481 | Not measured | Only Gemini 3.1 Pro Preview measured |
| Neither model has a result on the other 10 boards here | |||
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
| Benchmark | Gemini 3.1 Pro Preview | GPT-4o | Leader |
|---|---|---|---|
| AA Intelligence Index | 29.7 | Not measured | Only Gemini 3.1 Pro Preview measured |
| Neither model has a result on the other 1 board here | |||
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Gemini 3.1 Pro Preview | GPT-4o | Leader |
|---|---|---|---|
| AA Agentic Index | 8.2 | Not measured | Only Gemini 3.1 Pro Preview measured |
| Design Arena: agents building web apps | 1125 | Not measured | Only Gemini 3.1 Pro Preview measured |
| Design Arena: agents building full-stack apps | 1068 | Not measured | Only Gemini 3.1 Pro Preview measured |
| Design Arena: agents building mobile apps | 1094 | Not measured | Only Gemini 3.1 Pro Preview measured |
| Design Arena: agents building Android apps | 1055 | Not measured | Only Gemini 3.1 Pro Preview measured |
| Design Arena: agents building Godot games | 1236 | Not measured | Only Gemini 3.1 Pro Preview measured |
| Design Arena: agents building games | 1114 | Not measured | Only Gemini 3.1 Pro Preview measured |
| Design Arena: HTML slides | 1153 | Not measured | Only Gemini 3.1 Pro Preview measured |
| Design Arena: PowerPoint slides | 1064 | Not measured | Only Gemini 3.1 Pro Preview measured |
| SREBench (Vals AI) | 0.0% | Not measured | Only Gemini 3.1 Pro Preview measured |
| Finance Agent (Vals AI) | 43.0% | Not measured | Only Gemini 3.1 Pro Preview measured |
| Tax Agent Bench (Vals AI) | 9.3% | Not measured | Only Gemini 3.1 Pro Preview measured |
| Legal Research Bench (Vals AI) | 20.7% | Not measured | Only Gemini 3.1 Pro Preview measured |
| Excel Modeling Benchmark (Vals AI) | 52.6% | Not measured | Only Gemini 3.1 Pro Preview measured |
| BioMysteryBench (Vals AI) | 60.0% | Not measured | Only Gemini 3.1 Pro Preview measured |
| Terminal-Bench-Science (Vals AI) | 1.4% | Not measured | Only Gemini 3.1 Pro Preview measured |
| Vals Science Index | 27.4% | Not measured | Only Gemini 3.1 Pro Preview measured |
| τ²-Bench Telecom | 95.6% | 25.1% | Gemini 3.1 Pro Preview |
| APEX-Agents | 35.1% | Not measured | Only Gemini 3.1 Pro Preview measured |
| METR time horizons | 77.0% | Not measured | Only Gemini 3.1 Pro Preview measured |
| GDPval | Not measured | 9.9% | Only GPT-4o measured |
| BALROG | 57.0% | Not measured | Only Gemini 3.1 Pro Preview measured |
| DeepResearch Bench | 47.8% | Not measured | Only Gemini 3.1 Pro Preview measured |
| PostTrainBench | 22.0% | Not measured | Only Gemini 3.1 Pro Preview measured |
| Vending-Bench 2 | $911 | Not measured | Only Gemini 3.1 Pro Preview measured |
| Neither model has a result on the other 14 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index40
| Benchmark | Gemini 3.1 Pro Preview | GPT-4o | Leader |
|---|---|---|---|
| GPQA Diamond | 95.5% | Not measured | Only Gemini 3.1 Pro Preview measured |
| MysteryMechanism (Vals AI) | 20.7% | Not measured | Only Gemini 3.1 Pro Preview measured |
| MMMU Pro (Vals AI) | 88.2% | Not measured | Only Gemini 3.1 Pro Preview measured |
| GPQA Diamond (Artificial Analysis run) | 94.1% | 54.3% | Gemini 3.1 Pro Preview |
| Humanity's Last Exam (Artificial Analysis run) | 47.0% | 2.4% | Gemini 3.1 Pro Preview |
| GPQA Diamond (Epoch AI run) | 94.4% | Not measured | Only Gemini 3.1 Pro Preview measured |
| ARC-AGI | 98.0% | 4.5% | Gemini 3.1 Pro Preview |
| ARC-AGI-2 | 77.1% | 0.0% | Gemini 3.1 Pro Preview |
| SimpleBench | 79.6% | Not measured | Only Gemini 3.1 Pro Preview measured |
| Chess puzzles | 51.0% | Not measured | Only Gemini 3.1 Pro Preview measured |
| Mystery game puzzles | 34.0% | Not measured | Only Gemini 3.1 Pro Preview measured |
| EBR-bench | 14.3% | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: hard prompts | 1485 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: expert | 1483 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: hard prompts in English | 1480 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Vision: diagrams | 1311 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Vision: homework | 1316 | Not measured | Only Gemini 3.1 Pro Preview measured |
| Neither model has a result on the other 4 boards here | |||
MathDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
| Benchmark | Gemini 3.1 Pro Preview | GPT-4o | Leader |
|---|---|---|---|
| AIME | 98.1% | Not measured | Only Gemini 3.1 Pro Preview measured |
| AA Math Index | Not measured | 6.0 | Only GPT-4o measured |
| AIME 2025 (Artificial Analysis run) | Not measured | 6.0% | Only GPT-4o measured |
| OTIS Mock AIME | 95.6% | Not measured | Only Gemini 3.1 Pro Preview measured |
| FrontierMath, tiers 1 to 3 | 59.6% | Not measured | Only Gemini 3.1 Pro Preview measured |
| FrontierMath, tier 4 | 26.8% | Not measured | Only Gemini 3.1 Pro Preview measured |
| ProofBench | 26.0% | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: math | 1486 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: mathematical work | 1478 | Not measured | Only Gemini 3.1 Pro Preview measured |
| Neither model has a result on the other 4 boards here | |||
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index15 boards, none shared
| Benchmark | Gemini 3.1 Pro Preview | GPT-4o | Leader |
|---|---|---|---|
| MMLU Pro | 91.0% | Not measured | Only Gemini 3.1 Pro Preview measured |
| LegalBench (Vals AI) | 87.4% | Not measured | Only Gemini 3.1 Pro Preview measured |
| CaseLaw (Vals AI) | 64.8% | Not measured | Only Gemini 3.1 Pro Preview measured |
| CorpFin (Vals AI) | 64.5% | Not measured | Only Gemini 3.1 Pro Preview measured |
| TaxEval (Vals AI) | 72.9% | Not measured | Only Gemini 3.1 Pro Preview measured |
| MortgageTax (Vals AI) | 69.4% | Not measured | Only Gemini 3.1 Pro Preview measured |
| MedQA (Vals AI) | 96.4% | Not measured | Only Gemini 3.1 Pro Preview measured |
| MedCode (Vals AI) | 59.1% | Not measured | Only Gemini 3.1 Pro Preview measured |
| MMLU Pro (Artificial Analysis run) | Not measured | 74.8% | Only GPT-4o measured |
| SimpleQA Verified | 73.5% | Not measured | Only Gemini 3.1 Pro Preview measured |
| MMLU | Not measured | 88.1% | Only GPT-4o measured |
| LMArena Text: science | 1497 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: medicine and healthcare | 1486 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: legal and government | 1487 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: business and finance | 1459 | Not measured | Only Gemini 3.1 Pro Preview measured |
| Neither model has a result on the other 2 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index60
| Benchmark | Gemini 3.1 Pro Preview | GPT-4o | Leader |
|---|---|---|---|
| Design Arena: websites | 1234 | 831 | Gemini 3.1 Pro Preview |
| Design Arena: UI components | 1226 | 885 | Gemini 3.1 Pro Preview |
| Design Arena: game dev | 1203 | 906 | Gemini 3.1 Pro Preview |
| Design Arena: data viz | 1209 | 858 | Gemini 3.1 Pro Preview |
| Design Arena: 3D | 1234 | 869 | Gemini 3.1 Pro Preview |
| Design Arena: all code categories | 1231 | 861 | Gemini 3.1 Pro Preview |
| Design Arena: SVG | 1285 | Not measured | Only Gemini 3.1 Pro Preview measured |
| Design Arena: ASCII art | 1270 | Not measured | Only 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 index40
| Benchmark | Gemini 3.1 Pro Preview | GPT-4o | Leader |
|---|---|---|---|
| Public Benefits Bench (Vals AI) | 53.8% | Not measured | Only Gemini 3.1 Pro Preview measured |
| SAGE (Vals AI) | 48.7% | Not measured | Only Gemini 3.1 Pro Preview measured |
| MedScribe (Vals AI) | 76.1% | Not measured | Only Gemini 3.1 Pro Preview measured |
| Vals Multimodal Index | 56.1% | Not measured | Only Gemini 3.1 Pro Preview measured |
| IFBench | 77.1% | 34.3% | Gemini 3.1 Pro Preview |
| Long context reasoning (AA-LCR) | 82.0% | 49.3% | Gemini 3.1 Pro Preview |
| DTBench | 97.1% | 64.5% | Gemini 3.1 Pro Preview |
| LMCA | 53.8% | 16.6% | Gemini 3.1 Pro Preview |
| CL-bench | 20.8% | Not measured | Only Gemini 3.1 Pro Preview measured |
| Furniture assembly | 26.7% | Not measured | Only Gemini 3.1 Pro Preview measured |
| ExploitBench | 26.1% | Not measured | Only Gemini 3.1 Pro Preview measured |
| CL-bench Life | 16.9% | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text | 1480 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: instruction following | 1466 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: creative writing | 1482 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Vision | 1296 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: English | 1478 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: non-English | 1476 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: Chinese | 1527 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: German | 1490 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: Japanese | 1491 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: Korean | 1455 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: French | 1487 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: Spanish | 1481 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: Russian | 1497 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: Polish | 1498 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: multi-turn | 1487 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: longer queries | 1482 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: writing and language | 1481 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: entertainment and media | 1465 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Vision: English | 1287 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Vision: Chinese | 1364 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Vision: reading text | 1304 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Vision: humor | 1322 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Vision: captioning | 1345 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Vision: recognizing things | 1330 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Vision: creative writing | 1324 | Not measured | Only Gemini 3.1 Pro Preview measured |
| LMArena Document | 1444 | Not measured | Only 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
| Benchmark | Gemini 3.1 Pro Preview | GPT-4o | Leader |
|---|---|---|---|
| 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
GPT-4o costs less
Repository review
50K input + 3K output tokens
Gemini 3.1 Pro Preview costs less
Agent loop
200K input + 10K output tokens
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.
| Specification | Google Gemini 3.1 Pro Preview | OpenAI GPT-4o |
|---|---|---|
| Maker | OpenAI | |
| Weights | No public weights listed | No public weights listed |
| Released | February 19, 2026 | May 13, 2024 |
| Context window | 1.05M | 128K |
| Input $/Mtok | $2.00 | $2.50 |
| Output $/Mtok | $12.00 | $10.00 |
| Coding index | 35.3 | 38.8 |
| Independent measurements behind it | 1 | 1 |
| Cost per solved task | $0.99 | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemini 3.1 Pro Preview better than GPT-4o for coding?
Pick GPT-4o for coding: it scores 38.8 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 128K tokens, or when what matters is Terminal-Bench Hard (Artificial Analysis run) or τ²-Bench Telecom, where it leads.
Which is cheaper, Gemini 3.1 Pro Preview or GPT-4o?
Gemini 3.1 Pro Preview costs $2.00 per million input tokens and $12.00 per million output tokens; GPT-4o costs $2.50 and $10.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 GPT-4o?
Gemini 3.1 Pro Preview, with 1.05M tokens against 128K.
How many benchmarks is the Gemini 3.1 Pro Preview vs GPT-4o comparison based on?
16 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 GPT-4o's on 1. Where only one model has a result, the page says so instead of naming a winner.