Enter opens the highlighted result. Esc closes.

Claude Fable 5.1 vs Gemma 4 31B

Claude Fable 5.1 leads Gemma 4 31B on coding, 84.2 to 39.0 on the Vibe Coding Index, and Gemma 4 31B costs 125.0x less per output token ($0.40 vs $50.00 per million). Updated October 22, 2026; 59 benchmarks have a result for both.

Claude Fable 5.1Anthropic
Coding
84.2
Overall
84.7
Output $/M
$50.00
58
Gemma 4 31BGoogle
Coding
39.0
Overall
42.1
Output $/M
$0.40
1
vs boards won of 59 shared

Claude Fable 5.1 or Gemma 4 31B: which to pick

Pick Claude Fable 5.1 for coding: it scores 84.2 on the Vibe Coding Index against 39.0 for Gemma 4 31B.

Pick Gemma 4 31B for output tokens 125.0x cheaper ($0.40 vs $50.00 per million) and work measured by SAGE (Vals AI), where it leads.

Shared results
59
Claude Fable 5.1 only
65
Gemma 4 31B only
12
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 Fable 5.1 84.2 from 5 benchmarks, Gemma 4 31B 39.0 from 2 benchmarks.
Widest category
Agentic work, 63.7 points apart on average over 4 shared benchmarks.
Widest single gap
LiveBench browser: Claude Fable 5.1 100.0% against Gemma 4 31B 4.0%, 96.0 points apart on a 0 to 100 scale.
Output price
Claude Fable 5.1 $50.00 against Gemma 4 31B $0.40 per million output tokens, 125.0x apart.
Context window
Claude Fable 5.1 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 Fable 5.1BarsGemma 4 31BTies
Coding100
Intelligence20
Agentic work40
Reasoning80
Math30
Knowledge60
Web design10
General241
All shared boards581
CodingLike-for-likeSix of these boards feed the Vibe Coding Index100
Coding benchmarks for Claude Fable 5.1 and Gemma 4 31B
BenchmarkClaude Fable 5.1Gemma 4 31BLeader
LiveBench coding97.7%49.0%Claude Fable 5.1
LMArena WebDev17431367Claude Fable 5.1
AA Coding Index81.643.4Claude Fable 5.1
LiveCodeBench (Vals AI)90.5%Not measuredOnly Claude Fable 5.1 measured
Terminal-Bench 4 (Vals AI)58.1%Not measuredOnly Claude Fable 5.1 measured
Vibe Code Bench (Vals AI)90.3%Not measuredOnly Claude Fable 5.1 measured
Code migration (Vals AI)54.6%Not measuredOnly Claude Fable 5.1 measured
ProgramBench (Vals AI)7.0%Not measuredOnly Claude Fable 5.1 measured
IOI (Vals AI)90.8%Not measuredOnly Claude Fable 5.1 measured
Terminal-Bench 2.1 (Vals AI)85.0%Not measuredOnly Claude Fable 5.1 measured
SWE-bench Multimodal (Vals AI)61.3%Not measuredOnly Claude Fable 5.1 measured
Vibe Code Bench 1-100 (Vals AI)28.0%Not measuredOnly Claude Fable 5.1 measured
SkillsBench (Vals AI)61.5%Not measuredOnly Claude Fable 5.1 measured
CyberBench (Vals AI)70.4%Not measuredOnly Claude Fable 5.1 measured
SciCode63.1%45.5%Claude Fable 5.1
Terminal-Bench Hard (Artificial Analysis run)Not measured36.4%Only Gemma 4 31B measured
FrontierCode50.9%Not measuredOnly Claude Fable 5.1 measured
FrontierSWE56.3%Not measuredOnly Claude Fable 5.1 measured
GSO-Bench88.2%Not measuredOnly Claude Fable 5.1 measured
WeirdML92.9%52.3%Claude Fable 5.1
MirrorCode73.3%Not measuredOnly Claude Fable 5.1 measured
ALE-Bench2143.2925.5Claude Fable 5.1
LMArena Text: coding15321459Claude Fable 5.1
LMArena Text: software and IT15301463Claude Fable 5.1
LMArena WebDev: React17921359Claude Fable 5.1
LMArena WebDev: HTML16841380Claude Fable 5.1
LMArena WebDev: from an image1722Not measuredOnly Claude Fable 5.1 measured
SciCodeNot measured8.9%Only Gemma 4 31B measured
Neither model has a result on the other 11 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Fable 5.1 and Gemma 4 31B
BenchmarkClaude Fable 5.1Gemma 4 31BLeader
AA Intelligence Index53.414.7Claude Fable 5.1
Epoch Capabilities Index166.5143.0Claude Fable 5.1
Agentic workLike-for-likePublic boards, shown as published, kept out of the index40
Agentic work benchmarks for Claude Fable 5.1 and Gemma 4 31B
BenchmarkClaude Fable 5.1Gemma 4 31BLeader
AA Agentic Index57.94.2Claude Fable 5.1
Design Arena: agents building web apps1318Not measuredOnly Claude Fable 5.1 measured
Design Arena: agents building full-stack apps1326Not measuredOnly Claude Fable 5.1 measured
Design Arena: agents building mobile apps1267Not measuredOnly Claude Fable 5.1 measured
Design Arena: agents building Godot games1327Not measuredOnly Claude Fable 5.1 measured
Design Arena: PowerPoint slides1305Not measuredOnly Claude Fable 5.1 measured
Design Arena: spreadsheets1380Not measuredOnly Claude Fable 5.1 measured
LiveBench research82.0%44.4%Claude Fable 5.1
LiveBench browser100.0%4.0%Claude Fable 5.1
LiveBench long agentic80.8%13.3%Claude Fable 5.1
SREBench (Vals AI)22.9%Not measuredOnly Claude Fable 5.1 measured
Finance Agent (Vals AI)58.9%Not measuredOnly Claude Fable 5.1 measured
Tax Agent Bench (Vals AI)49.2%Not measuredOnly Claude Fable 5.1 measured
Legal Research Bench (Vals AI)55.3%Not measuredOnly Claude Fable 5.1 measured
Excel Modeling Benchmark (Vals AI)76.7%Not measuredOnly Claude Fable 5.1 measured
Terminal-Bench-Science (Vals AI)40.0%Not measuredOnly Claude Fable 5.1 measured
Time Horizon Index (Vals AI)63.3%Not measuredOnly Claude Fable 5.1 measured
CUA-bench (Vals AI)13.2%Not measuredOnly Claude Fable 5.1 measured
Robo-bench (Vals AI)5.8%Not measuredOnly Claude Fable 5.1 measured
τ²-Bench TelecomNot measured65.5%Only Gemma 4 31B measured
APEX-Agents68.6%Not measuredOnly Claude Fable 5.1 measured
Remote Labor Index17.9%Not measuredOnly Claude Fable 5.1 measured
SpireClimb2.0%Not measuredOnly Claude Fable 5.1 measured
Vending-Bench 2$5,422Not measuredOnly Claude Fable 5.1 measured
LMArena Search1246Not measuredOnly Claude Fable 5.1 measured
Neither model has a result on the other 16 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index80
Reasoning benchmarks for Claude Fable 5.1 and Gemma 4 31B
BenchmarkClaude Fable 5.1Gemma 4 31BLeader
GPQA Diamond93.4%Not measuredOnly Claude Fable 5.1 measured
LiveBench reasoning91.7%68.3%Claude Fable 5.1
MysteryMechanism (Vals AI)47.8%Not measuredOnly Claude Fable 5.1 measured
MMMU Pro (Vals AI)90.6%Not measuredOnly Claude Fable 5.1 measured
GPQA Diamond (Artificial Analysis run)93.7%85.7%Claude Fable 5.1
Humanity's Last Exam (Artificial Analysis run)59.1%23.6%Claude Fable 5.1
GPQA Diamond (Epoch AI run)Not measured75.8%Only Gemma 4 31B measured
ARC-AGI97.5%Not measuredOnly Claude Fable 5.1 measured
ARC-AGI-290.0%Not measuredOnly Claude Fable 5.1 measured
Chess puzzles48.0%Not measuredOnly Claude Fable 5.1 measured
Mystery game puzzles58.0%Not measuredOnly Claude Fable 5.1 measured
EBR-bench57.1%Not measuredOnly Claude Fable 5.1 measured
LMArena Text: hard prompts15281448Claude Fable 5.1
LMArena Text: expert15441464Claude Fable 5.1
LMArena Text: hard prompts in English15221456Claude Fable 5.1
LMArena Vision: diagrams13431283Claude Fable 5.1
LMArena Vision: homework13451310Claude Fable 5.1
Kagi LLM BenchmarkNot measured63.5%Only Gemma 4 31B measured
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for Claude Fable 5.1 and Gemma 4 31B
BenchmarkClaude Fable 5.1Gemma 4 31BLeader
OTIS Mock AIME100.0%73.3%Claude Fable 5.1
FrontierMath, tiers 1 to 390.2%Not measuredOnly Claude Fable 5.1 measured
FrontierMath, tier 487.8%Not measuredOnly Claude Fable 5.1 measured
ProofBench100.0%Not measuredOnly Claude Fable 5.1 measured
LMArena Text: math15311463Claude Fable 5.1
LMArena Text: mathematical work15411465Claude Fable 5.1
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index60
Knowledge benchmarks for Claude Fable 5.1 and Gemma 4 31B
BenchmarkClaude Fable 5.1Gemma 4 31BLeader
MMLU Pro92.4%Not measuredOnly Claude Fable 5.1 measured
LegalBench (Vals AI)88.5%Not measuredOnly Claude Fable 5.1 measured
CaseLaw (Vals AI)Not measured52.6%Only Gemma 4 31B measured
TaxEval (Vals AI)76.0%Not measuredOnly Claude Fable 5.1 measured
MortgageTax (Vals AI)70.8%61.4%Claude Fable 5.1
MedCode (Vals AI)53.5%Not measuredOnly Claude Fable 5.1 measured
SimpleQA Verified70.8%10.4%Claude Fable 5.1
LMArena Text: science15321457Claude Fable 5.1
LMArena Text: medicine and healthcare15311451Claude Fable 5.1
LMArena Text: legal and government15141438Claude Fable 5.1
LMArena Text: business and finance14931430Claude Fable 5.1
FACTS Benchmark SuiteNot measured45.3%Only Gemma 4 31B measured
Neither model has a result on the other 6 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index10
Web design benchmarks for Claude Fable 5.1 and Gemma 4 31B
BenchmarkClaude Fable 5.1Gemma 4 31BLeader
Design Arena: websites1312Not measuredOnly Claude Fable 5.1 measured
Design Arena: UI components1336Not measuredOnly Claude Fable 5.1 measured
Design Arena: game dev1381Not measuredOnly Claude Fable 5.1 measured
Design Arena: data viz1344Not measuredOnly Claude Fable 5.1 measured
Design Arena: 3D1392Not measuredOnly Claude Fable 5.1 measured
Design Arena: all code categories1335Not measuredOnly Claude Fable 5.1 measured
Design Arena: SVG1300Not measuredOnly Claude Fable 5.1 measured
Design Arena: ASCII art1323Not measuredOnly Claude Fable 5.1 measured
LiveBench design83.4%58.4%Claude Fable 5.1
GeneralLike-for-likePublic boards, shown as published, kept out of the index241
General benchmarks for Claude Fable 5.1 and Gemma 4 31B
BenchmarkClaude Fable 5.1Gemma 4 31BLeader
LiveBench data analysis80.3%53.3%Claude Fable 5.1
Public Benefits Bench (Vals AI)74.9%Not measuredOnly Claude Fable 5.1 measured
SAGE (Vals AI)48.5%55.0%Gemma 4 31B
MedScribe (Vals AI)91.3%Not measuredOnly Claude Fable 5.1 measured
IFBenchNot measured75.6%Only Gemma 4 31B measured
Long context reasoning (AA-LCR)85.3%69.7%Claude Fable 5.1
DTBench97.6%82.7%Claude Fable 5.1
LMCA65.5%39.3%Claude Fable 5.1
Surface Evolver BenchNot measured30.6%Only Gemma 4 31B measured
Furniture assembly70.0%Not measuredOnly Claude Fable 5.1 measured
LMArena Text15121443Claude Fable 5.1
LMArena Text: instruction following15181433Claude Fable 5.1
LMArena Text: creative writing15091417Claude Fable 5.1
LMArena Vision13191276Claude Fable 5.1
LMArena Text: English15061451Claude Fable 5.1
LMArena Text: non-English15081430Claude Fable 5.1
LMArena Text: Chinese15841475Claude Fable 5.1
LMArena Text: German1499Not measuredOnly Claude Fable 5.1 measured
LMArena Text: Japanese1562Not measuredOnly Claude Fable 5.1 measured
LMArena Text: Korean1517Not measuredOnly Claude Fable 5.1 measured
LMArena Text: French15231436Claude Fable 5.1
LMArena Text: Spanish15201442Claude Fable 5.1
LMArena Text: Russian15201460Claude Fable 5.1
LMArena Text: Polish15251433Claude Fable 5.1
LMArena Text: multi-turn14931452Claude Fable 5.1
LMArena Text: longer queries15241446Claude Fable 5.1
LMArena Text: writing and language15101432Claude Fable 5.1
LMArena Text: entertainment and media14971405Claude Fable 5.1
LMArena Vision: English13131271Claude Fable 5.1
LMArena Vision: Chinese13911326Claude Fable 5.1
LMArena Vision: reading text13271282Claude Fable 5.1
LMArena Vision: humor13181280Claude Fable 5.1
LMArena Vision: captioningNot measured1218Only Gemma 4 31B measured
LMArena Vision: recognizing thingsNot measured1226Only Gemma 4 31B measured
LMArena Vision: creative writing13301285Claude Fable 5.1
LMArena DocumentNot measured1425Only Gemma 4 31B measured
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
Image generation benchmarks for Claude Fable 5.1 and Gemma 4 31B
BenchmarkClaude Fable 5.1Gemma 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 Fable 5.1$0.035Fits in one request
Gemma 4 31B$0.0003Fits in one request

Gemma 4 31B costs less

Repository review

50K input + 3K output tokens

Claude Fable 5.1$0.650Fits in one request
Gemma 4 31B$0.0082Fits in one request

Gemma 4 31B costs less

Agent loop

200K input + 10K output tokens

Claude Fable 5.1$2.50Fits in one request
Gemma 4 31B$0.032Fits in one request

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.

Specifications of Claude Fable 5.1 and Gemma 4 31B
SpecificationAnthropic Claude Fable 5.1Google Gemma 4 31B
MakerAnthropicGoogle
WeightsNo public weights listedOpen weights
ReleasedSeptember 1, 2026April 2, 2026
Context window1M262K
Input $/Mtok$10.00$0.14
Output $/Mtok$50.00$0.40
Coding index84.239.0
Independent measurements behind it52
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Fable 5.1 better than Gemma 4 31B for coding?

Pick Claude Fable 5.1 for coding: it scores 84.2 on the Vibe Coding Index against 39.0 for Gemma 4 31B. Pick Gemma 4 31B for output tokens 125.0x cheaper ($0.40 vs $50.00 per million) and work measured by SAGE (Vals AI), where it leads.

Which is cheaper, Claude Fable 5.1 or Gemma 4 31B?

Claude Fable 5.1 costs $10.00 per million input tokens and $50.00 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 Fable 5.1 or Gemma 4 31B?

Claude Fable 5.1, with 1M tokens against 262K.

How many benchmarks is the Claude Fable 5.1 vs Gemma 4 31B comparison based on?

59 benchmarks have a result for both models as of October 22, 2026. Claude Fable 5.1'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-fable-5-1-vs-gemma-4-31b-it" title="Claude Fable 5.1 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-fable-5-1-vs-gemma-4-31b-it">LLMBenchmark.ai, Claude Fable 5.1 vs Gemma 4 31B</a></p>