Claude Opus 4.6 vs Gemma 4 31B
Claude Opus 4.6 leads Gemma 4 31B on coding, 57.2 to 39.0 on the Vibe Coding Index, and Gemma 4 31B costs 62.5x less per output token ($0.40 vs $25.00 per million). Updated October 22, 2026; 57 benchmarks have a result for both.
Claude Opus 4.6 or Gemma 4 31B: which to pick
Pick Claude Opus 4.6 for coding: it scores 57.2 on the Vibe Coding Index against 39.0 for Gemma 4 31B.
Pick Gemma 4 31B for output tokens 62.5x cheaper ($0.40 vs $25.00 per million) and work measured by FACTS Benchmark Suite or SAGE (Vals AI), where it leads.
- Shared results
- 57
- Claude Opus 4.6 only
- 53
- Gemma 4 31B only
- 14
- Like-for-like categories
- 7 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.6
Claude Opus 4.6 scores 57.2 against 39.0.
4 and 2 benchmarks behind the scores
Intelligence
AA Intelligence Index
Claude Opus 4.6
Claude Opus 4.6 leads, 31.9 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.6 has a GPQA Diamond result, 89.7%.
Directional only
Math
AIME
No call
Only Claude Opus 4.6 has a AIME result, 95.6%.
Directional only
Knowledge
MMLU Pro
No call
Only Claude Opus 4.6 has a MMLU Pro result, 89.1%.
Directional only
Web design
Design Arena: websites
No call
Only Claude Opus 4.6 has a Design Arena: websites result, 1291.
Directional only
Long documents
Listed context window
Claude Opus 4.6
Claude Opus 4.6 takes 1M tokens against 262K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemma 4 31B
Claude Opus 4.6 $0.018, Gemma 4 31B $0.0003 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only Claude Opus 4.6 has the number, $1.56.
Directional only
At a glance
- Coding index
- Claude Opus 4.6 57.2 from 4 benchmarks, Gemma 4 31B 39.0 from 2 benchmarks.
- Widest category
- Agentic work, 26.6 points apart on average over 1 shared benchmark.
- Widest single gap
- SimpleQA Verified: Claude Opus 4.6 47.0% against Gemma 4 31B 10.4%, 36.6 points apart on a 0 to 100 scale.
- Output price
- Claude Opus 4.6 $25.00 against Gemma 4 31B $0.40 per million output tokens, 62.5x apart.
- Context window
- Claude Opus 4.6 takes 1M 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.6 | Bars | Gemma 4 31B | Ties |
|---|---|---|---|---|
| Coding | 7 | 0 | ||
| Intelligence | 2 | 0 | ||
| Agentic work | 1 | 0 | ||
| Reasoning | 9 | 0 | ||
| Math | 3 | 0 | ||
| Knowledge | 7 | 1 | ||
| General | 25 | 2 | ||
| All shared boards | 54 | 3 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index70
| Benchmark | Claude Opus 4.6 | Gemma 4 31B | Leader |
|---|---|---|---|
| SWE-bench Verified | 75.6% | Not measured | Only Claude Opus 4.6 measured |
| SWE-bench Multilingual | 72.0% | Not measured | Only Claude Opus 4.6 measured |
| LiveBench coding | Not measured | 49.0% | Only Gemma 4 31B measured |
| LMArena WebDev | 1547 | 1367 | Claude Opus 4.6 |
| AA Coding Index | Not measured | 43.4 | Only Gemma 4 31B measured |
| LiveCodeBench (Vals AI) | 84.7% | Not measured | Only Claude Opus 4.6 measured |
| SWE-bench Verified (Vals AI) | 78.2% | Not measured | Only Claude Opus 4.6 measured |
| Vibe Code Bench (Vals AI) | 57.6% | Not measured | Only Claude Opus 4.6 measured |
| SciCode | Not measured | 45.5% | Only Gemma 4 31B measured |
| Terminal-Bench Hard (Artificial Analysis run) | 48.5% | 36.4% | Claude Opus 4.6 |
| Terminal-Bench | 79.8% | Not measured | Only Claude Opus 4.6 measured |
| FrontierCode | 26.6% | Not measured | Only Claude Opus 4.6 measured |
| GSO-Bench | 41.2% | Not measured | Only Claude Opus 4.6 measured |
| WeirdML | 78.0% | 52.3% | Claude Opus 4.6 |
| Cybench | 93.0% | Not measured | Only Claude Opus 4.6 measured |
| ALE-Bench | Not measured | 925.5 | Only Gemma 4 31B measured |
| LMArena Text: coding | 1534 | 1459 | Claude Opus 4.6 |
| LMArena Text: software and IT | 1527 | 1463 | Claude Opus 4.6 |
| LMArena WebDev: React | 1539 | 1359 | Claude Opus 4.6 |
| LMArena WebDev: HTML | 1559 | 1380 | Claude Opus 4.6 |
| LMArena WebDev: from an image | 1543 | Not measured | Only Claude Opus 4.6 measured |
| SciCode | Not measured | 8.9% | Only Gemma 4 31B measured |
| 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.6 | Gemma 4 31B | Leader |
|---|---|---|---|
| AA Intelligence Index | 31.9 | 14.7 | Claude Opus 4.6 |
| Epoch Capabilities Index | 155.7 | 143.0 | Claude Opus 4.6 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Claude Opus 4.6 | Gemma 4 31B | Leader |
|---|---|---|---|
| AA Agentic Index | Not measured | 4.2 | Only Gemma 4 31B measured |
| Design Arena: agents building web apps | 1206 | Not measured | Only Claude Opus 4.6 measured |
| Design Arena: agents building full-stack apps | 1220 | Not measured | Only Claude Opus 4.6 measured |
| Design Arena: agents building mobile apps | 1207 | Not measured | Only Claude Opus 4.6 measured |
| Design Arena: agents building Android apps | 1197 | Not measured | Only Claude Opus 4.6 measured |
| Design Arena: agents building games | 1212 | Not measured | Only Claude Opus 4.6 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 | 92.1% | 65.5% | Claude Opus 4.6 |
| APEX-Agents | 46.3% | Not measured | Only Claude Opus 4.6 measured |
| METR time horizons | 78.9% | Not measured | Only Claude Opus 4.6 measured |
| Remote Labor Index | 4.2% | Not measured | Only Claude Opus 4.6 measured |
| DeepResearch Bench | 55.3% | Not measured | Only Claude Opus 4.6 measured |
| Vending-Bench 2 | $8,018 | Not measured | Only Claude Opus 4.6 measured |
| Neither model has a result on the other 26 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index90
| Benchmark | Claude Opus 4.6 | Gemma 4 31B | Leader |
|---|---|---|---|
| GPQA Diamond | 89.7% | Not measured | Only Claude Opus 4.6 measured |
| LiveBench reasoning | Not measured | 68.3% | Only Gemma 4 31B measured |
| MMMU Pro (Vals AI) | 83.9% | Not measured | Only Claude Opus 4.6 measured |
| GPQA Diamond (Artificial Analysis run) | 89.6% | 85.7% | Claude Opus 4.6 |
| Humanity's Last Exam (Artificial Analysis run) | 39.9% | 23.6% | Claude Opus 4.6 |
| GPQA Diamond (Epoch AI run) | 90.5% | 75.8% | Claude Opus 4.6 |
| ARC-AGI | 94.0% | Not measured | Only Claude Opus 4.6 measured |
| ARC-AGI-2 | 69.2% | Not measured | Only Claude Opus 4.6 measured |
| SimpleBench | 67.6% | Not measured | Only Claude Opus 4.6 measured |
| Chess puzzles | 21.0% | Not measured | Only Claude Opus 4.6 measured |
| Mystery game puzzles | 25.0% | Not measured | Only Claude Opus 4.6 measured |
| EBR-bench | 12.7% | Not measured | Only Claude Opus 4.6 measured |
| LMArena Text: hard prompts | 1525 | 1448 | Claude Opus 4.6 |
| LMArena Text: expert | 1544 | 1464 | Claude Opus 4.6 |
| LMArena Text: hard prompts in English | 1530 | 1456 | Claude Opus 4.6 |
| LMArena Vision: diagrams | 1340 | 1283 | Claude Opus 4.6 |
| LMArena Vision: homework | 1337 | 1310 | Claude Opus 4.6 |
| Kagi LLM Benchmark | 83.6% | 63.5% | Claude Opus 4.6 |
| Neither model has a result on the other 4 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index30
| Benchmark | Claude Opus 4.6 | Gemma 4 31B | Leader |
|---|---|---|---|
| AIME | 95.6% | Not measured | Only Claude Opus 4.6 measured |
| OTIS Mock AIME | 94.4% | 73.3% | Claude Opus 4.6 |
| FrontierMath, tiers 1 to 3 | 66.0% | Not measured | Only Claude Opus 4.6 measured |
| FrontierMath, tier 4 | 26.8% | Not measured | Only Claude Opus 4.6 measured |
| ProofBench | 50.0% | Not measured | Only Claude Opus 4.6 measured |
| LMArena Text: math | 1518 | 1463 | Claude Opus 4.6 |
| LMArena Text: mathematical work | 1525 | 1465 | Claude Opus 4.6 |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index71
| Benchmark | Claude Opus 4.6 | Gemma 4 31B | Leader |
|---|---|---|---|
| MMLU Pro | 89.1% | Not measured | Only Claude Opus 4.6 measured |
| LegalBench (Vals AI) | 85.3% | Not measured | Only Claude Opus 4.6 measured |
| CaseLaw (Vals AI) | 62.1% | 52.6% | Claude Opus 4.6 |
| CorpFin (Vals AI) | 67.0% | Not measured | Only Claude Opus 4.6 measured |
| TaxEval (Vals AI) | 76.0% | Not measured | Only Claude Opus 4.6 measured |
| MortgageTax (Vals AI) | 68.5% | 61.4% | Claude Opus 4.6 |
| MedQA (Vals AI) | 95.4% | Not measured | Only Claude Opus 4.6 measured |
| MedCode (Vals AI) | 49.1% | Not measured | Only Claude Opus 4.6 measured |
| SimpleQA Verified | 47.0% | 10.4% | Claude Opus 4.6 |
| LMArena Text: science | 1519 | 1457 | Claude Opus 4.6 |
| LMArena Text: medicine and healthcare | 1504 | 1451 | Claude Opus 4.6 |
| LMArena Text: legal and government | 1512 | 1438 | Claude Opus 4.6 |
| LMArena Text: business and finance | 1497 | 1430 | Claude Opus 4.6 |
| FACTS Benchmark Suite | 41.5% | 45.3% | Gemma 4 31B |
| Neither model has a result on the other 4 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
| Benchmark | Claude Opus 4.6 | Gemma 4 31B | Leader |
|---|---|---|---|
| Design Arena: websites | 1291 | Not measured | Only Claude Opus 4.6 measured |
| Design Arena: UI components | 1281 | Not measured | Only Claude Opus 4.6 measured |
| Design Arena: game dev | 1277 | Not measured | Only Claude Opus 4.6 measured |
| Design Arena: data viz | 1279 | Not measured | Only Claude Opus 4.6 measured |
| Design Arena: 3D | 1273 | Not measured | Only Claude Opus 4.6 measured |
| Design Arena: all code categories | 1288 | Not measured | Only Claude Opus 4.6 measured |
| Design Arena: SVG | 1227 | Not measured | Only Claude Opus 4.6 measured |
| Design Arena: ASCII art | 1255 | Not measured | Only Claude Opus 4.6 measured |
| LiveBench design | Not measured | 58.4% | Only Gemma 4 31B measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index252
| Benchmark | Claude Opus 4.6 | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench data analysis | Not measured | 53.3% | Only Gemma 4 31B measured |
| SAGE (Vals AI) | 51.6% | 55.0% | Gemma 4 31B |
| MedScribe (Vals AI) | 86.7% | Not measured | Only Claude Opus 4.6 measured |
| IFBench | 53.1% | 75.6% | Gemma 4 31B |
| Long context reasoning (AA-LCR) | 78.0% | 69.7% | Claude Opus 4.6 |
| DTBench | 91.2% | 82.7% | Claude Opus 4.6 |
| LMCA | 55.8% | 39.3% | Claude Opus 4.6 |
| CL-bench | 20.7% | Not measured | Only Claude Opus 4.6 measured |
| Surface Evolver Bench | Not measured | 30.6% | Only Gemma 4 31B measured |
| Furniture assembly | 28.3% | Not measured | Only Claude Opus 4.6 measured |
| CL-bench Life | 17.0% | Not measured | Only Claude Opus 4.6 measured |
| LMArena Text | 1501 | 1443 | Claude Opus 4.6 |
| LMArena Text: instruction following | 1521 | 1433 | Claude Opus 4.6 |
| LMArena Text: creative writing | 1505 | 1417 | Claude Opus 4.6 |
| LMArena Vision | 1316 | 1276 | Claude Opus 4.6 |
| LMArena Text: English | 1511 | 1451 | Claude Opus 4.6 |
| LMArena Text: non-English | 1488 | 1430 | Claude Opus 4.6 |
| LMArena Text: Chinese | 1551 | 1475 | Claude Opus 4.6 |
| LMArena Text: German | 1500 | Not measured | Only Claude Opus 4.6 measured |
| LMArena Text: Japanese | 1488 | Not measured | Only Claude Opus 4.6 measured |
| LMArena Text: Korean | 1464 | Not measured | Only Claude Opus 4.6 measured |
| LMArena Text: French | 1512 | 1436 | Claude Opus 4.6 |
| LMArena Text: Spanish | 1510 | 1442 | Claude Opus 4.6 |
| LMArena Text: Russian | 1497 | 1460 | Claude Opus 4.6 |
| LMArena Text: Polish | 1499 | 1433 | Claude Opus 4.6 |
| LMArena Text: multi-turn | 1511 | 1452 | Claude Opus 4.6 |
| LMArena Text: longer queries | 1518 | 1446 | Claude Opus 4.6 |
| LMArena Text: writing and language | 1502 | 1432 | Claude Opus 4.6 |
| LMArena Text: entertainment and media | 1492 | 1405 | Claude Opus 4.6 |
| LMArena Vision: English | 1324 | 1271 | Claude Opus 4.6 |
| LMArena Vision: Chinese | 1370 | 1326 | Claude Opus 4.6 |
| LMArena Vision: reading text | 1326 | 1282 | Claude Opus 4.6 |
| LMArena Vision: humor | 1314 | 1280 | Claude Opus 4.6 |
| LMArena Vision: captioning | Not measured | 1218 | Only Gemma 4 31B measured |
| LMArena Vision: recognizing things | 1274 | 1226 | Claude Opus 4.6 |
| LMArena Vision: creative writing | 1331 | 1285 | Claude Opus 4.6 |
| LMArena Document | 1507 | 1425 | Claude Opus 4.6 |
| Neither model has a result on the other 9 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Opus 4.6 | 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.6 | Google Gemma 4 31B |
|---|---|---|
| Maker | Anthropic | |
| Weights | No public weights listed | Open weights |
| Released | February 4, 2026 | April 2, 2026 |
| Context window | 1M | 262K |
| Input $/Mtok | $5.00 | $0.14 |
| Output $/Mtok | $25.00 | $0.40 |
| Coding index | 57.2 | 39.0 |
| Independent measurements behind it | 4 | 2 |
| Cost per solved task | $1.56 | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Opus 4.6 better than Gemma 4 31B for coding?
Pick Claude Opus 4.6 for coding: it scores 57.2 on the Vibe Coding Index against 39.0 for Gemma 4 31B. Pick Gemma 4 31B for output tokens 62.5x cheaper ($0.40 vs $25.00 per million) and work measured by FACTS Benchmark Suite or SAGE (Vals AI), where it leads.
Which is cheaper, Claude Opus 4.6 or Gemma 4 31B?
Claude Opus 4.6 costs $5.00 per million input tokens and $25.00 per million output tokens; Gemma 4 31B costs $0.14 and $0.40. Cost per solved task is known for Claude Opus 4.6 only.
Which has the bigger context window, Claude Opus 4.6 or Gemma 4 31B?
Claude Opus 4.6, with 1M tokens against 262K.
How many benchmarks is the Claude Opus 4.6 vs Gemma 4 31B comparison based on?
57 benchmarks have a result for both models as of October 22, 2026. Claude Opus 4.6's coding index rests on 4 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.