Gemma 4 31B is 139.5× cheaper per million tokens (blended). Claude Fable 5 leads quality index by 13.0 points (89.4 vs 76.4). Claude Fable 5 has the larger context window (1,000,000 vs 262,144 tokens, 3.8×). Gemma 4 31B is open-weights; the other is not.

Claude Fable 5 vs Gemma 4 31B

Live catalog fields. Best-in-row is highlighted.

Claude Fable 5

Anthropic · anthropic__claude-fable-5

Gemma 4 31Bopen

Google · google__gemma-4-31b-it

Identity

Fieldanthropic__claude-fable-5google__gemma-4-31b-it
ProviderAnthropicGoogle
Sluganthropic__claude-fable-5google__gemma-4-31b-it
Statuslivelive
Open weightsNoYes
License
HuggingFacegoogle/gemma-4-31B-it

Quality

Fieldanthropic__claude-fable-5google__gemma-4-31b-it
Quality index (0–100)89.476.4

Cost

Fieldanthropic__claude-fable-5google__gemma-4-31b-it
Input $ / 1M tokens$10.00$0.09
Cached input $ / 1M$1.00$0.05
Output $ / 1M tokens$50.00$0.34

Context

Fieldanthropic__claude-fable-5google__gemma-4-31b-it
Max context tokens1,000,000262,144
Max output tokens128,00016,384

Modalities

Fieldanthropic__claude-fable-5google__gemma-4-31b-it
Inputtext, image, fileimage, text, video
Outputtexttext