Gemma 4 31B API Pricing
Google · context window 262K · prices updated 2026-10-30
Where Gemma 4 31B sits on price
At $0.4 per million output tokens, Gemma 4 31B is a budget tier model — 5.5× cheaper than the median output price of $2.20, which puts it cheaper than 84% and pricier than 16% of the models we track. It sits 5th cheapest of the 37 Google models we track. Output is only 2.0× the input price, an unusually flat spread: long prompts hurt about as much as long answers, so prompt size is where the savings are.
What real workloads cost on Gemma 4 31B
These three workloads are the ones teams actually run on a budget-priced model — a $0.4/1M model is not bought for the same job as one ten times the price.
| Workload | Per request | Per month |
|---|---|---|
| High-volume classification — 200K requests/day (400 in / 20 out) Short output, huge volume: the input price dominates the bill. | $0.0001 | $528 |
| Small app — 1K requests/day (500 in / 150 out) The baseline most side projects actually run at. | $0.0002 | $4.80 |
| Document pipeline — 10K docs/day (3K in / 500 out) Batch-friendly: no user waiting, so a ~50% batch discount usually applies. | $0.0008 | $240 |
Model your exact traffic in the API cost calculator — it preloads Gemma 4 31B with caching and batch options.
Gemma 4 31B price history
Google last raised Gemma 4 31B's output price on Oct 15, 2026 (+18% per output token), from $0.09/$0.34 to $0.2/$0.4 per 1M in/out. That is one of 2 repricings in the 89 days we have tracked it — worth knowing before you hard-code today's rate into a budget.
| Date | Input /1M | Output /1M | Output change |
|---|---|---|---|
| Aug 2, 2026 (tracking began) | $0.1 | $0.34 | — |
| Aug 26, 2026 | $0.09 | $0.34 | 0% |
| Oct 15, 2026 | $0.2 | $0.4 | +18% |
Change-points from our daily price snapshots (tracking since Aug 2, 2026; intraday moves between snapshots are not captured).
Gemma 4 31B vs Qwen2.5 72B Instruct
The closest-priced alternative from another vendor is Qwen2.5 72B Instruct (Alibaba (Qwen)) — priced within a rounding error on output, with $0.16 more per million input tokens. When two models land this close on price, the decision is quality on your own workload, not the price sheet: run 50 real requests through both and compare.
See Qwen2.5 72B Instruct pricing →Cheaper alternatives
More Google models
Frequently asked questions
› How much does the Gemma 4 31B API cost?
Gemma 4 31B costs $0.2 per million input tokens and $0.4 per million output tokens and no discounted cached-input tier. That works out to roughly 2,500,000 output tokens per dollar.
› What does the high-volume classification workload cost on Gemma 4 31B?
High-volume classification — 200K requests/day (400 in / 20 out) costs about $0.0001 per request and $528 per month on Gemma 4 31B. Short output, huge volume: the input price dominates the bill.
› What does it cost to fill Gemma 4 31B's 262K context window?
Sending 262K of input in a single request costs $0.0524 at $0.2 per million tokens — before any output. There is no cached-input tier on this model, so every repeat of that context is billed at full price. This is why large context windows are cheap to advertise and expensive to actually use.
› Is Gemma 4 31B worth the price?
Gemma 4 31B is in the cheapest end of the market — cheaper than 84% of the models we track. At this price the question is not cost but capability: it is a good fit for classification, extraction, routing and bulk summarisation, and a poor fit for multi-step reasoning where a wrong answer costs more than the tokens saved.