Enter opens the highlighted result. Esc closes.

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.

Cost of three workloads on Gemma 4 31B
WorkloadTokensOne request1,000 requestsFits 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.

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.