gemma-4-31b vs llama-3.1-70b-instruct
gemma-4-31b and llama-3.1-70b-instruct are priced within 15% of each other on input.
| gemma-4-31b | llama-3.1-70b-instruct | |
|---|---|---|
| Input / 1M | $0.99 | $1.00 |
| Cached input / 1M | — | — |
| Output / 1M | $1.49 | $1.00 |
| Context window | 131K | 131K |
| Max output | 41K | 131K |
| Provider | Cerebras | Perplexity |
| Vision | Yes | No |
| Tool calling | Yes | No |
| Token count | estimated | estimated |
Which to pick
- Cheaper input: gemma-4-31b
- Cheaper output: llama-3.1-70b-instruct
- Larger context: gemma-4-31b
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 · llama-3.1-70b-instruct detail · All Cerebras pricing · All comparisons