Claude Opus 4.8 vs Gemini 3.1 Pro Preview
Claude Opus 4.8 leads Gemini 3.1 Pro Preview on coding, 65.0 to 32.3 on the Vibe Coding Index, and Gemini 3.1 Pro Preview costs 2.1x less per output token ($12.00 vs $25.00 per million). Updated October 22, 2026; 113 benchmarks have a result for both.
Claude Opus 4.8 or Gemini 3.1 Pro Preview: which to pick
Pick Claude Opus 4.8 for coding: it scores 65.0 on the Vibe Coding Index against 32.3 for Gemini 3.1 Pro Preview.
Pick Gemini 3.1 Pro Preview for output tokens 2.1x cheaper ($12.00 vs $25.00 per million) and a lower cost per solved task ($0.99 against $2.17).
- Shared results
- 113
- Claude Opus 4.8 only
- 17
- Gemini 3.1 Pro Preview only
- 20
- 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.
Coding
Vibe Coding Index, six public coding benchmarks
Claude Opus 4.8
Claude Opus 4.8 scores 65.0 against 32.3.
6 and 4 benchmarks behind the scores
Intelligence
AA Intelligence Index
Claude Opus 4.8
Claude Opus 4.8 leads, 41.8 against 29.7.
Same board, both measured
Agentic work
AA Agentic Index
Claude Opus 4.8
Claude Opus 4.8 leads, 41.9 against 8.2.
Same board, both measured
Reasoning
GPQA Diamond
Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview leads, 95.5% against 92.4%.
Same board, both measured
Math
AIME
No call
Only Gemini 3.1 Pro Preview has a AIME result, 98.1%.
Directional only
Knowledge
MMLU Pro
Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview leads, 91.0% against 89.6%.
Same board, both measured
Web design
Design Arena: websites
Claude Opus 4.8
Claude Opus 4.8 leads, 1258 against 1233.
Same board, both measured
Long documents
Listed context window
Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview takes 1.05M tokens against 1M.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemini 3.1 Pro Preview
Claude Opus 4.8 $0.018, Gemini 3.1 Pro Preview $0.0080 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
Gemini 3.1 Pro Preview
Claude Opus 4.8 $2.17, Gemini 3.1 Pro Preview $0.99.
Published attempt cost and pass rate
At a glance
- Coding index
- Claude Opus 4.8 65.0 from 6 benchmarks, Gemini 3.1 Pro Preview 32.3 from 4 benchmarks.
- Widest category
- Math, 16.4 points apart on average over 6 shared benchmarks.
- Widest single gap
- Vibe Code Bench (Vals AI): Claude Opus 4.8 82.7% against Gemini 3.1 Pro Preview 32.0%, 50.7 points apart on a 0 to 100 scale.
- Output price
- Claude Opus 4.8 $25.00 against Gemini 3.1 Pro Preview $12.00 per million output tokens, 2.1x apart.
- Context window
- Claude Opus 4.8 takes 1M tokens, Gemini 3.1 Pro Preview 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.
| Category | Claude Opus 4.8 | Bars | Gemini 3.1 Pro Preview | Ties |
|---|---|---|---|---|
| Coding | 15 | 3 | ||
| Intelligence | 1 | 0 | ||
| Agentic work | 17 | 2 | ||
| Reasoning | 8 | 8 | ||
| Math | 6 | 0 | ||
| Knowledge | 3 | 9 | ||
| Web design | 6 | 2 | ||
| General | 10 | 23 | ||
| All shared boards | 66 | 47 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index153
| Benchmark | Claude Opus 4.8 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| LiveBench coding | 77.3% | Not measured | Only Claude Opus 4.8 measured |
| LMArena WebDev | 1556 | 1447 | Claude Opus 4.8 |
| AA Coding Index | 74.3 | 68.8 | Claude Opus 4.8 |
| LiveCodeBench (Vals AI) | 87.8% | 88.5% | Gemini 3.1 Pro Preview |
| SWE-bench Verified (Vals AI) | 88.6% | 78.8% | Claude Opus 4.8 |
| Terminal-Bench 4 (Vals AI) | 23.2% | 2.5% | Claude Opus 4.8 |
| Vibe Code Bench (Vals AI) | 82.7% | 32.0% | Claude Opus 4.8 |
| Code migration (Vals AI) | 47.3% | 17.3% | Claude Opus 4.8 |
| ProgramBench (Vals AI) | 1.0% | 0.0% | Claude Opus 4.8 |
| IOI (Vals AI) | Not measured | 51.8% | Only Gemini 3.1 Pro Preview measured |
| Terminal-Bench 2.1 (Vals AI) | 71.9% | 70.8% | Claude Opus 4.8 |
| Vibe Code Bench 1-100 (Vals AI) | Not measured | 6.7% | Only Gemini 3.1 Pro Preview measured |
| SkillsBench (Vals AI) | 59.2% | Not measured | Only Claude Opus 4.8 measured |
| SciCode | 54.4% | 58.7% | Gemini 3.1 Pro Preview |
| Terminal-Bench Hard (Artificial Analysis run) | 58.3% | 53.8% | Claude Opus 4.8 |
| Terminal-Bench | Not measured | 80.2% | Only Gemini 3.1 Pro Preview measured |
| FrontierCode | 46.5% | Not measured | Only Claude Opus 4.8 measured |
| GSO-Bench | 47.1% | 22.6% | Claude Opus 4.8 |
| WeirdML | 82.9% | 72.1% | Claude Opus 4.8 |
| MirrorCode | Not measured | 8.9% | Only Gemini 3.1 Pro Preview measured |
| ALE-Bench | Not measured | 1160.6 | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: coding | 1490 | 1484 | Claude Opus 4.8 |
| LMArena Text: software and IT | 1488 | 1487 | Claude Opus 4.8 |
| LMArena WebDev: React | 1557 | 1438 | Claude Opus 4.8 |
| LMArena WebDev: HTML | 1543 | 1490 | Claude Opus 4.8 |
| LMArena WebDev: from an image | Not measured | 1481 | Only Gemini 3.1 Pro Preview measured |
| SciCode | 12.3% | 14.3% | Gemini 3.1 Pro Preview |
| Neither model has a result on the other 12 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Claude Opus 4.8 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| AA Intelligence Index | 41.8 | 29.7 | Claude Opus 4.8 |
| Epoch Capabilities Index | 159.0 | Not measured | Only Claude Opus 4.8 measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index172
| Benchmark | Claude Opus 4.8 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| AA Agentic Index | 41.9 | 8.2 | Claude Opus 4.8 |
| Design Arena: agents building web apps | 1233 | 1125 | Claude Opus 4.8 |
| Design Arena: agents building full-stack apps | 1249 | 1068 | Claude Opus 4.8 |
| Design Arena: agents building mobile apps | 1222 | 1094 | Claude Opus 4.8 |
| Design Arena: agents building Android apps | 1233 | 1049 | Claude Opus 4.8 |
| Design Arena: agents building Godot games | 1231 | 1236 | Gemini 3.1 Pro Preview |
| Design Arena: agents building games | 1239 | 1113 | Claude Opus 4.8 |
| Design Arena: HTML slides | 1171 | 1103 | Claude Opus 4.8 |
| Design Arena: PowerPoint slides | 1202 | 1041 | Claude Opus 4.8 |
| Design Arena: spreadsheets | 1303 | Not measured | Only Claude Opus 4.8 measured |
| LiveBench research | 81.8% | Not measured | Only Claude Opus 4.8 measured |
| LiveBench browser | 96.0% | Not measured | Only Claude Opus 4.8 measured |
| LiveBench long agentic | 48.3% | Not measured | Only Claude Opus 4.8 measured |
| SREBench (Vals AI) | Not measured | 0.0% | Only Gemini 3.1 Pro Preview measured |
| Finance Agent (Vals AI) | 53.9% | 43.0% | Claude Opus 4.8 |
| Tax Agent Bench (Vals AI) | 30.0% | 9.3% | Claude Opus 4.8 |
| Legal Research Bench (Vals AI) | 43.8% | 20.7% | Claude Opus 4.8 |
| Excel Modeling Benchmark (Vals AI) | 69.4% | 52.6% | Claude Opus 4.8 |
| BioMysteryBench (Vals AI) | Not measured | 60.0% | Only Gemini 3.1 Pro Preview measured |
| Terminal-Bench-Science (Vals AI) | 4.3% | 1.4% | Claude Opus 4.8 |
| Vals Science Index | Not measured | 27.4% | Only Gemini 3.1 Pro Preview measured |
| Time Horizon Index (Vals AI) | 11.8% | Not measured | Only Claude Opus 4.8 measured |
| τ²-Bench Telecom | 94.4% | 95.6% | Gemini 3.1 Pro Preview |
| APEX-Agents | 48.9% | 35.1% | Claude Opus 4.8 |
| METR time horizons | Not measured | 77.0% | Only Gemini 3.1 Pro Preview measured |
| Remote Labor Index | 8.3% | Not measured | Only Claude Opus 4.8 measured |
| OSWorld 2.0 | 20.6% | Not measured | Only Claude Opus 4.8 measured |
| BALROG | Not measured | 57.0% | Only Gemini 3.1 Pro Preview measured |
| DeepResearch Bench | 50.2% | 47.8% | Claude Opus 4.8 |
| PostTrainBench | 33.8% | 22.0% | Claude Opus 4.8 |
| Vending-Bench 2 | $5,787 | $911 | Claude Opus 4.8 |
| LMArena Search | 1204 | Not measured | Only Claude Opus 4.8 measured |
| Neither model has a result on the other 9 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index88
| Benchmark | Claude Opus 4.8 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| GPQA Diamond | 92.4% | 95.5% | Gemini 3.1 Pro Preview |
| LiveBench reasoning | 89.2% | Not measured | Only Claude Opus 4.8 measured |
| MysteryMechanism (Vals AI) | Not measured | 20.7% | Only Gemini 3.1 Pro Preview measured |
| MMMU Pro (Vals AI) | 86.6% | 88.2% | Gemini 3.1 Pro Preview |
| GPQA Diamond (Artificial Analysis run) | 92.0% | 94.1% | Gemini 3.1 Pro Preview |
| Humanity's Last Exam (Artificial Analysis run) | 48.7% | 47.0% | Claude Opus 4.8 |
| GPQA Diamond (Epoch AI run) | 91.0% | 94.4% | Gemini 3.1 Pro Preview |
| ARC-AGI | 92.5% | 98.0% | Gemini 3.1 Pro Preview |
| ARC-AGI-2 | 72.1% | 77.1% | Gemini 3.1 Pro Preview |
| SimpleBench | 64.8% | 79.6% | Gemini 3.1 Pro Preview |
| Chess puzzles | 52.0% | 51.0% | Claude Opus 4.8 |
| Mystery game puzzles | 36.0% | 34.0% | Claude Opus 4.8 |
| EBR-bench | 28.6% | 14.3% | Claude Opus 4.8 |
| LMArena Text: hard prompts | 1482 | 1485 | Gemini 3.1 Pro Preview |
| LMArena Text: expert | 1503 | 1483 | Claude Opus 4.8 |
| LMArena Text: hard prompts in English | 1487 | 1480 | Claude Opus 4.8 |
| LMArena Vision: diagrams | 1315 | 1311 | Claude Opus 4.8 |
| LMArena Vision: homework | 1337 | 1316 | Claude Opus 4.8 |
| Kagi LLM Benchmark | 88.8% | Not measured | Only Claude Opus 4.8 measured |
| Neither model has a result on the other 3 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index60
| Benchmark | Claude Opus 4.8 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| AIME | Not measured | 98.1% | Only Gemini 3.1 Pro Preview measured |
| OTIS Mock AIME | 98.3% | 95.6% | Claude Opus 4.8 |
| FrontierMath, tiers 1 to 3 | 80.0% | 59.6% | Claude Opus 4.8 |
| FrontierMath, tier 4 | 56.1% | 26.8% | Claude Opus 4.8 |
| ProofBench | 69.0% | 26.0% | Claude Opus 4.8 |
| LMArena Text: math | 1486 | 1486 | Claude Opus 4.8 |
| LMArena Text: mathematical work | 1497 | 1478 | Claude Opus 4.8 |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index39
| Benchmark | Claude Opus 4.8 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| MMLU Pro | 89.6% | 91.0% | Gemini 3.1 Pro Preview |
| LegalBench (Vals AI) | 83.6% | 87.4% | Gemini 3.1 Pro Preview |
| CaseLaw (Vals AI) | Not measured | 64.8% | Only Gemini 3.1 Pro Preview measured |
| CorpFin (Vals AI) | 66.7% | 64.5% | Claude Opus 4.8 |
| TaxEval (Vals AI) | 75.6% | 72.9% | Claude Opus 4.8 |
| MortgageTax (Vals AI) | 69.9% | 69.4% | Claude Opus 4.8 |
| MedQA (Vals AI) | Not measured | 96.4% | Only Gemini 3.1 Pro Preview measured |
| MedCode (Vals AI) | 53.2% | 59.1% | Gemini 3.1 Pro Preview |
| SimpleQA Verified | 53.0% | 73.5% | Gemini 3.1 Pro Preview |
| LMArena Text: science | 1477 | 1497 | Gemini 3.1 Pro Preview |
| LMArena Text: medicine and healthcare | 1464 | 1486 | Gemini 3.1 Pro Preview |
| LMArena Text: legal and government | 1477 | 1487 | Gemini 3.1 Pro Preview |
| LMArena Text: business and finance | 1458 | 1459 | Gemini 3.1 Pro Preview |
| FACTS Benchmark Suite | 53.5% | 67.4% | 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 index62
| Benchmark | Claude Opus 4.8 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| Design Arena: websites | 1258 | 1233 | Claude Opus 4.8 |
| Design Arena: UI components | 1255 | 1224 | Claude Opus 4.8 |
| Design Arena: game dev | 1264 | 1202 | Claude Opus 4.8 |
| Design Arena: data viz | 1240 | 1209 | Claude Opus 4.8 |
| Design Arena: 3D | 1222 | 1234 | Gemini 3.1 Pro Preview |
| Design Arena: all code categories | 1255 | 1231 | Claude Opus 4.8 |
| Design Arena: SVG | 1195 | 1285 | Gemini 3.1 Pro Preview |
| Design Arena: ASCII art | 1277 | 1270 | Claude Opus 4.8 |
| LiveBench design | 78.8% | Not measured | Only Claude Opus 4.8 measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index1023
| Benchmark | Claude Opus 4.8 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| LiveBench data analysis | 66.0% | Not measured | Only Claude Opus 4.8 measured |
| Public Benefits Bench (Vals AI) | 68.1% | 53.8% | Claude Opus 4.8 |
| SAGE (Vals AI) | 54.8% | 48.7% | Claude Opus 4.8 |
| MedScribe (Vals AI) | 85.8% | 76.1% | Claude Opus 4.8 |
| Vals Multimodal Index | 70.9% | 56.1% | Claude Opus 4.8 |
| IFBench | 62.2% | 77.1% | Gemini 3.1 Pro Preview |
| Long context reasoning (AA-LCR) | 77.7% | 82.0% | Gemini 3.1 Pro Preview |
| DTBench | 94.9% | 97.1% | Gemini 3.1 Pro Preview |
| LMCA | 57.5% | 53.8% | Claude Opus 4.8 |
| CL-bench | Not measured | 20.8% | Only Gemini 3.1 Pro Preview measured |
| Surface Evolver Bench | 87.5% | Not measured | Only Claude Opus 4.8 measured |
| Furniture assembly | 42.5% | 26.7% | Claude Opus 4.8 |
| ExploitBench | Not measured | 26.1% | Only Gemini 3.1 Pro Preview measured |
| CL-bench Life | Not measured | 16.9% | Only Gemini 3.1 Pro Preview measured |
| LMArena Text | 1461 | 1480 | Gemini 3.1 Pro Preview |
| LMArena Text: instruction following | 1476 | 1466 | Claude Opus 4.8 |
| LMArena Text: creative writing | 1454 | 1482 | Gemini 3.1 Pro Preview |
| LMArena Vision | 1294 | 1296 | Gemini 3.1 Pro Preview |
| LMArena Text: English | 1468 | 1478 | Gemini 3.1 Pro Preview |
| LMArena Text: non-English | 1450 | 1476 | Gemini 3.1 Pro Preview |
| LMArena Text: Chinese | 1506 | 1527 | Gemini 3.1 Pro Preview |
| LMArena Text: German | 1472 | 1490 | Gemini 3.1 Pro Preview |
| LMArena Text: Japanese | 1442 | 1491 | Gemini 3.1 Pro Preview |
| LMArena Text: Korean | 1431 | 1455 | Gemini 3.1 Pro Preview |
| LMArena Text: French | 1481 | 1487 | Gemini 3.1 Pro Preview |
| LMArena Text: Spanish | 1465 | 1481 | Gemini 3.1 Pro Preview |
| LMArena Text: Russian | 1474 | 1497 | Gemini 3.1 Pro Preview |
| LMArena Text: Polish | 1459 | 1498 | Gemini 3.1 Pro Preview |
| LMArena Text: multi-turn | 1476 | 1487 | Gemini 3.1 Pro Preview |
| LMArena Text: longer queries | 1483 | 1482 | Claude Opus 4.8 |
| LMArena Text: writing and language | 1461 | 1481 | Gemini 3.1 Pro Preview |
| LMArena Text: entertainment and media | 1440 | 1465 | Gemini 3.1 Pro Preview |
| LMArena Vision: English | 1293 | 1287 | Claude Opus 4.8 |
| LMArena Vision: Chinese | 1346 | 1364 | Gemini 3.1 Pro Preview |
| LMArena Vision: reading text | 1303 | 1304 | Gemini 3.1 Pro Preview |
| LMArena Vision: humor | 1282 | 1322 | Gemini 3.1 Pro Preview |
| LMArena Vision: captioning | Not measured | 1345 | Only Gemini 3.1 Pro Preview measured |
| LMArena Vision: recognizing things | Not measured | 1330 | Only Gemini 3.1 Pro Preview measured |
| LMArena Vision: creative writing | 1301 | 1324 | Gemini 3.1 Pro Preview |
| LMArena Document | 1475 | 1444 | Claude Opus 4.8 |
| 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
| Benchmark | Claude Opus 4.8 | Gemini 3.1 Pro Preview | 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
Gemini 3.1 Pro Preview 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 | Anthropic Claude Opus 4.8 | Google Gemini 3.1 Pro Preview |
|---|---|---|
| Maker | Anthropic | |
| Weights | No public weights listed | No public weights listed |
| Released | May 27, 2026 | February 19, 2026 |
| Context window | 1M | 1.05M |
| Input $/Mtok | $5.00 | $2.00 |
| Output $/Mtok | $25.00 | $12.00 |
| Coding index | 65.0 | 32.3 |
| Independent measurements behind it | 6 | 4 |
| Cost per solved task | $2.17 | $0.99 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Opus 4.8 better than Gemini 3.1 Pro Preview for coding?
Pick Claude Opus 4.8 for coding: it scores 65.0 on the Vibe Coding Index against 32.3 for Gemini 3.1 Pro Preview. Pick Gemini 3.1 Pro Preview for output tokens 2.1x cheaper ($12.00 vs $25.00 per million) and a lower cost per solved task ($0.99 against $2.17).
Which is cheaper, Claude Opus 4.8 or Gemini 3.1 Pro Preview?
Claude Opus 4.8 costs $5.00 per million input tokens and $25.00 per million output tokens; Gemini 3.1 Pro Preview costs $2.00 and $12.00. Per solved SWE-bench Verified task, Claude Opus 4.8 costs $2.17 and Gemini 3.1 Pro Preview $0.99.
Which has the bigger context window, Claude Opus 4.8 or Gemini 3.1 Pro Preview?
Gemini 3.1 Pro Preview, with 1.05M tokens against 1M.
How many benchmarks is the Claude Opus 4.8 vs Gemini 3.1 Pro Preview comparison based on?
113 benchmarks have a result for both models as of October 22, 2026. Claude Opus 4.8's coding index rests on 6 independent benchmarks and Gemini 3.1 Pro Preview's on 4. Where only one model has a result, the page says so instead of naming a winner.