head-to-head

Google: Gemma 4 31B (free) vs OpenAI: GPT-5.4 Mini

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

Google: Gemma 4 31B (free) OpenAI: GPT-5.4 Mini
Vendorgoogleopenai
Quality Score100100
Benchmark Score-70.8
Input PriceFree$0.75/M
Output PriceFree$4.50/M
Context Window262,144400,000
Max Output32,768128,000
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--
Benchmark Scores
ai_index-66.0
ai_index_agentic-49.8
ai_index_coding-92.5

Who wins by task?

TaskGoogle: Gemma 4 31B (free)OpenAI: GPT-5.4 Mini
SQL Generation 131 164
Code Review 126 159
Code Completion 129 132
Code Refactoring 127 158
Bug Fixing 130 170
Unit Test Generation 121 148
Code Documentation 126 140
Regex Writing 120 132
CI/CD Pipelines 117 139
Frontend Component Design 122 141
Data Analysis 124 160
CSV / Spreadsheet Cleanup 128 151
ETL Scripting 122 149
JSON Extraction 132 146
Bulk Data Labeling 130 133
OCR / Document Parsing 128 144
Table Extraction from PDFs 128 144
Long-Document Summarization 129 154
Short-Form Summarization 124 129
Blog Post Writing 119 136

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 OpenAI: GPT-5.4 Mini Qwen: Qwen3.7 Plus vs Google: Gemma 4 31B (free) Qwen: Qwen3.7 Plus vs OpenAI: GPT-5.4 Mini MiniMax: MiniMax M3 vs Google: Gemma 4 31B (free) MiniMax: MiniMax M3 vs OpenAI: GPT-5.4 Mini StepFun: Step 3.7 Flash vs Google: Gemma 4 31B (free) StepFun: Step 3.7 Flash vs OpenAI: GPT-5.4 Mini