google/gemma-4-31b-it · Google
Google's premier open weights model delivering near-Pro reasoning on consumer server hardware.
Last checked Aug 19, 2026. Calculations use the listed base rates; provider-specific tiers, cache writes, batch pricing, and long-context rules may differ. Confirm the current rate at the official provider source.
Input
$0.25
per 1M tokens
Output
$0.75
per 1M tokens
Cached input
—
not published
Context window
128K
max output 8.2K
Gemma 4 31B Instruct cost calculator
What Gemma 4 31B Instruct costs per task
| Use case | Input tokens | Output tokens | Cost / request | Monthly @ 1K req/day |
|---|---|---|---|---|
| Customer support chatbot | 3,500 | 350 | $0.001137 | $34.125 |
| RAG / search-augmented answers | 8,000 | 500 | $0.002375 | $71.25 |
| AI coding assistant | 12,000 | 2,000 | $0.0045 | $135.00 |
| Document summarization | 25,000 | 600 | $0.0067 | $201.00 |
| Agentic workflow | 40,000 | 1,500 | $0.0111 | $333.75 |
| Content generation | 800 | 1,200 | $0.0011 | $33.00 |
| Data extraction & tagging | 2,000 | 250 | $0.000688 | $20.625 |
| Translation | 5,000 | 5,500 | $0.005375 | $161.25 |
Assumes each use case's typical cacheable share of input. See full cost scenarios.
Compare with alternatives
| Model | Input /M | Output /M | Context | Chat request* |
|---|---|---|---|---|
| Gemma 4 31B Instruct | $0.25 | $0.75 | 128K | $0.0016 |
| GPT-5.6 Sol | $5.00 | $30.00 | 1.1M | $0.035 |
| GPT-5.6 Terra | $2.00 | $12.00 | 1.1M | $0.014 |
| GPT-5.6 Luna | $0.20 | $1.20 | 1.1M | $0.0014 |
| GPT-5.6 Cyber | $12.50 | $75.00 | 1.1M | $0.0875 |
| GPT-5.5 Standard | $5.00 | $30.00 | 512K | $0.035 |
| GPT-5.5 Pro | $30.00 | $180.00 | 512K | $0.21 |
| GPT-5.4 Workhorse | $2.50 | $15.00 | 256K | $0.0175 |
| GPT-5.4 mini | $0.75 | $4.50 | 256K | $0.00525 |
*4,000 in + 800 out tokens, 50% cached input where available.
Related calculations
FAQ
Gemma 4 31B Instruct costs $0.25 per 1M input tokens and $0.75 per 1M output tokens. Verified Aug 19, 2026 against https://ai.google.dev/gemma.
Gemma 4 31B Instruct supports a 128,000-token context window with up to 8,192 output tokens per request, tokenized with sentencepiece.
At $0.25/M input and $0.75/M output, Gemma 4 31B Instruct sits below GPT-5.6 Sol ($5.00/M in, $30.00/M out) — see the comparison table for full-workload differences.