head-to-head

Google: Gemma 4 26B A4B vs Google: Gemma 4 31B (free)

Side-by-side comparison of specs, pricing, benchmark scores, and task rankings. Updated 2026-11-07.

Google: Gemma 4 26B A4B Google: Gemma 4 31B (free)
Vendorgooglegoogle
Quality Score100100
Benchmark Score48.453.7
Input Price$0.07/MFree
Output Price$0.23/MFree
Context Window262,144262,144
Max Output235,92932,768
Tool Calling✓✓
Structured Output✓✓
Reasoning Mode✓✓
Vision✓✓
Audio--
Benchmark Scores
ai_index42.448.4
ai_index_agentic18.123.8
ai_index_coding64.971.7
eqbench56.357.5

The verdict

For a sample job of 1 million input tokens and 250,000 output tokens, Gemma 4 31B (free) costs $0 and Gemma 4 26B A4B costs $0.12, so Gemma 4 31B (free) is free for the same work.

Both read up to 262,144 tokens at once, roughly 393 pages of text.

On our blended benchmark score Gemma 4 31B (free) leads 53.7 to 48.4.

Across the 20 tasks where they differ, Gemma 4 31B (free) on 20 (SQL Generation, Code Review, Code Completion and others).

Pick Gemma 4 31B (free) if you need lower cost, benchmark performance or the stronger all-round task scores.

Costs use current list prices per million tokens; page counts assume about 0.75 words per token and 500 words per page.

Who wins by task?

TaskGoogle: Gemma 4 26B A4B Google: Gemma 4 31B (free)
SQL Generation 153 156
Code Review 150 152
Code Completion 131 131
Code Refactoring 148 151
Bug Fixing 156 160
Unit Test Generation 140 143
Code Documentation 136 137
Regex Writing 130 131
CI/CD Pipelines 133 135
Frontend Component Design 136 138
Data Analysis 148 152
CSV / Spreadsheet Cleanup 143 145
ETL Scripting 141 143
JSON Extraction 142 143
Bulk Data Labeling 133 133
OCR / Document Parsing 138 140
Table Extraction from PDFs 138 140
Long-Document Summarization 147 149
Short-Form Summarization 129 129
Blog Post Writing 131 133

Scores reflect capability match + benchmark data + pricing for each task. Methodology →

Related comparisons

Anthropic: Claude Haiku Latest vs Google: Gemma 4 26B A4B Anthropic: Claude Haiku Latest vs Google: Gemma 4 31B (free) Anthropic: Claude Sonnet 5 vs Google: Gemma 4 26B A4B Anthropic: Claude Sonnet 5 vs Google: Gemma 4 31B (free) Anthropic: Claude Sonnet Latest vs Google: Gemma 4 26B A4B Anthropic: Claude Sonnet Latest vs Google: Gemma 4 31B (free) Google: Gemini 3.1 Flash Lite vs Google: Gemma 4 26B A4B Google: Gemini 3.1 Flash Lite vs Google: Gemma 4 31B (free)

The Model Movers Report

One email every Friday, built from this site's own rankings: the current top five by benchmark score, every model released in the last seven days, and one note worked out from that week's numbers. You can unsubscribe from any issue with one click.