API pricing and cost
Gemma 4 31B pricing
Gemma 4 31B official API pricing is $0.00 per million input tokens and $0.00 per million output tokens. Third-party provider prices are compared below.
Covers the 2026-04-02 Gemma 4 31B release. Supersedes Gemma 3 - 27B (IT).
$0.00
Official input / 1M
Standard tier
$0.00
Official output / 1M
Standard tier
$0.00
Blended / 1M
4:1 input/output
$0.00
Example monthly cost
10K requests, 8K input + 2K output/request
Token charges only; tool calls, taxes, and other non-token fees are excluded.
Official API pricing
USD / 1M text tokens · Standard · Effective from 2026-04-02 · Last verified 2026-11-14
- InputStandard text tier, per million tokens
- $0.00
- OutputStandard text tier, per million tokens
- $0.00
Other modalities
- image input: $0.00 / 1M tokens
Google Gemini Developer API Free Tier verified 2026-11-13; Free of charge (Paid Tier N/A)
API providers (2)
Published USD text API rates across hosting providers for Gemma 4 31B. Compare listed rates, effective dates, and service-tier notes for the same model.
On the example assistant workload above (10K requests, 8K input + 2K output/request; missing cache rates billed at full input), Amazon lists the lowest flat-rate total at $19.20/month.
| Provider | Input / 1M | Cached / 1M | Output / 1M | Additional tiers & notes |
|---|---|---|---|---|
| AmazonEffective from 2026-11-14 | $0.14Lowest input | — | $0.40 | — |
| DeepInfraEffective from 2026-11-13 | $0.20 | — | $0.40 | — |
What Gemma 4 31B costs to run
Four workloads costed at official standard rates. Cached-input share is an estimation assumption, not a provider guarantee; when no cached rate is published, all input is billed at the uncached rate. Non-token fees are excluded.
| Workload | Per request | Monthly tokens | Input | Output | Per month |
|---|---|---|---|---|---|
| Chatbotshort turns | 1,500 in · 500 out× 100,000 requests | 150M in · 50M out | $0.00 | $0.00 | $0.00$0.00 / request |
| Assistant8K context · 90% cached | 8,000 in · 2,000 out× 10,000 requests | 80M in · 20M out | $0.00 | $0.00 | $0.00$0.00 / request |
| RAGlong input, cached · 50% cached | 24,000 in · 800 out× 20,000 requests | 480M in · 16M out | $0.00 | $0.00 | $0.00$0.00 / request |
| Coding agentlong output · 70% cached | 15,000 in · 4,000 out× 20,000 requests | 300M in · 80M out | $0.00 | $0.00 | $0.00$0.00 / request |
Monthly cost
$0.00
on Gemma 4 31B
Per request
$0.00
80M in · 20M out a month
Split
$0.00 + $0.00
input + output
Gemma 4 31B is the cheapest of the comparable models at this workload.
- Gemma 4 26B A4BGoogle Deep Mind · $0.00 / 1M blended$0.00
- Llama3.1-8B-InstructFacebook AI Research Lab · $0.024 / 1M blended$2.40
- Nemotron 3.5 Super VLNVIDIA · $0.126 / 1M blended$12.64
- Muse Glimmer-30BFacebook AI Research Lab · $0.293 / 1M blended$29.28
- Qwen3.8-27BAlibaba · $0.712 / 1M blended$71.20
- Kimi K3Moonshot AI · $3.46 / 1M blended$345.60
Gemma 4 31B against comparable models
Benchmark-overlap peers and price-comparable same-type models, costed on the assistant workload above. All figures use the same workload and caching rule; lower price does not imply equivalent capability or service terms.
| Model | Basis | Blended / 1M | Per month | vs Gemma 4 31B |
|---|---|---|---|---|
| Gemma 4 26B A4BGoogle Deep Mind | Similar price | $0.00 | $0.00 | — |
| Gemma 4 31BGoogle Deep Mind · this model | This model | $0.00 | $0.00 | — |
| Llama3.1-8B-InstructFacebook AI Research Lab | Similar price | $0.024 | $2.40 | — |
| Nemotron 3.5 Super VLNVIDIA | Shared benchmark coverage | $0.126 | $12.64 | — |
| Muse Glimmer-30BFacebook AI Research Lab | Shared benchmark coverage | $0.293 | $29.28 | — |
| Qwen3.8-27BAlibaba | Shared benchmark coverage | $0.712 | $71.20 | — |
| Kimi K3Moonshot AI | Shared benchmark coverage | $3.46 | $345.60 | — |
Catalog price position: #1 cheapest of 252 active priced models in the LLMLearner catalog (cheaper than 98% at the 4:1 mix; official headline rates).
Gemma 4 31B pricing questions
- How much does Gemma 4 31B cost per million tokens?
- Gemma 4 31B official API pricing is $0.00 per million input tokens and $0.00 per million output tokens. At the default 4:1 input-to-output mix, that is $0.00 per million blended tokens.
- What does Gemma 4 31B cost per month, and what is included?
- On the example Assistant workload (10,000 requests/month, 8,000 input and 2,000 output tokens/request), Gemma 4 31B costs about $0.00/month ($0.00/request). This includes token charges at the official rate only; tool calls, off-peak or batch tiers, and taxes are excluded.
- Does Gemma 4 31B charge for cached input?
- Google Deep Mind publishes no cached-input rate for Gemma 4 31B here, so every input token is estimated at the full $0.00 per million.