gemma-4-31b vs glm-5-2
gemma-4-31b is 1.4× cheaper on input than glm-5-2.
| gemma-4-31b | glm-5-2 | |
|---|---|---|
| Input / 1M | $0.99 | $1.40 |
| Cached input / 1M | — | $0.14 |
| Output / 1M | $1.49 | $4.40 |
| Context window | 131K | 1M |
| Max output | 41K | 131K |
| Provider | Cerebras | Mistral |
| Vision | Yes | No |
| Tool calling | Yes | Yes |
| Token count | estimated | estimated |
Which to pick
- Cheaper input: gemma-4-31b
- Cheaper output: gemma-4-31b
- Larger context: glm-5-2
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
gemma-4-31b detail · glm-5-2 detail · All Cerebras pricing · All comparisons