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