Gemma 4 31b API Pricing
Gemma 4 31b costs $0.12 per 1M input tokens and $0.35 per 1M output tokens on Google's API. Prices are provider list prices in USD, refreshed as sources update; see the Gemma 4 31b model profile for capability scores.
Price List
| Rate | Price (USD) | Notes |
|---|---|---|
| Input | $0.12 | per 1M tokens |
| Output | $0.35 | per 1M tokens |
| Blended input + output | $0.47 | 1M in + 1M out at list price |
| Context window | 256K tokens |
What a Workload Costs
Computed straight from the list prices above — token counts are illustrative workload sizes, not measurements of Gemma 4 31b.
| Workload | Cost | Tokens |
|---|---|---|
| Short chat turn | $0.00030 | 1K in / 500 out |
| Summarize a long document | $0.013 | 100K in / 2K out |
| Agentic coding session | $0.095 | 500K in / 100K out |
| 1M input + 1M output tokens | $0.470 | 1M in / 1M out |
Effective Cost
In AI IQ's scoring, Gemma 4 31b's list price is adjusted by a token-usage multiplier of 0.715, giving an effective cost of $0.3359 per 1M input + output tokens. That places it #8 of 117 models on the effective-cost ranking (lower is cheaper). Some models spend far more tokens than others on the same task, so effective cost compares what a unit of work really costs. Method details are on the methodology page; see all models on the cost charts and the falling cost of intelligence over time.
Cheaper Alternatives at Similar Capability
Models with a lower effective cost that score within a few IQ points of Gemma 4 31b (IQ 101), or better.
| Model | Provider | IQ | Effective Cost / 1M |
|---|---|---|---|
| gpt-oss-20b | OpenAI | 100 | $0.1937 |
| gemma-4-12b | 98 | $0.2859 |