head-to-head

Google: Gemma 4 31B (free) vs Google: Gemma 4 31B

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

Google: Gemma 4 31B (free) Google: Gemma 4 31B
Vendorgooglegoogle
Quality Score100100
Benchmark Score-56.4
Input PriceFree$0.12/M
Output PriceFree$0.35/M
Context Window262,144262,144
Max Output8,192262,144
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--
Benchmark Scores
ai_index-48.4
ai_index_agentic-23.8
ai_index_coding-71.7
eqbench-70.8

Who wins by task?

TaskGoogle: Gemma 4 31B (free)Google: Gemma 4 31B
SQL Generation 131 157
Code Review 126 154
Code Completion 129 132
Code Refactoring 127 152
Bug Fixing 130 161
Unit Test Generation 121 143
Code Documentation 126 138
Regex Writing 120 131
CI/CD Pipelines 117 136
Frontend Component Design 122 138
Data Analysis 124 152
CSV / Spreadsheet Cleanup 128 146
ETL Scripting 122 144
JSON Extraction 132 143
Bulk Data Labeling 130 133
OCR / Document Parsing 128 140
Table Extraction from PDFs 128 140
Long-Document Summarization 129 150
Short-Form Summarization 124 129
Blog Post Writing 119 134

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

Related comparisons

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