Claude Opus 4.5 vs Gemma 4 31B
Updated October 21, 2026. 46 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.5 for coding: it scores 66.8 on the Vibe Coding Index against 38.3 for Gemma 4 31B.
Pick Gemma 4 31B when output tokens cost 62.5x less, or when the context window is larger, 262K against 200K tokens.
- Shared results
- 46
- Claude Opus 4.5 only
- 59
- Gemma 4 31B only
- 22
- 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.5
Claude Opus 4.5 scores 66.8 against 38.3.
2 benchmarks behind each score
Intelligence
AA Intelligence Index
Claude Opus 4.5
Claude Opus 4.5 leads, 29.1 against 14.7.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only Gemma 4 31B has a AA Agentic Index result, 4.2.
Directional only
Reasoning
GPQA Diamond
No call
Only Claude Opus 4.5 has a GPQA Diamond result, 85.9%.
Directional only
Math
AIME
No call
Only Claude Opus 4.5 has a AIME result, 95.4%.
Directional only
Knowledge
MMLU Pro
No call
Only Claude Opus 4.5 has a MMLU Pro result, 87.3%.
Directional only
Web design
Design Arena: websites
No call
Only Claude Opus 4.5 has a Design Arena: websites result, 1247.
Directional only
Long documents
Listed context window
Gemma 4 31B
Gemma 4 31B takes 262K tokens against 200K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemma 4 31B
Claude Opus 4.5 $0.018, Gemma 4 31B $0.0004 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only Claude Opus 4.5 has the number, $1.37.
Directional only
At a glance
- Coding index
- Claude Opus 4.5 66.8 from 2 benchmarks, Gemma 4 31B 38.3 from 2 benchmarks.
- Widest category
- Agentic work, 24.0 points apart on average over 1 shared benchmark.
- Widest single gap
- SimpleQA Verified: Claude Opus 4.5 45.7% against Gemma 4 31B 10.4%, 35.3 points apart on a 0 to 100 scale.
- Output price
- Claude Opus 4.5 $25.00 against Gemma 4 31B $0.40 per million output tokens, 62.5x apart.
- Context window
- Claude Opus 4.5 takes 200K tokens, Gemma 4 31B 262K.
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.5 | Bars | Gemma 4 31B | Ties |
|---|---|---|---|---|
| Coding | 7 | 0 | ||
| Intelligence | 2 | 0 | ||
| Agentic work | 1 | 0 | ||
| Reasoning | 6 | 0 | ||
| Math | 3 | 0 | ||
| Knowledge | 5 | 2 | ||
| General | 16 | 4 | ||
| All shared boards | 40 | 6 |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index70
| Benchmark | Claude Opus 4.5 | Gemma 4 31B | Leader |
|---|---|---|---|
| SWE-bench Verified | 79.2% | Not measured | Only Claude Opus 4.5 measured |
| SWE-bench (full test set) | 52.6% | Not measured | Only Claude Opus 4.5 measured |
| SWE-bench Multilingual | 70.7% | Not measured | Only Claude Opus 4.5 measured |
| LiveBench coding | Not measured | 49.0% | Only Gemma 4 31B measured |
| LMArena WebDev | 1494 | 1367 | Claude Opus 4.5 |
| AA Coding Index | Not measured | 43.4 | Only Gemma 4 31B measured |
| LiveCodeBench (Vals AI) | 83.7% | Not measured | Only Claude Opus 4.5 measured |
| SWE-bench Verified (Vals AI) | 76.4% | Not measured | Only Claude Opus 4.5 measured |
| Vibe Code Bench (Vals AI) | 20.6% | Not measured | Only Claude Opus 4.5 measured |
| LiveCodeBench (Artificial Analysis run) | 87.1% | Not measured | Only Claude Opus 4.5 measured |
| SciCode | Not measured | 45.5% | Only Gemma 4 31B measured |
| Terminal-Bench Hard (Artificial Analysis run) | 47.0% | 36.4% | Claude Opus 4.5 |
| Terminal-Bench | 63.1% | Not measured | Only Claude Opus 4.5 measured |
| GSO-Bench | 26.5% | Not measured | Only Claude Opus 4.5 measured |
| WeirdML | 63.7% | 52.3% | Claude Opus 4.5 |
| Cybench | 82.0% | Not measured | Only Claude Opus 4.5 measured |
| ALE-Bench | Not measured | 925.5 | Only Gemma 4 31B measured |
| LMArena Text: coding | 1503 | 1459 | Claude Opus 4.5 |
| LMArena Text: software and IT | 1483 | 1463 | Claude Opus 4.5 |
| LMArena WebDev: React | 1478 | 1359 | Claude Opus 4.5 |
| LMArena WebDev: HTML | 1510 | 1380 | Claude Opus 4.5 |
| Neither model has a result on the other 17 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | Claude Opus 4.5 | Gemma 4 31B | Leader |
|---|---|---|---|
| AA Intelligence Index | 29.1 | 14.7 | Claude Opus 4.5 |
| Epoch Capabilities Index | 150.1 | 143.0 | Claude Opus 4.5 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Claude Opus 4.5 | Gemma 4 31B | Leader |
|---|---|---|---|
| AA Agentic Index | Not measured | 4.2 | Only Gemma 4 31B measured |
| Design Arena: agents building web apps | 1159 | Not measured | Only Claude Opus 4.5 measured |
| Design Arena: agents building full-stack apps | 1156 | Not measured | Only Claude Opus 4.5 measured |
| Design Arena: agents building mobile apps | 1189 | Not measured | Only Claude Opus 4.5 measured |
| Design Arena: agents building Android apps | 1181 | Not measured | Only Claude Opus 4.5 measured |
| LiveBench research | Not measured | 44.4% | Only Gemma 4 31B measured |
| LiveBench browser | Not measured | 4.0% | Only Gemma 4 31B measured |
| LiveBench long agentic | Not measured | 13.3% | Only Gemma 4 31B measured |
| τ²-Bench Telecom | 89.5% | 65.5% | Claude Opus 4.5 |
| METR time horizons | 75.0% | Not measured | Only Claude Opus 4.5 measured |
| Remote Labor Index | 3.8% | Not measured | Only Claude Opus 4.5 measured |
| GDPval | 45.5% | Not measured | Only Claude Opus 4.5 measured |
| BALROG | 43.5% | Not measured | Only Claude Opus 4.5 measured |
| DeepResearch Bench | 54.8% | Not measured | Only Claude Opus 4.5 measured |
| OSWorld | 66.3% | Not measured | Only Claude Opus 4.5 measured |
| Vending-Bench 2 | $4,967 | Not measured | Only Claude Opus 4.5 measured |
| Neither model has a result on the other 23 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
| Benchmark | Claude Opus 4.5 | Gemma 4 31B | Leader |
|---|---|---|---|
| GPQA Diamond | 85.9% | Not measured | Only Claude Opus 4.5 measured |
| LiveBench reasoning | Not measured | 68.3% | Only Gemma 4 31B measured |
| MMMU Pro (Vals AI) | 83.0% | Not measured | Only Claude Opus 4.5 measured |
| GPQA Diamond (Artificial Analysis run) | 86.6% | 85.7% | Claude Opus 4.5 |
| Humanity's Last Exam (Artificial Analysis run) | 30.1% | 23.6% | Claude Opus 4.5 |
| GPQA Diamond (Epoch AI run) | 86.0% | 75.8% | Claude Opus 4.5 |
| ARC-AGI | 80.0% | Not measured | Only Claude Opus 4.5 measured |
| ARC-AGI-2 | 37.6% | Not measured | Only Claude Opus 4.5 measured |
| SimpleBench | 62.0% | Not measured | Only Claude Opus 4.5 measured |
| Chess puzzles | 14.0% | Not measured | Only Claude Opus 4.5 measured |
| Mystery game puzzles | 22.0% | Not measured | Only Claude Opus 4.5 measured |
| EBR-bench | 14.3% | Not measured | Only Claude Opus 4.5 measured |
| VPCT | 40.0% | Not measured | Only Claude Opus 4.5 measured |
| LMArena Text: hard prompts | 1476 | 1448 | Claude Opus 4.5 |
| LMArena Text: expert | 1487 | 1464 | Claude Opus 4.5 |
| LMArena Text: hard prompts in English | 1482 | 1456 | Claude Opus 4.5 |
| LMArena Vision: diagrams | Not measured | 1283 | Only Gemma 4 31B measured |
| LMArena Vision: homework | Not measured | 1310 | Only Gemma 4 31B measured |
| Neither model has a result on the other 3 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index30
| Benchmark | Claude Opus 4.5 | Gemma 4 31B | Leader |
|---|---|---|---|
| AIME | 95.4% | Not measured | Only Claude Opus 4.5 measured |
| MGSM (Vals AI) | 95.2% | Not measured | Only Claude Opus 4.5 measured |
| AA Math Index | 91.3 | Not measured | Only Claude Opus 4.5 measured |
| AIME 2025 (Artificial Analysis run) | 91.3% | Not measured | Only Claude Opus 4.5 measured |
| OTIS Mock AIME | 86.1% | 73.3% | Claude Opus 4.5 |
| FrontierMath, tiers 1 to 3 | 34.4% | Not measured | Only Claude Opus 4.5 measured |
| FrontierMath, tier 4 | 4.9% | Not measured | Only Claude Opus 4.5 measured |
| ProofBench | 36.0% | Not measured | Only Claude Opus 4.5 measured |
| LMArena Text: math | 1463 | 1463 | Claude Opus 4.5 |
| LMArena Text: mathematical work | 1468 | 1465 | Claude Opus 4.5 |
| Neither model has a result on the other 3 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index52
| Benchmark | Claude Opus 4.5 | Gemma 4 31B | Leader |
|---|---|---|---|
| MMLU Pro | 87.3% | Not measured | Only Claude Opus 4.5 measured |
| LegalBench (Vals AI) | 84.6% | Not measured | Only Claude Opus 4.5 measured |
| CaseLaw (Vals AI) | 62.6% | 52.6% | Claude Opus 4.5 |
| CorpFin (Vals AI) | 65.1% | Not measured | Only Claude Opus 4.5 measured |
| TaxEval (Vals AI) | 74.9% | Not measured | Only Claude Opus 4.5 measured |
| MortgageTax (Vals AI) | 68.7% | 61.4% | Claude Opus 4.5 |
| MedQA (Vals AI) | 95.9% | Not measured | Only Claude Opus 4.5 measured |
| MedCode (Vals AI) | 49.2% | Not measured | Only Claude Opus 4.5 measured |
| MMLU Pro (Artificial Analysis run) | 89.5% | Not measured | Only Claude Opus 4.5 measured |
| SimpleQA Verified | 45.7% | 10.4% | Claude Opus 4.5 |
| GeoBench | 75.0% | Not measured | Only Claude Opus 4.5 measured |
| LMArena Text: science | 1454 | 1457 | Gemma 4 31B |
| LMArena Text: medicine and healthcare | 1444 | 1451 | Gemma 4 31B |
| LMArena Text: legal and government | 1459 | 1438 | Claude Opus 4.5 |
| LMArena Text: business and finance | 1448 | 1430 | Claude Opus 4.5 |
| Neither model has a result on the other 2 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
| Benchmark | Claude Opus 4.5 | Gemma 4 31B | Leader |
|---|---|---|---|
| Design Arena: websites | 1247 | Not measured | Only Claude Opus 4.5 measured |
| Design Arena: UI components | 1238 | Not measured | Only Claude Opus 4.5 measured |
| Design Arena: game dev | 1229 | Not measured | Only Claude Opus 4.5 measured |
| Design Arena: data viz | 1243 | Not measured | Only Claude Opus 4.5 measured |
| Design Arena: 3D | 1214 | Not measured | Only Claude Opus 4.5 measured |
| Design Arena: all code categories | 1242 | Not measured | Only Claude Opus 4.5 measured |
| Design Arena: SVG | 1180 | Not measured | Only Claude Opus 4.5 measured |
| Design Arena: ASCII art | 1190 | Not measured | Only Claude Opus 4.5 measured |
| LiveBench design | Not measured | 58.4% | Only Gemma 4 31B measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index164
| Benchmark | Claude Opus 4.5 | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench data analysis | Not measured | 53.3% | Only Gemma 4 31B measured |
| SAGE (Vals AI) | 52.1% | 55.0% | Gemma 4 31B |
| MedScribe (Vals AI) | 85.3% | Not measured | Only Claude Opus 4.5 measured |
| IFBench | 58.0% | 75.6% | Gemma 4 31B |
| Long context reasoning (AA-LCR) | 77.3% | 69.7% | Claude Opus 4.5 |
| DTBench | 89.9% | 82.7% | Claude Opus 4.5 |
| LMCA | 44.5% | 39.3% | Claude Opus 4.5 |
| CL-bench | 21.1% | Not measured | Only Claude Opus 4.5 measured |
| Surface Evolver Bench | Not measured | 30.6% | Only Gemma 4 31B measured |
| Furniture assembly | 28.3% | Not measured | Only Claude Opus 4.5 measured |
| LMArena Text | 1451 | 1443 | Claude Opus 4.5 |
| LMArena Text: instruction following | 1478 | 1433 | Claude Opus 4.5 |
| LMArena Text: creative writing | 1445 | 1417 | Claude Opus 4.5 |
| LMArena Vision | Not measured | 1276 | Only Gemma 4 31B measured |
| LMArena Text: English | 1461 | 1451 | Claude Opus 4.5 |
| LMArena Text: non-English | 1438 | 1430 | Claude Opus 4.5 |
| LMArena Text: Chinese | 1470 | 1475 | Gemma 4 31B |
| LMArena Text: German | 1449 | Not measured | Only Claude Opus 4.5 measured |
| LMArena Text: Japanese | 1417 | Not measured | Only Claude Opus 4.5 measured |
| LMArena Text: Korean | 1424 | Not measured | Only Claude Opus 4.5 measured |
| LMArena Text: French | 1471 | 1436 | Claude Opus 4.5 |
| LMArena Text: Spanish | 1457 | 1442 | Claude Opus 4.5 |
| LMArena Text: Russian | 1447 | 1460 | Gemma 4 31B |
| LMArena Text: Polish | 1439 | 1433 | Claude Opus 4.5 |
| LMArena Text: multi-turn | 1466 | 1452 | Claude Opus 4.5 |
| LMArena Text: longer queries | 1479 | 1446 | Claude Opus 4.5 |
| LMArena Text: writing and language | 1452 | 1432 | Claude Opus 4.5 |
| LMArena Text: entertainment and media | 1434 | 1405 | Claude Opus 4.5 |
| LMArena Vision: English | Not measured | 1271 | Only Gemma 4 31B measured |
| LMArena Vision: Chinese | Not measured | 1326 | Only Gemma 4 31B measured |
| LMArena Vision: reading text | Not measured | 1282 | Only Gemma 4 31B measured |
| LMArena Vision: humor | Not measured | 1280 | Only Gemma 4 31B measured |
| LMArena Vision: captioning | Not measured | 1218 | Only Gemma 4 31B measured |
| LMArena Vision: recognizing things | Not measured | 1226 | Only Gemma 4 31B measured |
| LMArena Vision: creative writing | Not measured | 1285 | Only Gemma 4 31B measured |
| LMArena Document | 1462 | 1425 | Claude Opus 4.5 |
| Neither model has a result on the other 10 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Opus 4.5 | Gemma 4 31B | 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
Gemma 4 31B costs less
Repository review
50K input + 3K output tokens
Gemma 4 31B costs less
Agent loop
200K input + 10K output tokens
Gemma 4 31B 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.5 | Google Gemma 4 31B |
|---|---|---|
| Maker | Anthropic | |
| Weights | No public weights listed | Open weights |
| Released | November 24, 2025 | April 2, 2026 |
| Context window | 200K | 262K |
| Input $/Mtok | $5.00 | $0.20 |
| Output $/Mtok | $25.00 | $0.40 |
| Coding index | 66.8 | 38.3 |
| Independent measurements behind it | 2 | 2 |
| Cost per solved task | $1.37 | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Opus 4.5 better than Gemma 4 31B for coding?
Pick Claude Opus 4.5 for coding: it scores 66.8 on the Vibe Coding Index against 38.3 for Gemma 4 31B. Pick Gemma 4 31B when output tokens cost 62.5x less, or when the context window is larger, 262K against 200K tokens.
Which is cheaper, Claude Opus 4.5 or Gemma 4 31B?
Claude Opus 4.5 costs $5.00 per million input tokens and $25.00 per million output tokens; Gemma 4 31B costs $0.20 and $0.40. Cost per solved task is known for Claude Opus 4.5 only.
Which has the bigger context window, Claude Opus 4.5 or Gemma 4 31B?
Gemma 4 31B, with 262K tokens against 200K.
How many benchmarks is the Claude Opus 4.5 vs Gemma 4 31B comparison based on?
46 benchmarks have a result for both models as of October 21, 2026. Claude Opus 4.5's coding index rests on 2 independent benchmarks and Gemma 4 31B's on 2. Where only one model has a result, the page says so instead of naming a winner.