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-07-27.

Google: Gemini 3.5 Flash Google: Gemma 4 31B (free)
Vendorgooglegoogle
Quality Score100100
Benchmark Score83.356.9
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-70.8

Who wins by task?

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

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

Related comparisons

Google: Gemini 3.6 Flash vs Google: Gemini 3.5 Flash Google: Gemini 3.6 Flash 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) Thinking Machines: Inkling vs Google: Gemini 3.5 Flash Thinking Machines: Inkling vs Google: Gemma 4 31B (free) Meta: Muse Spark 1.1 vs Google: Gemini 3.5 Flash Meta: Muse Spark 1.1 vs Google: Gemma 4 31B (free)