Gemma 4 31B
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
Benchmark scores
How it is measured →Ranked 31 · bars are scaled to the field maximum for that benchmark.
| Benchmarks | Score | Vs. best in field | Gap |
|---|---|---|---|
| AA Intelligence Index v5 Intelligence index | 4.0 | 6% | −61.0 pts |
| AA Intelligence Index v4.3.2 Intelligence index (legacy) | 19.0 | 33% | −38.6 pts |
| GPQA Diamond Graduate-level science reasoning | 75.8 | 79% | −20.6 pts |
| Terminal-Bench 4.0 Terminal-agent tasks | 0.0 | 0% | −67.2 pts |
| LiveBench Design Document generation (DOCX/PPT/PDF) | 58.4 | 67% | −28.5 pts |
| Vals Index Vals composite index | 16.8 | 23% | −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 fieldsHow 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.
Gemini
1M context plus native multimodality; first pick for research and long documents
NotebookLM
Turns a document set into a conversational knowledge source
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.
| Model | v5 | Blended | tok/s | Score 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 leaderboardRelated 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:
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.