Gemma 4 31B API pricing
As of October 22, 2026, Google Gemma 4 31B costs $0.14 per million input tokens and $0.40 per million output tokens, the median of 13 providers on OpenRouter.
Gemma 4 31B benchmarks and specs · Every Google model's price
- Input, per million tokens$0.14
- Output, per million tokens$0.40
- Cached input, per millionNo cache price listed
- Context window262K tokens
- Max output16K tokens
- Output speed35 tok/s
What a request costs
Three fixed token mixes at the list price, without cache or batch discounts. For a whole month, use the calculator.
| Workload | Tokens | One request | 1,000 requests | Fits the context window |
|---|---|---|---|---|
| Chat turn | 1K input + 500 output tokens | $0.0003 | $0.340 | Yes |
| Repository review | 50K input + 3K output tokens | $0.0082 | $8.20 | Yes |
| Agent loop | 200K input + 10K output tokens | $0.032 | $32.00 | Yes |
| Solved coding task | One SWE-bench Verified attempt, divided by the share that succeed | Not computable | Not computable |
Price history
The price of Gemma 4 31B here is the median across 13 providers on OpenRouter, so we do not track price changes for it.
Cheaper models as good as Gemma 4 31B
Models within two points of Gemma 4 31B or above it on the LLMBenchmark Index, with a lower output price. Cheapest first.
- Qwen3.5-Flash$0.26 Overall 50.1 against 42.1 · 35% cheaper output
- MiMo-V2.6-Flash$0.28 Overall 60.8 against 42.1 · 30% cheaper output
- Qwen3 30B A3B Instruct 2507$0.30 Overall 41.5 against 42.1 · 25% cheaper output
- MiMo-V2.5$0.336 Overall 50.7 against 42.1 · 16% cheaper output
- DeepSeek V4 Flash 0731$0.396 Overall 55.2 against 42.1 · 1% cheaper output
Gemma 4 31B pricing questions
- How much does Gemma 4 31B cost per million tokens?
- $0.14 per million input tokens and $0.40 per million output tokens, as listed on OpenRouter on October 22, 2026.
- Does Gemma 4 31B support prompt caching?
- OpenRouter lists no cached input price for this model, so assume every input token is billed at the full rate.
- Is there a cheaper model as good as Gemma 4 31B?
- Qwen3.5-Flash scores 50.1 on the LLMBenchmark Index, within two points of Gemma 4 31B or above it, and costs $0.26 per million output tokens.
- Has the price of Gemma 4 31B changed?
- The price of Gemma 4 31B here is the median across 13 providers on OpenRouter, so we do not track price changes for it.