head-to-head
Google: Gemma 4 31B vs OpenAI: GPT-5.4
Side-by-side comparison of specs, pricing, benchmark scores, and task rankings. Updated 2026-06-20.
| Google: Gemma 4 31B | OpenAI: GPT-5.4 | |
|---|---|---|
| Vendor | openai | |
| Quality Score | 100 | 100 |
| Benchmark Score | 56.4 | 90.4 |
| Input Price | $0.12/M | $2.50/M |
| Output Price | $0.35/M | $15.00/M |
| Context Window | 262,144 | 1,050,000 |
| Max Output | 262,144 | 128,000 |
| Tool Calling | ✓ | ✓ |
| Structured Output | ✓ | ✓ |
| Reasoning Mode | ✓ | ✓ |
| Vision | ✓ | ✓ |
| Audio | - | - |
| Benchmark Scores | ||
| ai_index | 48.4 | 84.8 |
| ai_index_agentic | 23.8 | 67.8 |
| ai_index_coding | 71.7 | 100.0 |
| eqbench | 70.8 | 82.4 |
Who wins by task?
| Task | Google: Gemma 4 31B | OpenAI: GPT-5.4 |
|---|---|---|
| SQL Generation | 157 | 174 |
| Code Review | 154 | 175 |
| Code Completion | 132 | 120 |
| Code Refactoring | 152 | 174 |
| Bug Fixing | 161 | 188 |
| Unit Test Generation | 143 | 159 |
| Code Documentation | 138 | 146 |
| Regex Writing | 131 | 136 |
| CI/CD Pipelines | 136 | 149 |
| Frontend Component Design | 138 | 149 |
| Data Analysis | 152 | 173 |
| CSV / Spreadsheet Cleanup | 146 | 157 |
| ETL Scripting | 144 | 161 |
| JSON Extraction | 143 | 137 |
| Bulk Data Labeling | 133 | 122 |
| OCR / Document Parsing | 140 | 149 |
| Table Extraction from PDFs | 140 | 149 |
| Long-Document Summarization | 150 | 168 |
| Short-Form Summarization | 129 | 122 |
| Blog Post Writing | 134 | 144 |
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
Qwen: Qwen3.7 Plus vs Google: Gemma 4 31B
Qwen: Qwen3.7 Plus vs OpenAI: GPT-5.4
MiniMax: MiniMax M3 vs Google: Gemma 4 31B
MiniMax: MiniMax M3 vs OpenAI: GPT-5.4
StepFun: Step 3.7 Flash vs Google: Gemma 4 31B
StepFun: Step 3.7 Flash vs OpenAI: GPT-5.4