Gemma 4 31B (batch) API Pricing
Google · context window 262K · prices updated 2026-09-15
Where Gemma 4 31B (batch) sits on price
At $0.97 per million output tokens, Gemma 4 31B (batch) is a mid tier model — 2.1× cheaper than the median output price of $2.08, which puts it cheaper than 70% and pricier than 30% of the models we track. It sits 10th cheapest of the 38 Google models we track. Output is only 2.5× 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 (batch)
These three workloads are the ones teams actually run on a mid-priced model — a $0.97/1M model is not bought for the same job as one ten times the price.
| Workload | Per request | Per month |
|---|---|---|
| Support chatbot — 500 conversations/day (5K in / 1.4K out) Conversation history re-sent each turn — the classic prompt-caching win. | $0.0033 | $49.62 |
| Document pipeline — 10K docs/day (3K in / 500 out) Batch-friendly: no user waiting, so a ~50% batch discount usually applies. | $0.0017 | $497 |
| Small app — 1K requests/day (500 in / 150 out) The baseline most side projects actually run at. | $0.0003 | $10.21 |
Model your exact traffic in the API cost calculator — it preloads Gemma 4 31B (batch) with caching and batch options.
Gemma 4 31B (batch) price history
Gemma 4 31B (batch)'s price has not moved since we began tracking it on Aug 28, 2026 — 18 days of stability in a market where 78 of the 334 models we track have repriced over the same period, including 6 of Google's own 38 models.
Change-points from our daily price snapshots (tracking since Aug 28, 2026; intraday moves between snapshots are not captured).
Gemma 4 31B (batch) vs Qwen3 Coder Flash
The closest-priced alternative from another vendor is Qwen3 Coder Flash (Alibaba (Qwen)) — priced within a rounding error on output, with $0.195 less 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 Qwen3 Coder Flash pricing →Cheaper alternatives
More Google models
Frequently asked questions
› How much does the Gemma 4 31B (batch) API cost?
Gemma 4 31B (batch) costs $0.39 per million input tokens and $0.97 per million output tokens and no discounted cached-input tier. That works out to roughly 1,030,928 output tokens per dollar.
› What does the support chatbot workload cost on Gemma 4 31B (batch)?
Support chatbot — 500 conversations/day (5K in / 1.4K out) costs about $0.0033 per request and $49.62 per month on Gemma 4 31B (batch). Conversation history re-sent each turn — the classic prompt-caching win.
› What does it cost to fill Gemma 4 31B (batch)'s 262K context window?
Sending 262K of input in a single request costs $0.1022 at $0.39 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 (batch) worth the price?
Gemma 4 31B (batch) sits in the middle of the market (10 of 38 by price within Google). The honest test is a routing experiment: send the same 200 real requests to this model and to a tier below, and compare failure rate against the price gap — most teams find a majority of traffic never needed the pricier model.