head-to-head

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

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

Google: Gemma 4 31B (free) OpenAI: GPT-5.4
Vendorgoogleopenai
Quality Score100100
Benchmark Score-94.2
Input PriceFree$2.50/M
Output PriceFree$15.00/M
Context Window262,1441,050,000
Max Output8,192128,000
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--
Benchmark Scores
ai_index-84.8
ai_index_agentic-100.0
ai_index_coding-94.5
eqbench-82.4

Who wins by task?

TaskGoogle: Gemma 4 31B (free)OpenAI: GPT-5.4
SQL Generation 131 178
Code Review 126 178
Code Completion 129 120
Code Refactoring 127 175
Bug Fixing 130 194
Unit Test Generation 121 161
Code Documentation 126 147
Regex Writing 120 138
CI/CD Pipelines 117 151
Frontend Component Design 122 151
Data Analysis 124 179
CSV / Spreadsheet Cleanup 128 157
ETL Scripting 122 163
JSON Extraction 132 137
Bulk Data Labeling 130 122
OCR / Document Parsing 128 149
Table Extraction from PDFs 128 149
Long-Document Summarization 129 170
Short-Form Summarization 124 123
Blog Post Writing 119 146

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