Gemma 4 31B is 27.9× cheaper per million tokens (blended). Claude Sonnet 5.5 leads quality index by 17.7 points (93.2 vs 75.5). Claude Sonnet 5.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 Sonnet 5.5 vs Gemma 4 31B
Live catalog fields. Best-in-row is highlighted.
Claude Sonnet 5.5
Anthropic · anthropic__claude-sonnet-5.5
Gemma 4 31Bopen
Google · google__gemma-4-31b-it
Identity
| Field | anthropic__claude-sonnet-5.5 | google__gemma-4-31b-it |
|---|---|---|
| Provider | Anthropic | |
| Slug | anthropic__claude-sonnet-5.5 | google__gemma-4-31b-it |
| Status | live | live |
| Open weights | No | Yes |
| License | — | — |
| HuggingFace | — | google/gemma-4-31B-it |
Quality
| Field | anthropic__claude-sonnet-5.5 | google__gemma-4-31b-it |
|---|---|---|
| Quality index (0–100) | 93.2 | 75.5 |
Cost
| Field | anthropic__claude-sonnet-5.5 | google__gemma-4-31b-it |
|---|---|---|
| Input $ / 1M tokens | $2.00 | $0.09 |
| Cached input $ / 1M | $0.20 | $0.05 |
| Output $ / 1M tokens | $10.00 | $0.34 |
Context
| Field | anthropic__claude-sonnet-5.5 | google__gemma-4-31b-it |
|---|---|---|
| Max context tokens | 1,000,000 | 262,144 |
| Max output tokens | 128,000 | 16,384 |
Modalities
| Field | anthropic__claude-sonnet-5.5 | google__gemma-4-31b-it |
|---|---|---|
| Input | text, image, file | image, text, video |
| Output | text | text |