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-06-16.

Google: Gemma 4 26B A4B (free) Google: Gemma 4 31B
Vendorgooglegoogle
Quality Score100100
Benchmark Score-68.5
Input PriceFree$0.12/M
Output PriceFree$0.35/M
Context Window262,144262,144
Max Output32,768262,144
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--
Benchmark Scores
ai_index-64.7
ai_index_agentic-67.6
ai_index_coding-63.9
eqbench-70.8

Who wins by task?

TaskGoogle: Gemma 4 26B A4B (free)Google: Gemma 4 31B
SQL Generation 131 164
Code Review 126 161
Code Completion 129 132
Code Refactoring 127 157
Bug Fixing 130 173
Unit Test Generation 121 148
Code Documentation 126 141
Regex Writing 120 135
CI/CD Pipelines 117 140
Frontend Component Design 122 143
Data Analysis 124 163
CSV / Spreadsheet Cleanup 128 146
ETL Scripting 122 149
JSON Extraction 132 143
Bulk Data Labeling 130 133
OCR / Document Parsing 128 141
Table Extraction from PDFs 128 141
Long-Document Summarization 129 155
Short-Form Summarization 124 131
Blog Post Writing 119 138

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

Related comparisons

MoonshotAI: Kimi K2.7 Code vs Google: Gemma 4 26B A4B (free) MoonshotAI: Kimi K2.7 Code vs Google: Gemma 4 31B Qwen: Qwen3.7 Plus vs Google: Gemma 4 26B A4B (free) Qwen: Qwen3.7 Plus vs Google: Gemma 4 31B MiniMax: MiniMax M3 vs Google: Gemma 4 26B A4B (free) MiniMax: MiniMax M3 vs Google: Gemma 4 31B StepFun: Step 3.7 Flash vs Google: Gemma 4 26B A4B (free) StepFun: Step 3.7 Flash vs Google: Gemma 4 31B