head-to-head

Google: Gemini 3.5 Flash vs Google: Gemma 4 31B (free)

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

Google: Gemini 3.5 Flash Google: Gemma 4 31B (free)
Vendorgooglegoogle
Quality Score100100
Benchmark Score84.253.7
Input Price$1.50/MFree
Output Price$9.00/MFree
Context Window1,048,576262,144
Max Output65,53632,768
Tool Calling✓✓
Structured Output✓✓
Reasoning Mode✓✓
Vision✓✓
Audio✓-
Benchmark Scores
ai_index82.848.4
ai_index_agentic61.823.8
ai_index_coding100.071.7
eqbench-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 Gemini 3.5 Flash costs $3.75, so Gemma 4 31B (free) is free for the same work.

Gemini 3.5 Flash reads up to 1,048,576 tokens at once, roughly 1,573 pages of text, against about 393 pages for Gemma 4 31B (free).

Only Gemini 3.5 Flash offers audio input.

On our blended benchmark score Gemini 3.5 Flash leads 84.2 to 53.7.

Across the 20 tasks where they differ, Gemini 3.5 Flash scores higher on 16 (SQL Generation, Code Review, Code Refactoring and others), Gemma 4 31B (free) on 4 (Code Completion, JSON Extraction, Bulk Data Labeling and others).

Gemini 3.5 Flash was released in May 2026 and Gemma 4 31B (free) in April 2026.

Pick Gemini 3.5 Flash if you need long documents, audio input, benchmark performance or the stronger all-round task scores; pick Gemma 4 31B (free) if you need lower cost.

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?

TaskGoogle: Gemini 3.5 FlashGoogle: Gemma 4 31B (free)
SQL Generation 168 156
Code Review 164 152
Code Completion 119 131
Code Refactoring 162 151
Bug Fixing 176 160
Unit Test Generation 152 143
Code Documentation 141 137
Regex Writing 133 131
CI/CD Pipelines 143 135
Frontend Component Design 145 138
Data Analysis 167 152
CSV / Spreadsheet Cleanup 153 145
ETL Scripting 152 143
JSON Extraction 138 143
Bulk Data Labeling 124 133
OCR / Document Parsing 146 140
Table Extraction from PDFs 146 140
Long-Document Summarization 157 149
Short-Form Summarization 121 129
Blog Post Writing 138 133

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

Related comparisons

Anthropic: Claude Haiku Latest vs Google: Gemma 4 31B (free) Anthropic: Claude Sonnet 5 vs Google: Gemini 3.5 Flash Anthropic: Claude Sonnet 5 vs Google: Gemma 4 31B (free) Anthropic: Claude Sonnet Latest vs Google: Gemma 4 31B (free) ByteDance Seed: Seed-2.0-Code vs Google: Gemini 3.5 Flash Google: Gemini 3.1 Flash Lite vs Google: Gemma 4 31B (free) Google: Gemini 3.5 Flash Lite vs Google: Gemini 3.5 Flash Google: Gemini 3.5 Flash Lite vs Google: Gemma 4 31B (free)

The Model Movers Report

One email every Friday, built from this site's own rankings: the current top five by benchmark score, every model released in the last seven days, and one note worked out from that week's numbers. You can unsubscribe from any issue with one click.