Gemma 4 31b API Pricing
Gemma 4 31b has tracked API rates of $0.12 per 1M input tokens and $0.35 per 1M output tokens. Rates are in USD from the AI IQ dataset; 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 |
Pricing References and Billing Caveats
These are the tracked rates, not a live quote. Hosted-provider choice, region, long-context tiers, caching, batch discounts, and temporary promotions can change the actual bill. Open-weight availability does not mean hosted inference is free. Workload examples assume the listed standard input and output rates, with no cache hits or discounts.
Google pricing catalog — check current offerings and rate tiers. This catalog may not list historical models or third-party hosted endpoints.
No model-specific official reference is recorded for this entry. Confirm the current rates directly with your inference provider.
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.292, giving an effective cost of $0.1371 per 1M input + output tokens. That places it #7 of 153 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.