Gemma 4 31B
Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output.
At a glance
- Input / 1M
- $0.09
- Output / 1M
- $0.34
- Context
- 262K
- Max output
- 16K
- Intelligence
- 14.7
- Released
- Apr 2026
Pricing
Gemma 4 31B API pricing
Per-token rates, plus what common tasks actually cost.
| Input tokensPer 1M tokens | $0.09 |
|---|---|
| Output tokensPer 1M tokens | $0.34 |
| Cached input (read)Per 1M tokens | $0.05 |
| Cache writePer 1M tokens | Not available |
Chat message
2K in, 500 out
$0.35
per 1,000 requests
Coding task
30K in, 4K out
$4.06
per 1,000 requests
Long document summary
150K in, 2K out
$14.18
per 1,000 requests
Benchmarks
Gemma 4 31B benchmark scores
Independent scores from Artificial Analysis. Higher is better.
Intelligence index
14.7
Coding index
43.4
Agentic index
4.2
Specs
Context window and capabilities
What it can read, what it can write, and which API features it supports.
- Context window
- 262K tokens
- Max output
- 16K tokens
- Input types
- Image, Text, Video
- Output types
- Text
- Reasoning effort
- Not available
- Release date
- April 2, 2026
- Tool calling
- Structured outputs
- JSON mode
- Reasoning
- Temperature
- Stop sequences
- Deterministic seed
- Verbosity control
Compare
Gemma 4 31B vs other models
See how Gemma 4 31B stacks up head to head on price, benchmarks, and features.
Gemma 4 31B vs Gemini 2.5 Flash Lite
Google vs Google
See comparisonGemma 4 31B vs gpt-oss-120b
Google vs OpenAI
See comparisonGemma 4 31B vs Gemini 3.1 Flash Lite
Google vs Google
See comparisonGemma 4 31B vs Gemini 2.5 Flash
Google vs Google
See comparisonGemma 4 31B vs Gemma 4 26B A4B
Google vs Google
See comparisonGemma 4 31B vs GPT-5 Nano
Google vs OpenAI
See comparisonMore Gemma 4 31B comparisons
- Gemma 4 31B vs Ling 3.0 Flash
- Gemma 4 31B vs DeepSeek V3.1
- Gemma 4 31B vs Mercury 2.5
- Gemma 4 31B vs Qwen3.5-9B
- Gemma 4 31B vs Nemotron 3.5 Lightning
- Gemma 4 31B vs Granite 4.2 8B
- Gemma 4 31B vs GLM 4.7 Flash
- Gemma 4 31B vs DeepSeek V3.2 Exp
- Gemma 4 31B vs Nemotron 3 Super
- Gemma 4 31B vs Step 3.5 Flash
- Gemma 4 31B vs DeepSeek V3.1 Terminus
- Gemma 4 31B vs Mercury 2
Alternatives
Gemma 4 31B alternatives
Similar models worth considering, and where each one has the edge.
StepFun
Step 3.5 Flash
Gemma 4 26B A4B
DeepSeek
DeepSeek V3.2 Exp
Want to learn about other models? Browse all models
FAQ
Frequently asked questions
How much does Gemma 4 31B cost?
Gemma 4 31B costs $0.09 per 1M input tokens and $0.34 per 1M output tokens through the API. A typical chat message costs about $0.35 per 1,000 messages.
What is the context window of Gemma 4 31B?
Gemma 4 31B accepts up to 262K tokens of input and can write up to 16K tokens in a single response.
What is the best alternative to Gemma 4 31B?
Step 3.5 Flash from StepFun is a strong alternative. It offers: 1.1x cheaper output, higher intelligence score.
Can I use Gemma 4 31B alongside other models?
Yes. Shortcut Chat sends one prompt to Gemma 4 31B and any other models you pick at the same time, so you can compare answers side by side.
Try Gemma 4 31B next to every other model.
Use Gemma 4 31B alongside all the other models. Use one at a time, or multiple together. Get the best answer from every AI.