Google: Gemma 4 31B (free) vs Google: Gemma 4 31B
Side-by-side comparison of specs, pricing, benchmark scores, and task rankings. Updated 2026-11-07.
| Google: Gemma 4 31B (free) | Google: Gemma 4 31B | |
|---|---|---|
| Vendor | ||
| Quality Score | 100 | 100 |
| Benchmark Score | 53.7 | 53.7 |
| Input Price | Free | $0.20/M |
| Output Price | Free | $0.40/M |
| Context Window | 262,144 | 262,144 |
| Max Output | 32,768 | 16,384 |
| Tool Calling | ✓ | ✓ |
| Structured Output | ✓ | ✓ |
| Reasoning Mode | ✓ | ✓ |
| Vision | ✓ | ✓ |
| Audio | - | - |
| Benchmark Scores | ||
| ai_index | 48.4 | 48.4 |
| ai_index_agentic | 23.8 | 23.8 |
| ai_index_coding | 71.7 | 71.7 |
| eqbench | 57.5 | 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 31B costs $0.30, 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.
Across the 8 tasks where they differ, Gemma 4 31B (free) scores higher on 8 (SQL Generation, Code Completion, Code Documentation and others).
Pick Gemma 4 31B (free) if you need lower cost 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 31B (free) | Google: Gemma 4 31B |
|---|---|---|
| SQL Generation | 156 | 156 |
| Code Completion | 131 | 131 |
| Code Documentation | 137 | 137 |
| Regex Writing | 131 | 131 |
| JSON Extraction | 143 | 143 |
| Bulk Data Labeling | 133 | 133 |
| Short-Form Summarization | 129 | 129 |
| Blog Post Writing | 133 | 133 |
Scores reflect capability match + benchmark data + pricing for each task. Methodology →