Gemma 4 31B API pricing
4 providers serve Gemma 4 31B. Gemma 4 31B is a proprietary API model, up to 262K context. Prices below are per 1M tokens, cheapest input first.
Refreshed 2026-08-23 · list prices from provider APIs| Provider | Input $/1M | Output $/1M | Cache read $/1M | Context | |
|---|---|---|---|---|---|
| OpenRouter marketplace quote | $0.100 | $0.340output floor | $0.100 | 262K | Use |
| Tensormesh | $0.140 | $0.560 | - | 33K | |
| Libertai | $0.150 | $0.400 | - | 262K | |
| SambaNova | $0.380 | $1.15 | - | 131K | Use |
The cheapest way to run Gemma 4 31B
On an illustrative 70M-input / 30M-output monthly workload, today's lowest listed cost is roughly $17.20/month, at OpenRouter. Input-heavy, output-heavy and cache-heavy workloads can produce different winners. Use the live mix calculator below rather than combining floors from two different providers. It is API-only, so the table above is your full set of options. Run your own numbers in the breakeven calculator, or read the breakeven math.
Your actual monthly cost
Cache read uses the listed cache rate where available; otherwise it falls back to normal input price. Batch, write-cache, volume and negotiated discounts are excluded.
Related models
| Model | Cheapest in $/1M | Cheapest out $/1M | Providers |
|---|---|---|---|
| Gemma 3 27B | $0.060 | $0.160 | 7 |
| Gemma 3 12B | $0.050 | $0.100 | 5 |
| Gemma 4 26B A4B | $0.070 | $0.300 | 4 |
| Gemma-7b-It | $0.050 | $0.080 | 3 |
| Gemma 3 4B | $0.040 | $0.080 | 3 |
FAQ
What is the cheapest API for Gemma 4 31B?
As of 2026-08-23, the lowest input price for Gemma 4 31B is OpenRouter at $0.100 per 1M input tokens. The lowest output price is OpenRouter at $0.340 per 1M output tokens. The cheapest provider for a real workload depends on its input/output mix. The next-lowest input price is Tensormesh at $0.140, a 40% difference.
← All models · GPU rental prices · Breakeven calculator · Get this data as JSON