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-05-05.

Google: Gemma 4 31B OpenAI: GPT-5.4 Mini
Vendorgoogleopenai
Quality Score100100
Input Price$0.13/M$0.75/M
Output Price$0.38/M$4.50/M
Context Window262,144400,000
Max Output16,384128,000
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--

Who wins by task?

TaskGoogle: Gemma 4 31BOpenAI: GPT-5.4 Mini
SQL Generation 131 133
Code Review 126 132
Code Completion 129 130
Code Refactoring 127 136
Bug Fixing 130 136
Unit Test Generation 121 124
Code Documentation 126 130
Regex Writing 119 119
CI/CD Pipelines 117 120
CSV / Spreadsheet Cleanup 128 133
ETL Scripting 122 128
JSON Extraction 131 130
Bulk Data Labeling 129 128
OCR / Document Parsing 128 131
Table Extraction from PDFs 128 131
Long-Document Summarization 129 137
Short-Form Summarization 123 123
Blog Post Writing 119 121

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

Related comparisons

xAI: Grok 4.3 vs Google: Gemma 4 31B xAI: Grok 4.3 vs OpenAI: GPT-5.4 Mini Mistral: Mistral Medium 3.5 vs Google: Gemma 4 31B Mistral: Mistral Medium 3.5 vs OpenAI: GPT-5.4 Mini NVIDIA: Nemotron 3 Nano Omni (free) vs Google: Gemma 4 31B NVIDIA: Nemotron 3 Nano Omni (free) vs OpenAI: GPT-5.4 Mini Anthropic Claude Haiku Latest vs Google: Gemma 4 31B Anthropic Claude Haiku Latest vs OpenAI: GPT-5.4 Mini