Google Gemma API pricing
Every Gemma model we track, with the cheapest input and output rates per 1M tokens across 21 providers. Collected daily.
Gemma API prices by model
Standard (real-time) rates per 1M tokens, newest first. The cheapest input and the cheapest output are often on different hosts, so each is shown with its own host. Batch and cached-input rates are on each model page.
| Model | Cheapest input | Cheapest output |
|---|---|---|
| Gemma 4 31B262K context | $0.070OpenRelay | $0.300OpenRelay |
| Gemma 4 26B262K context | $0.050Empirio Labs | $0.225OpenRouter |
| Gemma 4 12B | $0.050Liquid Inference | $0.251Liquid Inference |
| Gemma 4 E2B | $0.042Runcrate | $0.084Runcrate |
| Gemma 3 27B128K context | $0.080Deep Infra | $0.160Deep Infra |
| Gemma 3 12B131K context | $0.050Deep Infra | $0.100Novita AI |
| Gemma 3 4B131K context | $0.040Amazon AWS | $0.080Amazon AWS |
| Gemma 2 27B8K context | $0.650OpenRouter | $0.650OpenRouter |
What 1,000 Gemma requests cost
An estimate for one example request: 3,000 input tokens, 50% of them a cached prefix, and 400 output tokens, the same shape as our customer support chatbot comparison. Each cost uses one provider's own input, cached-input and output rates; where a provider publishes no cached-input rate, cached tokens are billed at its full input rate.
| Model | Lowest cost |
|---|---|
| Gemma 4 31B | $0.236OpenRelay |
| Gemma 4 26B | $0.229Empirio Labs |
| Gemma 4 12B | $0.251Liquid Inference |
| Gemma 4 E2B | $0.160Runcrate |
| Gemma 3 27B | $0.304Deep Infra |
| Gemma 3 12B | $0.190Novita AI |
| Gemma 3 4B | $0.152Amazon AWS |
| Gemma 2 27B | $2.21OpenRouter |
Gemma price history
Average input price per 1M tokens across the providers serving each model, last 90 days.
Frequently Asked Questions
Which Gemma model has the lowest API prices?
Of the 8 Gemma models we track, Gemma 3 4B has the lowest input rate right now: $0.040 per 1M tokens on Amazon AWS. Gemma 3 4B has the lowest output rate: $0.080 per 1M tokens on Amazon AWS. Which is cheaper for you depends on how many input tokens you send per output token. Prices are collected daily from 21 providers.
Where is Gemma 4 31B cheapest?
Gemma 4 31B is served by 16 providers we track. The lowest rates are $0.070 per 1M input tokens on OpenRelay and $0.300 per 1M output tokens on OpenRelay. Throughput, latency and context limits differ between hosts, so check the model page before committing.
What does a typical Gemma 4 31B request cost?
A chat request with 3,000 input tokens and 400 output tokens costs about $0.236 per 1,000 requests at OpenRelay's current rates, the lowest of the providers we track. Your cost depends on how long your prompts and answers are; the estimate table above shows the same request on other Gemma models.