Gemma 4 31B pricing & price history
Gemma 4 31B by Google costs $0.20 per 1M input tokens and $0.40 per 1M output tokens, with a 262K token context window.
Price history
| Date | Input | Output |
|---|---|---|
| 2026-10-26 | $0.10 → $0.20 +100% | $0.34 → $0.40 +18% |
| 2026-10-26 | $0.20 → $0.10 -50% | $0.40 → $0.34 -15% |
| 2026-10-14 | $0.09 → $0.20 +122% | $0.34 → $0.40 +18% |
Cost calculator
Cheaper alternatives to Gemma 4 31B
| Model | Input | Output | Context | Intel. | |
|---|---|---|---|---|---|
Lyria 3 Pro Preview Google | Free | Free | 1M | — | compare |
Lyria 3 Clip Preview Google | Free | Free | 1M | — | compare |
Summarize Scaledown | $0.04 | Free | 1M | — | compare |
Extract Scaledown | $0.04 | Free | 1M | — | compare |
Nex-N2.5-Mini Nex Agi | $0.025 | $0.10 | 262K | — | compare |
GLM 5.3 Flash Z.ai (Zhipu) | $0.0399 | $0.0784 | 1M | 27.8 | compare |
Qwen3.7 Flash Qwen (Alibaba) | $0.03 | $0.13 | 1M | — | compare |
Gemma 3 4B Google | $0.05 | $0.10 | 131K | — | compare |
Using a relay or third-party API?
Check for free whether it really serves Gemma 4 31B: output fingerprint, tokenizer and billing evidence, results in 1–3 minutes.
About 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...
FAQ
How much does Gemma 4 31B cost?
Gemma 4 31B by Google costs $0.20 per 1M input tokens and $0.40 per 1M output tokens, with a 262K token context window. A typical request with 2,000 input and 500 output tokens costs about $0.0006.
What is the context window of Gemma 4 31B?
Gemma 4 31B supports up to 262,144 tokens of context and up to 16,384 output tokens per request.
Has Gemma 4 31B’s price changed?
Yes. ModelBank recorded 3 price changes; the latest on 2026-10-26.
Is Gemma 4 31B being deprecated?
No retirement date has been announced for Gemma 4 31B as of 2026-11-12.
What are cheaper alternatives to Gemma 4 31B?
Cheaper options include Lyria 3 Pro Preview (Free/Free), Lyria 3 Clip Preview (Free/Free), Summarize ($0.04/Free), Extract ($0.04/Free).