gemma-4-31b vs sonar-pro
gemma-4-31b is 3.0× cheaper on input than sonar-pro.
| gemma-4-31b | sonar-pro | |
|---|---|---|
| Input / 1M | $0.99 | $3.00 |
| Cached input / 1M | — | — |
| Output / 1M | $1.49 | $15.00 |
| Context window | 131K | 200K |
| Max output | 41K | 8K |
| Provider | Cerebras | Perplexity |
| Vision | Yes | No |
| Tool calling | Yes | No |
| Token count | estimated | estimated |
Which to pick
- Cheaper input: gemma-4-31b
- Cheaper output: gemma-4-31b
- Larger context: sonar-pro
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 · sonar-pro detail · All Cerebras pricing · All comparisons