Gemma 4 31B
Open weightsVerified December 1, 2026
Gemma 4 31B is a strong fit for high volume work on a budget, self hosting, at $0.20/$0.40 per 1M tokens.
Pricing and tiers
USD per 1M tokens.
| Tier | Input | Output | Notes |
|---|---|---|---|
| Standard | $0.20 | $0.40 | |
| Batch | $0.39 | $0.97 | Results within about a day |
| Free tier | Free | Free | Rate limited, through at least one provider |
Benchmarks against the field
Each score next to the median of every model we track on that test.
| Benchmark | Score | Rank | Median | Source and date |
|---|---|---|---|---|
| LiveBench | 32.4 | 41 of 41 | 68.6 | livebench.ai · 2026-11-30 |
| LiveBench Coding | 20.3 | 41 of 41 | 77.2 | livebench.ai · 2026-11-30 |
| LiveBench Long Agentic | 8.5 | 41 of 41 | 38.8 | livebench.ai · 2026-11-30 |
Run it locally
31B parameters. Q4_K_M with 32K context needs about 27.1 GB.
Head to head
Cheaper alternatives with similar scores
Specs
- Company
- Released
- April 2, 2026
- Weights
- Open
- Context window
- 262,144 tokens
- Max output
- 16,384 tokens
- Official page
- Model documentation
Where Gemma 4 31B ranks
Its place on our main guides.
Best LLM right now
Gemma 4 31B ranks #35 of 35 on LiveBench.
Best LLM for coding
The top coding models, with cheaper alternatives.
Best open source LLMs
#13 among open weight models.
Best local LLM for 24 GB
Gemma 4 31B needs about 21 GB of memory at 4 bit.
LLM API pricing comparison
Gemma 4 31B costs about $0.25 per million tokens, blended.
LLM leaderboard
Every model with its scores side by side.
Gemma 4 31B questions
How much does Gemma 4 31B cost?
Gemma 4 31B costs $0.20 per million input tokens and $0.40 per million output tokens and batch at $0.39/$0.97. The cost calculator turns that into a monthly bill.
What is the context window of Gemma 4 31B?
Gemma 4 31B reads up to 262,144 tokens and writes up to 16,384 in one reply.
Can I run Gemma 4 31B locally?
Yes. At Q4_K_M with 32K context it needs about 27.1 GB, so it fits on 32GB VRAM and up. See the 32GB VRAM guide.
What is a good alternative to Gemma 4 31B?
GLM 5.3 Flash scores close to it for less per token. Compare it head to head with Mistral Large 4.