Google: Gemma 4 31B API Pricing
Google: Gemma 4 31B costs $0.200 per 1M input tokens and $0.400 per 1M output tokens. Context window: 262K. Prices verified 2026-10-21 · source
Alternatives to consider
87% cheaper with nearly identical quality (20.1 vs 14.7)
+24.8 quality points for 5% more
Cheapest google model — 83% less per month
Rebuilt daily from our snapshot archive — the chart appears once a model has 5+ snapshots of history.
High adoption means battle-tested weights, more fine-tunes/quants, and faster bug fixes. View on HuggingFace →
From our own daily snapshot archive — independent of provider announcements.
Intelligence measures reasoning/knowledge/coding benchmarks. A high score with a low blended price = value pick; check the value chart to see where this model lands.
Higher effort = deeper thinking = more reasoning tokens billed as output.
What would Google: Gemma 4 31B cost you per month?
| Workload | Requests/mo | Avg tokens (in/out) | Est. monthly cost |
|---|---|---|---|
| Light chatbot | 10,000 | 800 / 400 | $3.20 |
| Coding agent | 5,000 | 8,000 / 2,000 | $12.00 |
| RAG pipeline | 30,000 | 4,000 / 500 | $30.00 |
| Doc summarizer | 2,000 | 20,000 / 1,000 | $8.80 |
Estimates use list prices without prompt caching. Caching can cut input cost by up to 90% on repeated context.
About Google: Gemma 4 31B
Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output. Features a 256K token context window, configurable thinking/reasoning mode, native function...
Compare Google: Gemma 4 31B with
- 4 31B vs OpenAI: GPT-5.6 Terra Pro
- 4 31B vs Anthropic: Claude Fable 5
- 4 31B vs Anthropic: Claude Opus 5
- 4 31B vs OpenAI: GPT-5.6 Sol
Popular head-to-heads — see all on the comparisons index.
Frequently asked questions
How much does Google: Gemma 4 31B cost?
Google: Gemma 4 31B costs $0.200 per 1M input tokens and $0.400 per 1M output tokens. Verified 2026-10-21 — provider source.
What is the context window?
262K tokens, with up to 16K output tokens per response. That's roughly 328 pages of text in a single request.
Does it support prompt caching?
Prompt-caching pricing is not published for this model via OpenRouter.
What's a cheaper alternative?
ScaleDown: Summarize saves about 89% on a typical workload with comparable quality.
Official resources
- Google: Gemma 4 31B on OpenRouter — live endpoint, pricing source of record.
- Artificial Analysis leaderboard → — independent intelligence and performance rankings.
- Gemini docs → — first-party model specifications and limits.
- LMArena leaderboard → — independent human-preference rankings.
- Shred your current bill — paste a CSV and see if switching saves money.