claude-sonnet-5-5 vs gemma-4-31b
gemma-4-31b is 2.0× cheaper on input than claude-sonnet-5-5.
| claude-sonnet-5-5 | gemma-4-31b | |
|---|---|---|
| Input / 1M | $2.00 | $0.99 |
| Cached input / 1M | $0.10 | — |
| Output / 1M | $10.00 | $1.49 |
| Context window | 1M | 131K |
| Max output | 128K | 41K |
| Provider | Anthropic | Cerebras |
| Vision | Yes | Yes |
| Tool calling | Yes | Yes |
| Token count | estimated | estimated |
Which to pick
- Cheaper input: gemma-4-31b
- Cheaper output: gemma-4-31b
- Larger context: claude-sonnet-5-5
List price is not production cost. Output length, cache hit rate, retries and task quality move the real number more than the headline rate does — price your own prompt on the token ledger before deciding.
Related comparisons
claude-sonnet-5-5 detail · gemma-4-31b detail · All Anthropic pricing · All comparisons