Skip to content
TopLLM

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.

Input$0.20/1M
Output$0.40/1M
Context256K
Overall score32.4

Pricing and tiers

USD per 1M tokens.

TierInputOutputNotes
Standard$0.20$0.40
Batch$0.39$0.97Results within about a day
Free tierFreeFreeRate limited, through at least one provider

Benchmarks against the field

Each score next to the median of every model we track on that test.

What the tests measure →
BenchmarkScoreRankMedianSource and date
LiveBench32.441 of 4168.6livebench.ai · 2026-11-30
LiveBench Coding20.341 of 4177.2livebench.ai · 2026-11-30
LiveBench Long Agentic8.541 of 4138.8livebench.ai · 2026-11-30

Run it locally

31B parameters. Q4_K_M with 32K context needs about 27.1 GB.

Can my GPU or Mac run it? →

Find Gemma 4 31B on Ollama

Cheaper alternatives with similar scores

Specs

Company
Google
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.

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.