Enter opens the highlighted result. Esc closes.

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.5Anthropic
Coding
70.7
Overall
67.6
Output $/M
$0.50
20
Gemma 4 31BGoogle
Coding
39.0
Overall
42.1
Output $/M
$0.40
2
vs boards won of 22 shared

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.

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.

Boards won, where both have a result
CategoryClaude Haiku 5.5BarsGemma 4 31BTies
Coding60
Intelligence20
Agentic work30
Reasoning30
Math10
Knowledge10
Web design10
General32
All shared boards202
CodingLike-for-likeSix of these boards feed the Vibe Coding Index60
Coding benchmarks for Claude Haiku 5.5 and Gemma 4 31B
BenchmarkClaude Haiku 5.5Gemma 4 31BLeader
LiveBench coding91.4%49.0%Claude Haiku 5.5
LMArena WebDev15861367Claude Haiku 5.5
AA Coding IndexNot measured43.4Only Gemma 4 31B measured
Terminal-Bench 4 (Vals AI)36.4%Not measuredOnly Claude Haiku 5.5 measured
Vibe Code Bench (Vals AI)90.4%Not measuredOnly Claude Haiku 5.5 measured
Code migration (Vals AI)44.6%Not measuredOnly Claude Haiku 5.5 measured
ProgramBench (Vals AI)2.5%Not measuredOnly Claude Haiku 5.5 measured
IOI (Vals AI)47.3%Not measuredOnly Claude Haiku 5.5 measured
SWE-bench Multimodal (Vals AI)44.0%Not measuredOnly Claude Haiku 5.5 measured
Vibe Code Bench 1-100 (Vals AI)20.4%Not measuredOnly Claude Haiku 5.5 measured
CyberBench (Vals AI)75.5%Not measuredOnly Claude Haiku 5.5 measured
SciCode55.0%45.5%Claude Haiku 5.5
Terminal-Bench Hard (Artificial Analysis run)Not measured36.4%Only Gemma 4 31B measured
FrontierCode46.4%Not measuredOnly Claude Haiku 5.5 measured
FrontierSWE43.8%Not measuredOnly Claude Haiku 5.5 measured
WeirdMLNot measured52.3%Only Gemma 4 31B measured
ALE-BenchNot measured925.5Only Gemma 4 31B measured
LMArena Text: codingNot measured1459Only Gemma 4 31B measured
LMArena Text: software and ITNot measured1463Only Gemma 4 31B measured
LMArena WebDev: React16051359Claude Haiku 5.5
LMArena WebDev: HTML15691380Claude Haiku 5.5
SciCode9.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
Intelligence benchmarks for Claude Haiku 5.5 and Gemma 4 31B
BenchmarkClaude Haiku 5.5Gemma 4 31BLeader
AA Intelligence Index43.414.7Claude Haiku 5.5
Epoch Capabilities Index159.3143.0Claude Haiku 5.5
Agentic workLike-for-likePublic boards, shown as published, kept out of the index30
Agentic work benchmarks for Claude Haiku 5.5 and Gemma 4 31B
BenchmarkClaude Haiku 5.5Gemma 4 31BLeader
AA Agentic IndexNot measured4.2Only Gemma 4 31B measured
LiveBench research81.9%44.4%Claude Haiku 5.5
LiveBench browser80.0%4.0%Claude Haiku 5.5
LiveBench long agentic57.6%13.3%Claude Haiku 5.5
SREBench (Vals AI)5.7%Not measuredOnly Claude Haiku 5.5 measured
Finance Agent (Vals AI)54.1%Not measuredOnly Claude Haiku 5.5 measured
Tax Agent Bench (Vals AI)31.9%Not measuredOnly Claude Haiku 5.5 measured
Legal Research Bench (Vals AI)43.3%Not measuredOnly Claude Haiku 5.5 measured
Harvey's Legal Agent Benchmark (Vals AI)4.2%Not measuredOnly Claude Haiku 5.5 measured
Excel Modeling Benchmark (Vals AI)59.0%Not measuredOnly Claude Haiku 5.5 measured
BioMysteryBench (Vals AI)70.4%Not measuredOnly Claude Haiku 5.5 measured
Terminal-Bench-Science (Vals AI)10.0%Not measuredOnly Claude Haiku 5.5 measured
Vals Science Index38.5%Not measuredOnly Claude Haiku 5.5 measured
τ²-Bench TelecomNot measured65.5%Only Gemma 4 31B measured
APEX-Agents56.1%Not measuredOnly Claude Haiku 5.5 measured
Vending-Bench 2$3,602Not measuredOnly 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
Reasoning benchmarks for Claude Haiku 5.5 and Gemma 4 31B
BenchmarkClaude Haiku 5.5Gemma 4 31BLeader
LiveBench reasoning82.4%68.3%Claude Haiku 5.5
MysteryMechanism (Vals AI)35.1%Not measuredOnly Claude Haiku 5.5 measured
GPQA Diamond (Artificial Analysis run)Not measured85.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-AGI89.0%Not measuredOnly Claude Haiku 5.5 measured
ARC-AGI-261.3%Not measuredOnly Claude Haiku 5.5 measured
Chess puzzles55.0%Not measuredOnly Claude Haiku 5.5 measured
Mystery game puzzles30.0%Not measuredOnly Claude Haiku 5.5 measured
EBR-bench43.8%Not measuredOnly Claude Haiku 5.5 measured
LMArena Text: hard promptsNot measured1448Only Gemma 4 31B measured
LMArena Text: expertNot measured1464Only Gemma 4 31B measured
LMArena Text: hard prompts in EnglishNot measured1456Only Gemma 4 31B measured
LMArena Vision: diagramsNot measured1283Only Gemma 4 31B measured
LMArena Vision: homeworkNot measured1310Only Gemma 4 31B measured
Kagi LLM BenchmarkNot measured63.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
Math benchmarks for Claude Haiku 5.5 and Gemma 4 31B
BenchmarkClaude Haiku 5.5Gemma 4 31BLeader
OTIS Mock AIME98.9%73.3%Claude Haiku 5.5
FrontierMath, tiers 1 to 375.1%Not measuredOnly Claude Haiku 5.5 measured
FrontierMath, tier 446.3%Not measuredOnly Claude Haiku 5.5 measured
ProofBench89.0%Not measuredOnly Claude Haiku 5.5 measured
LMArena Text: mathNot measured1463Only Gemma 4 31B measured
LMArena Text: mathematical workNot measured1465Only 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
Knowledge benchmarks for Claude Haiku 5.5 and Gemma 4 31B
BenchmarkClaude Haiku 5.5Gemma 4 31BLeader
CaseLaw (Vals AI)Not measured52.6%Only Gemma 4 31B measured
MortgageTax (Vals AI)Not measured61.4%Only Gemma 4 31B measured
MedCode (Vals AI)51.5%Not measuredOnly Claude Haiku 5.5 measured
SimpleQA Verified23.8%10.4%Claude Haiku 5.5
LMArena Text: scienceNot measured1457Only Gemma 4 31B measured
LMArena Text: medicine and healthcareNot measured1451Only Gemma 4 31B measured
LMArena Text: legal and governmentNot measured1438Only Gemma 4 31B measured
LMArena Text: business and financeNot measured1430Only Gemma 4 31B measured
FACTS Benchmark SuiteNot measured45.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
Web design benchmarks for Claude Haiku 5.5 and Gemma 4 31B
BenchmarkClaude Haiku 5.5Gemma 4 31BLeader
Design Arena: websites1262Not measuredOnly Claude Haiku 5.5 measured
Design Arena: UI components1291Not measuredOnly Claude Haiku 5.5 measured
Design Arena: game dev1313Not measuredOnly Claude Haiku 5.5 measured
Design Arena: data viz1294Not measuredOnly Claude Haiku 5.5 measured
Design Arena: 3D1342Not measuredOnly Claude Haiku 5.5 measured
Design Arena: all code categories1278Not measuredOnly Claude Haiku 5.5 measured
LiveBench design83.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
General benchmarks for Claude Haiku 5.5 and Gemma 4 31B
BenchmarkClaude Haiku 5.5Gemma 4 31BLeader
Vals Index58.7%Not measuredOnly Claude Haiku 5.5 measured
LiveBench data analysis53.1%53.3%Gemma 4 31B
Public Benefits Bench (Vals AI)63.2%Not measuredOnly Claude Haiku 5.5 measured
SAGE (Vals AI)45.8%55.0%Gemma 4 31B
MedScribe (Vals AI)89.5%Not measuredOnly Claude Haiku 5.5 measured
IFBenchNot measured75.6%Only Gemma 4 31B measured
Long context reasoning (AA-LCR)82.7%69.7%Claude Haiku 5.5
DTBench95.0%82.7%Claude Haiku 5.5
LMCA51.1%39.3%Claude Haiku 5.5
Surface Evolver BenchNot measured30.6%Only Gemma 4 31B measured
Furniture assembly47.5%Not measuredOnly Claude Haiku 5.5 measured
LMArena TextNot measured1443Only Gemma 4 31B measured
LMArena Text: instruction followingNot measured1433Only Gemma 4 31B measured
LMArena Text: creative writingNot measured1417Only Gemma 4 31B measured
LMArena VisionNot measured1276Only Gemma 4 31B measured
LMArena Text: EnglishNot measured1451Only Gemma 4 31B measured
LMArena Text: non-EnglishNot measured1430Only Gemma 4 31B measured
LMArena Text: ChineseNot measured1475Only Gemma 4 31B measured
LMArena Text: FrenchNot measured1436Only Gemma 4 31B measured
LMArena Text: SpanishNot measured1442Only Gemma 4 31B measured
LMArena Text: RussianNot measured1460Only Gemma 4 31B measured
LMArena Text: PolishNot measured1433Only Gemma 4 31B measured
LMArena Text: multi-turnNot measured1452Only Gemma 4 31B measured
LMArena Text: longer queriesNot measured1446Only Gemma 4 31B measured
LMArena Text: writing and languageNot measured1432Only Gemma 4 31B measured
LMArena Text: entertainment and mediaNot measured1405Only Gemma 4 31B measured
LMArena Vision: EnglishNot measured1271Only Gemma 4 31B measured
LMArena Vision: ChineseNot measured1326Only Gemma 4 31B measured
LMArena Vision: reading textNot measured1282Only Gemma 4 31B measured
LMArena Vision: humorNot measured1280Only Gemma 4 31B measured
LMArena Vision: captioningNot measured1218Only Gemma 4 31B measured
LMArena Vision: recognizing thingsNot measured1226Only Gemma 4 31B measured
LMArena Vision: creative writingNot measured1285Only Gemma 4 31B measured
LMArena DocumentNot measured1425Only 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
Image generation benchmarks for Claude Haiku 5.5 and Gemma 4 31B
BenchmarkClaude Haiku 5.5Gemma 4 31BLeader
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

Claude Haiku 5.5$0.0003Fits in one request
Gemma 4 31B$0.0003Fits in one request

Gemma 4 31B costs less

Repository review

50K input + 3K output tokens

Claude Haiku 5.5$0.0065Fits in one request
Gemma 4 31B$0.0082Fits in one request

Claude Haiku 5.5 costs less

Agent loop

200K input + 10K output tokens

Claude Haiku 5.5$0.025Fits in one request
Gemma 4 31B$0.032Fits in one request

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.

Specifications of Claude Haiku 5.5 and Gemma 4 31B
SpecificationAnthropic Claude Haiku 5.5Google Gemma 4 31B
MakerAnthropicGoogle
WeightsNo public weights listedOpen weights
ReleasedOctober 7, 2026April 2, 2026
Context window1M262K
Input $/Mtok$0.10$0.14
Output $/Mtok$0.50$0.40
Coding index70.739.0
Independent measurements behind it52
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter 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.

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/claude-haiku-5-5-vs-gemma-4-31b-it" title="Claude Haiku 5.5 vs Gemma 4 31B, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/claude-haiku-5-5-vs-gemma-4-31b-it">LLMBenchmark.ai, Claude Haiku 5.5 vs Gemma 4 31B</a></p>