head-to-head

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

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

Google: Gemma 4 26B A4B (free) Google: Gemma 4 31B
Vendorgooglegoogle
Quality Score100100
Benchmark Score51.856.9
Input PriceFree$0.10/M
Output PriceFree$0.34/M
Context Window262,144262,144
Max Output32,768262,144
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--
Benchmark Scores
ai_index42.448.4
ai_index_agentic18.123.8
ai_index_coding64.971.7
eqbench70.070.8

Who wins by task?

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

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

Related comparisons

Thinking Machines: Inkling Small vs Google: Gemma 4 26B A4B (free) Thinking Machines: Inkling Small vs Google: Gemma 4 31B Qwen: Qwen3.7 Flash vs Google: Gemma 4 26B A4B (free) Qwen: Qwen3.7 Flash vs Google: Gemma 4 31B Google: Gemini 3.6 Flash vs Google: Gemma 4 26B A4B (free) Google: Gemini 3.6 Flash vs Google: Gemma 4 31B Google: Gemini 3.5 Flash Lite vs Google: Gemma 4 26B A4B (free) Google: Gemini 3.5 Flash Lite vs Google: Gemma 4 31B