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

Google: Gemma 4 26B A4B Google: Gemma 4 31B (free)
Vendorgooglegoogle
Quality Score100100
Benchmark Score51.0-
Input Price$0.06/MFree
Output Price$0.33/MFree
Context Window262,144262,144
Max Output-32,768
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--
Benchmark Scores
ai_index42.4-
ai_index_agentic18.1-
ai_index_coding64.9-
eqbench70.0-

Who wins by task?

TaskGoogle: Gemma 4 26B A4B Google: Gemma 4 31B (free)
SQL Generation 154 131
Code Review 151 126
Code Completion 132 129
Code Refactoring 150 127
Bug Fixing 158 130
Unit Test Generation 141 121
Code Documentation 137 126
Regex Writing 130 120
CI/CD Pipelines 134 117
Frontend Component Design 137 122
Data Analysis 149 124
CSV / Spreadsheet Cleanup 144 128
ETL Scripting 142 122
JSON Extraction 142 132
Bulk Data Labeling 133 130
OCR / Document Parsing 139 128
Table Extraction from PDFs 139 128
Long-Document Summarization 149 129
Short-Form Summarization 129 124
Blog Post Writing 132 119

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

Related comparisons

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