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) | |
|---|---|---|
| Vendor | ||
| Quality Score | 100 | 100 |
| Benchmark Score | 48.4 | 53.7 |
| Input Price | $0.07/M | Free |
| Output Price | $0.23/M | Free |
| Context Window | 262,144 | 262,144 |
| Max Output | 235,929 | 32,768 |
| Tool Calling | ✓ | ✓ |
| Structured Output | ✓ | ✓ |
| Reasoning Mode | ✓ | ✓ |
| Vision | ✓ | ✓ |
| Audio | - | - |
| Benchmark Scores | ||
| ai_index | 42.4 | 48.4 |
| ai_index_agentic | 18.1 | 23.8 |
| ai_index_coding | 64.9 | 71.7 |
| eqbench | 56.3 | 57.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?
| Task | Google: 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 →