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

Google: Gemini 3.5 Flash Google: Gemma 4 31B (free)
Vendorgooglegoogle
Quality Score100100
Benchmark Score84.5-
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.8-
ai_index_agentic61.8-
ai_index_coding100.0-

Who wins by task?

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

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

Related comparisons

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