Claude Haiku 5.5 vs Gemma 4 31B
Claude Haiku 5.5 leads Gemma 4 31B on coding, 70.7 to 39.0 on the Vibe Coding Index, and Gemma 4 31B costs 1.3x less per output token ($0.40 vs $0.50 per million). Updated October 22, 2026; 22 benchmarks have a result for both.
Claude Haiku 5.5 or Gemma 4 31B: which to pick
Pick Claude Haiku 5.5 for coding: it scores 70.7 on the Vibe Coding Index against 39.0 for Gemma 4 31B.
Pick Gemma 4 31B for output tokens 1.3x cheaper ($0.40 vs $0.50 per million) and work measured by LiveBench data analysis or SAGE (Vals AI), where it leads.
- Shared results
- 22
- Claude Haiku 5.5 only
- 41
- Gemma 4 31B only
- 49
- 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 Haiku 5.5
Claude Haiku 5.5 scores 70.7 against 39.0.
5 and 2 benchmarks behind the scores
Intelligence
AA Intelligence Index
Claude Haiku 5.5
Claude Haiku 5.5 leads, 43.4 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
Web design
Design Arena: websites
No call
Only Claude Haiku 5.5 has a Design Arena: websites result, 1262.
Directional only
General
Vals Index
No call
Only Claude Haiku 5.5 has a Vals Index result, 58.7%.
Directional only
Long documents
Listed context window
Claude Haiku 5.5
Claude Haiku 5.5 takes 1M tokens against 262K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemma 4 31B
Claude Haiku 5.5 $0.0003, Gemma 4 31B $0.0003 per turn.
List prices
At a glance
- Coding index
- Claude Haiku 5.5 70.7 from 5 benchmarks, Gemma 4 31B 39.0 from 2 benchmarks.
- Widest category
- Agentic work, 52.6 points apart on average over 3 shared benchmarks.
- Widest single gap
- LiveBench browser: Claude Haiku 5.5 80.0% against Gemma 4 31B 4.0%, 76.0 points apart on a 0 to 100 scale.
- Output price
- Claude Haiku 5.5 $0.50 against Gemma 4 31B $0.40 per million output tokens, 1.3x apart.
- Context window
- Claude Haiku 5.5 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 Haiku 5.5 | Bars | Gemma 4 31B | Ties |
|---|---|---|---|---|
| Coding | 6 | 0 | ||
| Intelligence | 2 | 0 | ||
| Agentic work | 3 | 0 | ||
| Reasoning | 3 | 0 | ||
| Math | 1 | 0 | ||
| Knowledge | 1 | 0 | ||
| Web design | 1 | 0 | ||
| General | 3 | 2 | ||
| All shared boards | 20 | 2 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index60
| Benchmark | Claude Haiku 5.5 | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench coding | 91.4% | 49.0% | Claude Haiku 5.5 |
| LMArena WebDev | 1586 | 1367 | Claude Haiku 5.5 |
| AA Coding Index | Not measured | 43.4 | Only Gemma 4 31B measured |
| Terminal-Bench 4 (Vals AI) | 36.4% | Not measured | Only Claude Haiku 5.5 measured |
| Vibe Code Bench (Vals AI) | 90.4% | Not measured | Only Claude Haiku 5.5 measured |
| Code migration (Vals AI) | 44.6% | Not measured | Only Claude Haiku 5.5 measured |
| ProgramBench (Vals AI) | 2.5% | Not measured | Only Claude Haiku 5.5 measured |
| IOI (Vals AI) | 47.3% | Not measured | Only Claude Haiku 5.5 measured |
| SWE-bench Multimodal (Vals AI) | 44.0% | Not measured | Only Claude Haiku 5.5 measured |
| Vibe Code Bench 1-100 (Vals AI) | 20.4% | Not measured | Only Claude Haiku 5.5 measured |
| CyberBench (Vals AI) | 75.5% | Not measured | Only Claude Haiku 5.5 measured |
| SciCode | 55.0% | 45.5% | Claude Haiku 5.5 |
| Terminal-Bench Hard (Artificial Analysis run) | Not measured | 36.4% | Only Gemma 4 31B measured |
| FrontierCode | 46.4% | Not measured | Only Claude Haiku 5.5 measured |
| FrontierSWE | 43.8% | Not measured | Only Claude Haiku 5.5 measured |
| WeirdML | Not measured | 52.3% | Only Gemma 4 31B measured |
| ALE-Bench | Not measured | 925.5 | Only Gemma 4 31B measured |
| LMArena Text: coding | Not measured | 1459 | Only Gemma 4 31B measured |
| LMArena Text: software and IT | Not measured | 1463 | Only Gemma 4 31B measured |
| LMArena WebDev: React | 1605 | 1359 | Claude Haiku 5.5 |
| LMArena WebDev: HTML | 1569 | 1380 | Claude Haiku 5.5 |
| SciCode | 9.2% | 8.9% | Claude Haiku 5.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 Haiku 5.5 | Gemma 4 31B | Leader |
|---|---|---|---|
| AA Intelligence Index | 43.4 | 14.7 | Claude Haiku 5.5 |
| Epoch Capabilities Index | 159.3 | 143.0 | Claude Haiku 5.5 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index30
| Benchmark | Claude Haiku 5.5 | Gemma 4 31B | Leader |
|---|---|---|---|
| AA Agentic Index | Not measured | 4.2 | Only Gemma 4 31B measured |
| LiveBench research | 81.9% | 44.4% | Claude Haiku 5.5 |
| LiveBench browser | 80.0% | 4.0% | Claude Haiku 5.5 |
| LiveBench long agentic | 57.6% | 13.3% | Claude Haiku 5.5 |
| SREBench (Vals AI) | 5.7% | Not measured | Only Claude Haiku 5.5 measured |
| Finance Agent (Vals AI) | 54.1% | Not measured | Only Claude Haiku 5.5 measured |
| Tax Agent Bench (Vals AI) | 31.9% | Not measured | Only Claude Haiku 5.5 measured |
| Legal Research Bench (Vals AI) | 43.3% | Not measured | Only Claude Haiku 5.5 measured |
| Harvey's Legal Agent Benchmark (Vals AI) | 4.2% | Not measured | Only Claude Haiku 5.5 measured |
| Excel Modeling Benchmark (Vals AI) | 59.0% | Not measured | Only Claude Haiku 5.5 measured |
| BioMysteryBench (Vals AI) | 70.4% | Not measured | Only Claude Haiku 5.5 measured |
| Terminal-Bench-Science (Vals AI) | 10.0% | Not measured | Only Claude Haiku 5.5 measured |
| Vals Science Index | 38.5% | Not measured | Only Claude Haiku 5.5 measured |
| τ²-Bench Telecom | Not measured | 65.5% | Only Gemma 4 31B measured |
| APEX-Agents | 56.1% | Not measured | Only Claude Haiku 5.5 measured |
| Vending-Bench 2 | $3,602 | Not measured | Only Claude Haiku 5.5 measured |
| Neither model has a result on the other 25 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index30
| Benchmark | Claude Haiku 5.5 | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench reasoning | 82.4% | 68.3% | Claude Haiku 5.5 |
| MysteryMechanism (Vals AI) | 35.1% | Not measured | Only Claude Haiku 5.5 measured |
| GPQA Diamond (Artificial Analysis run) | Not measured | 85.7% | Only Gemma 4 31B measured |
| Humanity's Last Exam (Artificial Analysis run) | 44.4% | 23.6% | Claude Haiku 5.5 |
| GPQA Diamond (Epoch AI run) | 89.6% | 75.8% | Claude Haiku 5.5 |
| ARC-AGI | 89.0% | Not measured | Only Claude Haiku 5.5 measured |
| ARC-AGI-2 | 61.3% | Not measured | Only Claude Haiku 5.5 measured |
| Chess puzzles | 55.0% | Not measured | Only Claude Haiku 5.5 measured |
| Mystery game puzzles | 30.0% | Not measured | Only Claude Haiku 5.5 measured |
| EBR-bench | 43.8% | Not measured | Only Claude Haiku 5.5 measured |
| LMArena Text: hard prompts | Not measured | 1448 | Only Gemma 4 31B measured |
| LMArena Text: expert | Not measured | 1464 | Only Gemma 4 31B measured |
| LMArena Text: hard prompts in English | Not measured | 1456 | Only Gemma 4 31B measured |
| LMArena Vision: diagrams | Not measured | 1283 | Only Gemma 4 31B measured |
| LMArena Vision: homework | Not measured | 1310 | Only Gemma 4 31B measured |
| Kagi LLM Benchmark | Not measured | 63.5% | Only Gemma 4 31B measured |
| Neither model has a result on the other 6 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Claude Haiku 5.5 | Gemma 4 31B | Leader |
|---|---|---|---|
| OTIS Mock AIME | 98.9% | 73.3% | Claude Haiku 5.5 |
| FrontierMath, tiers 1 to 3 | 75.1% | Not measured | Only Claude Haiku 5.5 measured |
| FrontierMath, tier 4 | 46.3% | Not measured | Only Claude Haiku 5.5 measured |
| ProofBench | 89.0% | Not measured | Only Claude Haiku 5.5 measured |
| LMArena Text: math | Not measured | 1463 | Only Gemma 4 31B measured |
| LMArena Text: mathematical work | Not measured | 1465 | Only Gemma 4 31B measured |
| Neither model has a result on the other 7 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Claude Haiku 5.5 | Gemma 4 31B | Leader |
|---|---|---|---|
| CaseLaw (Vals AI) | Not measured | 52.6% | Only Gemma 4 31B measured |
| MortgageTax (Vals AI) | Not measured | 61.4% | Only Gemma 4 31B measured |
| MedCode (Vals AI) | 51.5% | Not measured | Only Claude Haiku 5.5 measured |
| SimpleQA Verified | 23.8% | 10.4% | Claude Haiku 5.5 |
| LMArena Text: science | Not measured | 1457 | Only Gemma 4 31B measured |
| LMArena Text: medicine and healthcare | Not measured | 1451 | Only Gemma 4 31B measured |
| LMArena Text: legal and government | Not measured | 1438 | Only Gemma 4 31B measured |
| LMArena Text: business and finance | Not measured | 1430 | Only Gemma 4 31B measured |
| FACTS Benchmark Suite | Not measured | 45.3% | Only Gemma 4 31B measured |
| Neither model has a result on the other 9 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Claude Haiku 5.5 | Gemma 4 31B | Leader |
|---|---|---|---|
| Design Arena: websites | 1262 | Not measured | Only Claude Haiku 5.5 measured |
| Design Arena: UI components | 1291 | Not measured | Only Claude Haiku 5.5 measured |
| Design Arena: game dev | 1313 | Not measured | Only Claude Haiku 5.5 measured |
| Design Arena: data viz | 1294 | Not measured | Only Claude Haiku 5.5 measured |
| Design Arena: 3D | 1342 | Not measured | Only Claude Haiku 5.5 measured |
| Design Arena: all code categories | 1278 | Not measured | Only Claude Haiku 5.5 measured |
| LiveBench design | 83.1% | 58.4% | Claude Haiku 5.5 |
| Neither model has a result on the other 2 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index32
| Benchmark | Claude Haiku 5.5 | Gemma 4 31B | Leader |
|---|---|---|---|
| Vals Index | 58.7% | Not measured | Only Claude Haiku 5.5 measured |
| LiveBench data analysis | 53.1% | 53.3% | Gemma 4 31B |
| Public Benefits Bench (Vals AI) | 63.2% | Not measured | Only Claude Haiku 5.5 measured |
| SAGE (Vals AI) | 45.8% | 55.0% | Gemma 4 31B |
| MedScribe (Vals AI) | 89.5% | Not measured | Only Claude Haiku 5.5 measured |
| IFBench | Not measured | 75.6% | Only Gemma 4 31B measured |
| Long context reasoning (AA-LCR) | 82.7% | 69.7% | Claude Haiku 5.5 |
| DTBench | 95.0% | 82.7% | Claude Haiku 5.5 |
| LMCA | 51.1% | 39.3% | Claude Haiku 5.5 |
| Surface Evolver Bench | Not measured | 30.6% | Only Gemma 4 31B measured |
| Furniture assembly | 47.5% | Not measured | Only Claude Haiku 5.5 measured |
| LMArena Text | Not measured | 1443 | Only Gemma 4 31B measured |
| LMArena Text: instruction following | Not measured | 1433 | Only Gemma 4 31B measured |
| LMArena Text: creative writing | Not measured | 1417 | Only Gemma 4 31B measured |
| LMArena Vision | Not measured | 1276 | Only Gemma 4 31B measured |
| LMArena Text: English | Not measured | 1451 | Only Gemma 4 31B measured |
| LMArena Text: non-English | Not measured | 1430 | Only Gemma 4 31B measured |
| LMArena Text: Chinese | Not measured | 1475 | Only Gemma 4 31B measured |
| LMArena Text: French | Not measured | 1436 | Only Gemma 4 31B measured |
| LMArena Text: Spanish | Not measured | 1442 | Only Gemma 4 31B measured |
| LMArena Text: Russian | Not measured | 1460 | Only Gemma 4 31B measured |
| LMArena Text: Polish | Not measured | 1433 | Only Gemma 4 31B measured |
| LMArena Text: multi-turn | Not measured | 1452 | Only Gemma 4 31B measured |
| LMArena Text: longer queries | Not measured | 1446 | Only Gemma 4 31B measured |
| LMArena Text: writing and language | Not measured | 1432 | Only Gemma 4 31B measured |
| LMArena Text: entertainment and media | Not measured | 1405 | Only Gemma 4 31B measured |
| 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 | Not measured | 1425 | Only Gemma 4 31B measured |
| Neither model has a result on the other 12 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Haiku 5.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
Claude Haiku 5.5 costs less
Agent loop
200K input + 10K output tokens
Claude Haiku 5.5 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 Haiku 5.5 | Google Gemma 4 31B |
|---|---|---|
| Maker | Anthropic | |
| Weights | No public weights listed | Open weights |
| Released | October 7, 2026 | April 2, 2026 |
| Context window | 1M | 262K |
| Input $/Mtok | $0.10 | $0.14 |
| Output $/Mtok | $0.50 | $0.40 |
| Coding index | 70.7 | 39.0 |
| Independent measurements behind it | 5 | 2 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Haiku 5.5 better than Gemma 4 31B for coding?
Pick Claude Haiku 5.5 for coding: it scores 70.7 on the Vibe Coding Index against 39.0 for Gemma 4 31B. Pick Gemma 4 31B for output tokens 1.3x cheaper ($0.40 vs $0.50 per million) and work measured by LiveBench data analysis or SAGE (Vals AI), where it leads.
Which is cheaper, Claude Haiku 5.5 or Gemma 4 31B?
Claude Haiku 5.5 costs $0.10 per million input tokens and $0.50 per million output tokens; Gemma 4 31B costs $0.14 and $0.40. Cost per solved task is known for neither of them.
Which has the bigger context window, Claude Haiku 5.5 or Gemma 4 31B?
Claude Haiku 5.5, with 1M tokens against 262K.
How many benchmarks is the Claude Haiku 5.5 vs Gemma 4 31B comparison based on?
22 benchmarks have a result for both models as of October 22, 2026. Claude Haiku 5.5's coding index rests on 5 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.