Home/Models/Gemma 4 31B
G

Gemma 4 31B

Open weights Google 2026-05 262K context

The most permissively licensed local model: 75.8% on GPQA Diamond with reasoning off and 85.7% with it on - the local-model ceiling sits in that band

Intelligence v5
4.0
Leaderboard rank
#31
Input / output
$0.10/$0.40
Blended 3:1
$0.17
Output speed
24 tok/s
Value
23 pts/$
Capability profile Normalised to the field maximum
Specifications
Vendor
Google
Released
2026-05
Weights
Open (Apache-2.0)
Context
262,144 tokens
Max output
Undisclosed
Parameters
31B dense
Input price
$0.10 / 1M
Output price
$0.40 / 1M
Cache hit
n/a
Output speed
24 tok/s
Intelligence
4.0(v5)

Benchmark scores

How it is measured →

Ranked 31 · bars are scaled to the field maximum for that benchmark.

BenchmarksScoreVs. best in fieldGap
AA Intelligence Index v5 Intelligence index 4.06% −61.0 pts
AA Intelligence Index v4.3.2 Intelligence index (legacy) 19.033% −38.6 pts
GPQA Diamond Graduate-level science reasoning 75.879% −20.6 pts
Terminal-Bench 4.0 Terminal-agent tasks 0.00% −67.2 pts
LiveBench Design Document generation (DOCX/PPT/PDF) 58.467% −28.5 pts
Vals Index Vals composite index 16.823% −56.3 pts

Assessment

Apache-2.0, in 2B / 4B / 26B (A4B) / 31B sizes. The 75.8% GPQA Diamond figure uses the non-reasoning (minimal reasoning) basis; with reasoning on - AA's standard setting - the same model reaches 85.7%. Against the 96.4% column leader the gap narrows from 20.6 points to 10.7, which is a trade-off of local deployment rather than a model that cannot reason.

In plain language

From recorded fields
At a glance
Gemma 4 31B is an open-weight model released by Google in 2026-05. This site records Intelligence Index v5 4, rank 31 of 32; $0.1 / $0.4 per 1M input / output tokens, 24 tok/s output, 262,144-token context.
Best for
Value of 22.9 pts/$ (rank 14/31, ahead of 55% of models) suits cost-sensitive batch workloads. Weights are open (Apache-2.0), so it can be self-hosted and fine-tuned. Blended price $0.175 ranks 3 cheapest among API-priced models.
Watch out for
Output speed of 24 tok/s (rank 31/31): allow extra wait on long answers. Document generation of 58.4 (rank 18/18): pick another model for long-form or design output.
FAQ
How much does Gemma 4 31B cost via API?

This site records $0.1 / 1M input tokens and $0.4 / 1M output tokens, a blended (3:1) price of $0.175, with cache hits at not applicable. Prices come from public vendor pricing pages and may change; check the vendor before buying.

Is Gemma 4 31B good for agents or long documents?

It scores 0 on Terminal-Bench 4.0 (rank 31/32), which is not outstanding. a 262,144-token context; try your own task set before long agent runs.

Can I self-host Gemma 4 31B?

Yes. It is recorded as open-weight under Apache-2.0. Check the official model card for hardware requirements and licence terms; this site only records the licence name.

Where you can use it

AI tools library →

Cards lead to the matching entry in this site's tool library, which links on to the vendor.

Call it over an API, or wire it into your own workflow: OpenRouter, Dify, n8n

Use it inside coding tools: Cursor, Cline, Aider

Download the weights and run locally: Ollama, LM Studio, Hugging Face

Self-host an inference service: vLLM

Which models each tool exposes, and how to call them, is set by the vendor; this site only records vendor and product ownership.

Related terms

All 138 terms →

Concepts used on this page, with one-line definitions, misconceptions and further reading in the AI glossary.

At the same price

The four models closest on blended price, side by side.

Modelv5Blendedtok/sScore gap
Qwen3.8 27B Open sourceAlibaba Qwen 20.0 $0.17 44 +16.0
Claude Haiku 5.5Anthropic 37.0 $0.20 255 +33.0
GPT-6 LunaOpenAI 28.0 $0.20 109 +24.0
GLM-5.3 Flash Open sourceZ.ai 28.0 $0.24 47 +24.0

Compare side by side

Line it up against other models on price, speed and every benchmark.

The comparison tool lines up to 4 models side by side with switchable normalisation — built for purchasing decisions.

Open the comparison tool → Back to leaderboard

Related benchmarks

Data sources & methodology

Full methodology & sources →

Every number on this page comes from published evaluations. We run no tests of our own and accept no vendor-submitted scores. Main sources:

Artificial Analysis Intelligence Index v5v4.3.2 (separate column)LMArena Text Arena Elo

Evaluation data in the wider industry also comes from public datasets, leaderboard platforms and their evaluation harnesses, private in-house sets, production logs and user feedback, and synthetic data. This site's current rankings use only the parts that are public, independently checkable and clearly defined.