Cerebras vs OpenAI · synced 2026-11-25

gemma-4-31b vs gpt-4.1

gemma-4-31b is 2.0× cheaper on input than gpt-4.1.

gemma-4-31b gpt-4.1
Input / 1M $0.99 $2.00
Cached input / 1M — $0.50
Output / 1M $1.49 $8.00
Context window 131K 1M
Max output 41K 33K
Provider Cerebras OpenAI
Vision Yes Yes
Tool calling Yes Yes
Token count estimated exact

Which to pick

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