Gemma 4 31B
google/gemma-4-31b-it-20260402
Google's Gemma 4 31B model processes image, text, and video inputs to generate text outputs. It has a context length of 262,144 tokens, supports tools and reasoning, and is released as open weights. Pricing is $0.20 per million input tokens and $0.40 per million output tokens.
- tool use
- structured outputs
- reasoning
- open-weight
At a glance
Specifications
What the API gives you
- Context window
- 262K tokens
- Max output
- 16K tokens
- Input price
- $0.20 / 1M tokens
- Output price
- $0.40 / 1M tokens
- Cache read
- —
- Modalities
- image, text, video → text
- Knowledge cutoff
- —
- Released
- Apr 2, 2026
Measured evidence
Public benchmark record
- FACTS Grounding
- 80.7%2026-10-21
- GPQA Diamond (Epoch AI)‡
- 75.8% ± 3.12026-08-06minimal effort, evaluated 2026-08-06
- LMArena Creative Writing
- 1417 Elo2026-10-20
- LMArena Instruction Following
- 1433 Elo2026-10-20
- LMArena Long Query
- 1446 Elo2026-10-20
- LMArena Math
- 1463 Elo2026-10-20
- LMArena Text
- 1452 Elo2026-10-20
- LMArena Text Factuality
- 1449 Elo2026-10-20
- LMArena Vision
- 1262 Elo2026-10-19
- LMArena Vision Diagrams
- 1283 Elo2026-10-19
- LMArena Vision OCR
- 1273 Elo2026-10-19
- LMArena WebDev
- 1367 Elo2026-10-19
- OTIS Mock AIME (Epoch AI)‡
- 73.3% ± 6.72026-08-06minimal effort, evaluated 2026-08-06
- SimpleQA Verified (Epoch AI)
- 10.4% ± 12026-08-27evaluated 2026-08-27
LMArena data licensed CC-BY-4.0. Aider (Apache-2.0) and SWE-bench (MIT) are open. Design Arena uses blind human preference. ‡ Submitted scaffold plus model result. Compare the harness and effort settings, not only the model name.
Open-weight model on Hugging Face.
Task evidence
How broad is the support?
Each status is exact to this model version and the selected task. Official release claims remain provisional.
- Best LLM for Document SummarizationEstablished evidence
65% of intended weighted task evidence across 2 independent sources. 5 of 6 configured evaluation feeds currently have results.
- Best LLM for SummarizationEstablished evidence
65% of intended weighted task evidence across 2 independent sources. 5 of 6 configured evaluation feeds currently have results.
- Best LLM for Grounded RAGEstablished evidence
62% of intended weighted task evidence across 3 independent sources. 5 of 7 configured evaluation feeds currently have results.
- Best LLM for RAG & Long ContextEstablished evidence
61% of intended weighted task evidence across 2 independent sources. 5 of 6 configured evaluation feeds currently have results.
- Best LLM for a General AssistantEstablished evidence
59% of intended weighted task evidence across 2 independent sources. 6 of 6 configured evaluation feeds currently have results.
- Best LLM for Logic & Problem SolvingEstablished evidence
55% of intended weighted task evidence across 2 independent sources. 5 of 5 configured evaluation feeds currently have results.
Show all 35 tasks
- Best LLM for Math & ReasoningEstablished evidence
44% of intended weighted task evidence across 3 independent sources. 7 of 7 configured evaluation feeds currently have results.
- Best LLM for Competition MathEstablished evidence
37% of intended weighted task evidence across 2 independent sources. 6 of 6 configured evaluation feeds currently have results.
- Best LLM for Business WritingProvisional evidence
67% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following. 4 of 4 configured evaluation feeds currently have results.
- Best LLM for Marketing CopyProvisional evidence
67% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following. 4 of 4 configured evaluation feeds currently have results.
- Best LLM for Chat & RoleplayProvisional evidence
67% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or LiveBench Language. 4 of 4 configured evaluation feeds currently have results.
- Best LLM for Roleplay & CharacterProvisional evidence
67% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or LiveBench Language. 4 of 4 configured evaluation feeds currently have results.
- Best LLM for OCR & DocumentsProvisional evidence
65% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from Structured-output eval or VLMEvalKit tasks. 3 of 5 configured evaluation feeds currently have results.
- Best LLM for Charts & DiagramsProvisional evidence
65% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from Structured-output eval or VLMEvalKit tasks. 3 of 5 configured evaluation feeds currently have results.
- Best LLM for Vision & DocumentsProvisional evidence
60% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from Structured-output eval or VLMEvalKit tasks. 4 of 6 configured evaluation feeds currently have results.
- Best LLM for Document ParsingProvisional evidence
58% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from Structured-output eval or VLMEvalKit tasks. 3 of 5 configured evaluation feeds currently have results.
- Best LLM for Creative WritingProvisional evidence
56% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or LiveBench Language. 4 of 4 configured evaluation feeds currently have results.
- Best LLM for WritingProvisional evidence
56% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or LiveBench Language. 4 of 4 configured evaluation feeds currently have results.
- Best LLM for Image UnderstandingProvisional evidence
50% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Reasoning or VLMEvalKit tasks. 2 of 3 configured evaluation feeds currently have results.
- Best LLM for Massive ContextProvisional evidence
47% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LongBench v2. 2 of 3 configured evaluation feeds currently have results.
- Best LLM for Code CompletionProvisional evidence
36% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from Aider Polyglot or LiveBench Coding. 3 of 3 configured evaluation feeds currently have results.
- Best Open-Weight LLM for Self-HostingProvisional evidence
27% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or Route reliability. 2 of 3 configured evaluation feeds currently have results.
- Best LLM for Frontend & UIProvisional evidence
27% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from Design Arena Coding or Design Arena UI. 6 of 6 configured evaluation feeds currently have results.
- Best Value LLMProvisional evidence
25% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or Route reliability. 2 of 3 configured evaluation feeds currently have results.
- Best Local LLM for CodingProvisional evidence
21% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from Aider Polyglot or LiveBench Coding. 4 of 4 configured evaluation feeds currently have results.
- Best LLM for CodingProvisional evidence
20% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from Aider Polyglot or Design Arena Coding. 7 of 7 configured evaluation feeds currently have results.
- Best LLM for Debugging & Code ReviewProvisional evidence
17% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from Aider Polyglot or LiveBench Coding. 5 of 5 configured evaluation feeds currently have results.
- Best LLM for Fast SummariesProvisional evidence
17% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or Route reliability. 2 of 3 configured evaluation feeds currently have results.
- Best LLM for Literary TranslationProvisional evidence
17% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or LiveBench Language. 3 of 4 configured evaluation feeds currently have results.
- Best LLM for Everyday TranslationProvisional evidence
17% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or LiveBench Language. 3 of 4 configured evaluation feeds currently have results.
- Best LLM for TranslationProvisional evidence
17% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or LiveBench Language. 3 of 4 configured evaluation feeds currently have results.
- Best LLM for JSON & Schema OutputProvisional evidence
12% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from Berkeley Function Calling or LiveBench Data Analysis. 3 of 4 configured evaluation feeds currently have results.
- Best LLM for Structured Data ExtractionProvisional evidence
12% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from Berkeley Function Calling or LiveBench Data Analysis. 3 of 4 configured evaluation feeds currently have results.
- Best Cheap LLM for High VolumeProvisional evidence
10% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or Route reliability. 2 of 3 configured evaluation feeds currently have results.
- Cheapest Capable LLMProvisional evidence
10% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or Route reliability. 2 of 3 configured evaluation feeds currently have results.
Recommendation coverage
Where this model appears
Not currently included in a published recommendation. The task evidence panel above says exactly what is confirmed and what is still missing.
Catalog data via OpenRouter and models.dev. Last checked within the past 6 hours.