Gemma 4 31B IT vs GPT-5.4 mini
GPT-5.4 mini wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (149.4 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. GPT-5.4 mini has the larger context window (400K vs 256K). Gemma 4 31B IT has open weights, so you can self-host and fine-tune it; GPT-5.4 mini is API-only.
| Spec | Gemma 4 31B IT | GPT-5.4 mini |
|---|---|---|
| Provider | Google DeepMind | OpenAI |
| Released | Apr 2, 2026 (better) | Mar 17, 2026 |
| Type | Reasoning LLM | Reasoning LLM |
| Parameters | 31B | — |
| Context window | 256K | 400K (better) |
| Max output | 32K | 125K (better) |
| Input price / 1M | Free (better) | $0.75 |
| Output price / 1M | Free (better) | $4.50 |
| Input modalities | text, image, video | text, image, file |
| Open weights | Yes | No |
| License | apache-2.0 | Proprietary |
| Reasoning mode | Yes | Yes |
| Tool calling | Yes | Yes |
| API providers | 51 (better) | 43 |
| Epoch Capabilities Index | 144.1 | 149.4 (better) |
| GPQA Diamond | 75.8% | 86.9% (better) |
| WebDev Arena | 1364 | 1397 (better) |
| OTIS Mock AIME | 73.3% | 88.9% (better) |
| FrontierMath | — | 51.2% |
| ARC-AGI-2 | — | 18.9% |
| SimpleQA Verified | 10.4% | 29.4% (better) |
Cost example
For a workload of 10M input + 2M output tokens per month: Gemma 4 31B IT costs $0.00 and GPT-5.4 mini costs $16.50 at list price (Google DeepMind / openai pricing).
About Gemma 4 31B IT
Gemma 4 31B IT is an open-weight reasoning llm from Google DeepMind, released Apr 2, 2026. It has 31B parameters, a 256K-token context window and accepts text, image, video input. It can be used for free via API. It is available from 51 API providers. It scores 144.1 on the Epoch Capabilities Index. Full Gemma 4 31B IT specs →
About GPT-5.4 mini
GPT-5.4 mini is a proprietary reasoning llm from OpenAI, released Mar 17, 2026. It has a 400K-token context window and accepts text, image, file input. API pricing starts at $0.75 per million input tokens and $4.50 per million output tokens. It is available from 43 API providers. It scores 149.4 on the Epoch Capabilities Index. Full GPT-5.4 mini specs →
Compare other models
FAQ
Which is better, Gemma 4 31B IT or GPT-5.4 mini?
GPT-5.4 mini wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (149.4 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. GPT-5.4 mini has the larger context window (400K vs 256K). Gemma 4 31B IT has open weights, so you can self-host and fine-tune it; GPT-5.4 mini is API-only.
Is Gemma 4 31B IT cheaper than GPT-5.4 mini?
Gemma 4 31B IT costs Free input / Free output per 1M tokens; GPT-5.4 mini costs $0.75 / $4.50. Gemma 4 31B IT is cheaper overall.
Which has a bigger context window?
Gemma 4 31B IT: 262,144 tokens. GPT-5.4 mini: 400,000 tokens.
Are Gemma 4 31B IT and GPT-5.4 mini open source?
Gemma 4 31B IT is open-weight; GPT-5.4 mini is proprietary.