Claude Opus 4.7 vs Gemini 3.1 Pro Preview
Updated October 21, 2026. 97 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Pick Claude Opus 4.7 for coding: it scores 51.1 on the Vibe Coding Index against 35.3 for Gemini 3.1 Pro Preview.
Pick Gemini 3.1 Pro Preview when output tokens cost 2.1x less, or when a solved task costs $0.99 against $2.95.
- Shared results
- 97
- Claude Opus 4.7 only
- 4
- Gemini 3.1 Pro Preview only
- 34
- Like-for-like categories
- 7 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
Claude Opus 4.7
Claude Opus 4.7 scores 51.1 against 35.3.
One benchmark behind each score
Intelligence
AA Intelligence Index
Claude Opus 4.7
Claude Opus 4.7 leads, 40.7 against 29.7.
Same board, both measured
Agentic work
AA Agentic Index
Claude Opus 4.7
Claude Opus 4.7 leads, 38.6 against 8.2.
Same board, both measured
Reasoning
GPQA Diamond
Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview leads, 95.5% against 90.2%.
Same board, both measured
Math
AIME
Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview leads, 98.1% against 96.3%.
Same board, both measured
Knowledge
MMLU Pro
Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview leads, 91.0% against 89.9%.
Same board, both measured
Web design
Design Arena: websites
No call
Only Gemini 3.1 Pro Preview has a Design Arena: websites result, 1234.
Directional only
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.7 $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.7 $2.95, Gemini 3.1 Pro Preview $0.99.
Published attempt cost and pass rate
At a glance
- Coding index
- Claude Opus 4.7 51.1 from 1 benchmark, Gemini 3.1 Pro Preview 35.3 from 1 benchmark.
- Widest category
- Agentic work, 19.2 points apart on average over 9 shared benchmarks.
- Widest single gap
- Vending-Bench 2: Claude Opus 4.7 $10,937 against Gemini 3.1 Pro Preview $911, 62.7 points apart on a 0 to 100 scale.
- Output price
- Claude Opus 4.7 $25.00 against Gemini 3.1 Pro Preview $12.00 per million output tokens, 2.1x apart.
- Context window
- Claude Opus 4.7 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.7 | Bars | Gemini 3.1 Pro Preview | Ties |
|---|---|---|---|---|
| Coding | 14 | 2 | 2 ties | |
| Intelligence | 1 | 0 | ||
| Agentic work | 8 | 1 | ||
| Reasoning | 6 | 10 | ||
| Math | 6 | 1 | ||
| Knowledge | 8 | 4 | ||
| General | 25 | 9 | ||
| All shared boards | 68 | 27 | 2 ties |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index142
| Benchmark | Claude Opus 4.7 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| LMArena WebDev | 1558 | 1447 | Claude Opus 4.7 |
| AA Coding Index | 73.6 | 68.8 | Claude Opus 4.7 |
| LiveCodeBench (Vals AI) | 85.1% | 88.5% | Gemini 3.1 Pro Preview |
| SWE-bench Verified (Vals AI) | 82.0% | 78.8% | Claude Opus 4.7 |
| Terminal-Bench 4 (Vals AI) | Not measured | 2.5% | Only Gemini 3.1 Pro Preview measured |
| Vibe Code Bench (Vals AI) | 71.0% | 32.0% | Claude Opus 4.7 |
| Code migration (Vals AI) | 43.9% | 17.3% | Claude Opus 4.7 |
| ProgramBench (Vals AI) | 0.0% | 0.0% | Tie |
| IOI (Vals AI) | Not measured | 51.8% | Only Gemini 3.1 Pro Preview measured |
| Terminal-Bench 2.1 (Vals AI) | 68.5% | 70.8% | Gemini 3.1 Pro Preview |
| Vibe Code Bench 1-100 (Vals AI) | Not measured | 6.7% | Only Gemini 3.1 Pro Preview measured |
| SciCode | Not measured | 58.7% | Only Gemini 3.1 Pro Preview measured |
| Terminal-Bench Hard (Artificial Analysis run) | 54.5% | 53.8% | Claude Opus 4.7 |
| Terminal-Bench | 80.2% | 80.2% | Tie |
| FrontierCode | 38.5% | Not measured | Only Claude Opus 4.7 measured |
| GSO-Bench | 44.1% | 22.6% | Claude Opus 4.7 |
| WeirdML | 76.4% | 72.1% | Claude Opus 4.7 |
| MirrorCode | 31.1% | 8.9% | Claude Opus 4.7 |
| ALE-Bench | Not measured | 1160.6 | Only Gemini 3.1 Pro Preview measured |
| LMArena Text: coding | 1519 | 1484 | Claude Opus 4.7 |
| LMArena Text: software and IT | 1516 | 1487 | Claude Opus 4.7 |
| LMArena WebDev: React | 1560 | 1438 | Claude Opus 4.7 |
| LMArena WebDev: HTML | 1554 | 1490 | Claude Opus 4.7 |
| LMArena WebDev: from an image | 1577 | 1481 | Claude Opus 4.7 |
| Neither model has a result on the other 14 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Claude Opus 4.7 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| AA Intelligence Index | 40.7 | 29.7 | Claude Opus 4.7 |
| Epoch Capabilities Index | 156.8 | Not measured | Only Claude Opus 4.7 measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index81
| Benchmark | Claude Opus 4.7 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| AA Agentic Index | 38.6 | 8.2 | Claude Opus 4.7 |
| Design Arena: agents building web apps | Not measured | 1125 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: agents building full-stack apps | Not measured | 1068 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: agents building mobile apps | Not measured | 1094 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: agents building Android apps | Not measured | 1055 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: agents building Godot games | Not measured | 1236 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: agents building games | Not measured | 1114 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: HTML slides | Not measured | 1153 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: PowerPoint slides | Not measured | 1064 | Only Gemini 3.1 Pro Preview measured |
| SREBench (Vals AI) | Not measured | 0.0% | Only Gemini 3.1 Pro Preview measured |
| Finance Agent (Vals AI) | 51.5% | 43.0% | Claude Opus 4.7 |
| Tax Agent Bench (Vals AI) | 23.7% | 9.3% | Claude Opus 4.7 |
| Legal Research Bench (Vals AI) | 38.5% | 20.7% | Claude Opus 4.7 |
| Excel Modeling Benchmark (Vals AI) | 63.7% | 52.6% | Claude Opus 4.7 |
| BioMysteryBench (Vals AI) | Not measured | 60.0% | Only Gemini 3.1 Pro Preview measured |
| Terminal-Bench-Science (Vals AI) | Not measured | 1.4% | Only Gemini 3.1 Pro Preview measured |
| Vals Science Index | Not measured | 27.4% | Only Gemini 3.1 Pro Preview measured |
| τ²-Bench Telecom | 88.6% | 95.6% | Gemini 3.1 Pro Preview |
| APEX-Agents | 49.2% | 35.1% | Claude Opus 4.7 |
| METR time horizons | Not measured | 77.0% | Only Gemini 3.1 Pro Preview measured |
| OSWorld 2.0 | 18.2% | Not measured | Only Claude Opus 4.7 measured |
| BALROG | Not measured | 57.0% | Only Gemini 3.1 Pro Preview measured |
| DeepResearch Bench | Not measured | 47.8% | Only Gemini 3.1 Pro Preview measured |
| PostTrainBench | 28.6% | 22.0% | Claude Opus 4.7 |
| Vending-Bench 2 | $10,937 | $911 | Claude Opus 4.7 |
| LMArena Search | 1230 | Not measured | Only Claude Opus 4.7 measured |
| Neither model has a result on the other 13 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index610
| Benchmark | Claude Opus 4.7 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| GPQA Diamond | 90.2% | 95.5% | Gemini 3.1 Pro Preview |
| MysteryMechanism (Vals AI) | Not measured | 20.7% | Only Gemini 3.1 Pro Preview measured |
| MMMU Pro (Vals AI) | 85.5% | 88.2% | Gemini 3.1 Pro Preview |
| GPQA Diamond (Artificial Analysis run) | 91.4% | 94.1% | Gemini 3.1 Pro Preview |
| Humanity's Last Exam (Artificial Analysis run) | 42.3% | 47.0% | Gemini 3.1 Pro Preview |
| GPQA Diamond (Epoch AI run) | 90.2% | 94.4% | Gemini 3.1 Pro Preview |
| ARC-AGI | 93.5% | 98.0% | Gemini 3.1 Pro Preview |
| ARC-AGI-2 | 75.8% | 77.1% | Gemini 3.1 Pro Preview |
| SimpleBench | 61.7% | 79.6% | Gemini 3.1 Pro Preview |
| Chess puzzles | 41.0% | 51.0% | Gemini 3.1 Pro Preview |
| Mystery game puzzles | 28.0% | 34.0% | Gemini 3.1 Pro Preview |
| EBR-bench | 19.0% | 14.3% | Claude Opus 4.7 |
| LMArena Text: hard prompts | 1506 | 1485 | Claude Opus 4.7 |
| LMArena Text: expert | 1521 | 1483 | Claude Opus 4.7 |
| LMArena Text: hard prompts in English | 1508 | 1480 | Claude Opus 4.7 |
| LMArena Vision: diagrams | 1336 | 1311 | Claude Opus 4.7 |
| LMArena Vision: homework | 1337 | 1316 | Claude Opus 4.7 |
| Neither model has a result on the other 4 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index61
| Benchmark | Claude Opus 4.7 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| AIME | 96.3% | 98.1% | Gemini 3.1 Pro Preview |
| OTIS Mock AIME | 97.8% | 95.6% | Claude Opus 4.7 |
| FrontierMath, tiers 1 to 3 | 70.2% | 59.6% | Claude Opus 4.7 |
| FrontierMath, tier 4 | 31.7% | 26.8% | Claude Opus 4.7 |
| ProofBench | 54.0% | 26.0% | Claude Opus 4.7 |
| LMArena Text: math | 1498 | 1486 | Claude Opus 4.7 |
| LMArena Text: mathematical work | 1509 | 1478 | Claude Opus 4.7 |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index84
| Benchmark | Claude Opus 4.7 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| MMLU Pro | 89.9% | 91.0% | Gemini 3.1 Pro Preview |
| LegalBench (Vals AI) | 85.3% | 87.4% | Gemini 3.1 Pro Preview |
| CaseLaw (Vals AI) | 68.4% | 64.8% | Claude Opus 4.7 |
| CorpFin (Vals AI) | 66.1% | 64.5% | Claude Opus 4.7 |
| TaxEval (Vals AI) | 75.3% | 72.9% | Claude Opus 4.7 |
| MortgageTax (Vals AI) | 70.3% | 69.4% | Claude Opus 4.7 |
| MedQA (Vals AI) | Not measured | 96.4% | Only Gemini 3.1 Pro Preview measured |
| MedCode (Vals AI) | 54.9% | 59.1% | Gemini 3.1 Pro Preview |
| SimpleQA Verified | 51.7% | 73.5% | Gemini 3.1 Pro Preview |
| LMArena Text: science | 1508 | 1497 | Claude Opus 4.7 |
| LMArena Text: medicine and healthcare | 1495 | 1486 | Claude Opus 4.7 |
| LMArena Text: legal and government | 1504 | 1487 | Claude Opus 4.7 |
| LMArena Text: business and finance | 1490 | 1459 | Claude Opus 4.7 |
| Neither model has a result on the other 4 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
| Benchmark | Claude Opus 4.7 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| Design Arena: websites | Not measured | 1234 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: UI components | Not measured | 1226 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: game dev | Not measured | 1203 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: data viz | Not measured | 1209 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: 3D | Not measured | 1234 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: all code categories | Not measured | 1231 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: SVG | Not measured | 1285 | Only Gemini 3.1 Pro Preview measured |
| Design Arena: ASCII art | Not measured | 1270 | 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 index259
| Benchmark | Claude Opus 4.7 | Gemini 3.1 Pro Preview | Leader |
|---|---|---|---|
| Public Benefits Bench (Vals AI) | Not measured | 53.8% | Only Gemini 3.1 Pro Preview measured |
| SAGE (Vals AI) | 56.1% | 48.7% | Claude Opus 4.7 |
| MedScribe (Vals AI) | 83.0% | 76.1% | Claude Opus 4.7 |
| Vals Multimodal Index | 67.4% | 56.1% | Claude Opus 4.7 |
| IFBench | 58.6% | 77.1% | Gemini 3.1 Pro Preview |
| Long context reasoning (AA-LCR) | 78.7% | 82.0% | Gemini 3.1 Pro Preview |
| DTBench | 94.7% | 97.1% | Gemini 3.1 Pro Preview |
| LMCA | 52.2% | 53.8% | Gemini 3.1 Pro Preview |
| CL-bench | Not measured | 20.8% | Only Gemini 3.1 Pro Preview measured |
| Furniture assembly | 33.3% | 26.7% | Claude Opus 4.7 |
| ExploitBench | 26.5% | 26.1% | Claude Opus 4.7 |
| CL-bench Life | Not measured | 16.9% | Only Gemini 3.1 Pro Preview measured |
| LMArena Text | 1490 | 1480 | Claude Opus 4.7 |
| LMArena Text: instruction following | 1498 | 1466 | Claude Opus 4.7 |
| LMArena Text: creative writing | 1486 | 1482 | Claude Opus 4.7 |
| LMArena Vision | 1317 | 1296 | Claude Opus 4.7 |
| LMArena Text: English | 1496 | 1478 | Claude Opus 4.7 |
| LMArena Text: non-English | 1480 | 1476 | Claude Opus 4.7 |
| LMArena Text: Chinese | 1531 | 1527 | Claude Opus 4.7 |
| LMArena Text: German | 1495 | 1490 | Claude Opus 4.7 |
| LMArena Text: Japanese | 1474 | 1491 | Gemini 3.1 Pro Preview |
| LMArena Text: Korean | 1464 | 1455 | Claude Opus 4.7 |
| LMArena Text: French | 1503 | 1487 | Claude Opus 4.7 |
| LMArena Text: Spanish | 1494 | 1481 | Claude Opus 4.7 |
| LMArena Text: Russian | 1494 | 1497 | Gemini 3.1 Pro Preview |
| LMArena Text: Polish | 1489 | 1498 | Gemini 3.1 Pro Preview |
| LMArena Text: multi-turn | 1505 | 1487 | Claude Opus 4.7 |
| LMArena Text: longer queries | 1505 | 1482 | Claude Opus 4.7 |
| LMArena Text: writing and language | 1492 | 1481 | Claude Opus 4.7 |
| LMArena Text: entertainment and media | 1474 | 1465 | Claude Opus 4.7 |
| LMArena Vision: English | 1322 | 1287 | Claude Opus 4.7 |
| LMArena Vision: Chinese | 1371 | 1364 | Claude Opus 4.7 |
| LMArena Vision: reading text | 1327 | 1304 | Claude Opus 4.7 |
| LMArena Vision: humor | 1309 | 1322 | Gemini 3.1 Pro Preview |
| LMArena Vision: captioning | Not measured | 1345 | Only Gemini 3.1 Pro Preview measured |
| LMArena Vision: recognizing things | 1278 | 1330 | Gemini 3.1 Pro Preview |
| LMArena Vision: creative writing | 1326 | 1324 | Claude Opus 4.7 |
| LMArena Document | 1495 | 1444 | Claude Opus 4.7 |
| 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 | Claude Opus 4.7 | 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.7 | Google Gemini 3.1 Pro Preview |
|---|---|---|
| Maker | Anthropic | |
| Weights | No public weights listed | No public weights listed |
| Released | April 16, 2026 | February 19, 2026 |
| Context window | 1M | 1.05M |
| Input $/Mtok | $5.00 | $2.00 |
| Output $/Mtok | $25.00 | $12.00 |
| Coding index | 51.1 | 35.3 |
| Independent measurements behind it | 1 | 1 |
| Cost per solved task | $2.95 | $0.99 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Opus 4.7 better than Gemini 3.1 Pro Preview for coding?
Pick Claude Opus 4.7 for coding: it scores 51.1 on the Vibe Coding Index against 35.3 for Gemini 3.1 Pro Preview. Pick Gemini 3.1 Pro Preview when output tokens cost 2.1x less, or when a solved task costs $0.99 against $2.95.
Which is cheaper, Claude Opus 4.7 or Gemini 3.1 Pro Preview?
Claude Opus 4.7 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.7 costs $2.95 and Gemini 3.1 Pro Preview $0.99.
Which has the bigger context window, Claude Opus 4.7 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.7 vs Gemini 3.1 Pro Preview comparison based on?
97 benchmarks have a result for both models as of October 21, 2026. Claude Opus 4.7's coding index rests on 1 independent benchmark and Gemini 3.1 Pro Preview's on 1. Where only one model has a result, the page says so instead of naming a winner.