gemma-4-31b vs gpt-5.4
gemma-4-31b is 2.5× cheaper on input than gpt-5.4.
| gemma-4-31b | gpt-5.4 | |
|---|---|---|
| Input / 1M | $0.99 | $2.50 |
| Cached input / 1M | — | $0.25 |
| Output / 1M | $1.49 | $15.00 |
| Context window | 131K | 1.1M |
| Max output | 41K | 128K |
| Provider | Cerebras | OpenAI |
| Vision | Yes | Yes |
| Tool calling | Yes | Yes |
| Token count | estimated | exact |
Which to pick
- Cheaper input: gemma-4-31b
- Cheaper output: gemma-4-31b
- Larger context: gpt-5.4
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 · gpt-5.4 detail · All Cerebras pricing · All comparisons