head-to-head

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

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

Google: Gemma 4 31B OpenAI: GPT-5.4 Mini
Vendorgoogleopenai
Quality Score100100
Benchmark Score56.470.8
Input Price$0.12/M$0.75/M
Output Price$0.35/M$4.50/M
Context Window262,144400,000
Max Output262,144128,000
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--
Benchmark Scores
ai_index48.466.0
ai_index_agentic23.849.8
ai_index_coding71.792.5
eqbench70.8-

Who wins by task?

TaskGoogle: Gemma 4 31BOpenAI: GPT-5.4 Mini
SQL Generation 157 164
Code Review 154 159
Code Completion 132 132
Code Refactoring 152 158
Bug Fixing 161 170
Unit Test Generation 143 148
Code Documentation 138 140
Regex Writing 131 132
CI/CD Pipelines 136 139
Frontend Component Design 138 141
Data Analysis 152 160
CSV / Spreadsheet Cleanup 146 151
ETL Scripting 144 149
JSON Extraction 143 146
Bulk Data Labeling 133 133
OCR / Document Parsing 140 144
Table Extraction from PDFs 140 144
Long-Document Summarization 150 154
Short-Form Summarization 129 129
Blog Post Writing 134 136

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

Related comparisons

MoonshotAI: Kimi K2.7 Code vs Google: Gemma 4 31B MoonshotAI: Kimi K2.7 Code vs OpenAI: GPT-5.4 Mini Qwen: Qwen3.7 Plus vs Google: Gemma 4 31B Qwen: Qwen3.7 Plus vs OpenAI: GPT-5.4 Mini MiniMax: MiniMax M3 vs Google: Gemma 4 31B MiniMax: MiniMax M3 vs OpenAI: GPT-5.4 Mini StepFun: Step 3.7 Flash vs Google: Gemma 4 31B StepFun: Step 3.7 Flash vs OpenAI: GPT-5.4 Mini