Gemma 4 31B IT vs GPT-5.4 Pro
GPT-5.4 Pro wins 3 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (160.3 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. GPT-5.4 Pro has the larger context window (1.1M vs 256K). Gemma 4 31B IT has open weights, so you can self-host and fine-tune it; GPT-5.4 Pro is API-only.
| Spec | Gemma 4 31B IT | GPT-5.4 Pro |
|---|---|---|
| Provider | Google DeepMind | OpenAI |
| Released | Apr 2, 2026 (better) | Mar 5, 2026 |
| Type | Reasoning LLM | Reasoning LLM |
| Parameters | 31B | — |
| Context window | 256K | 1.1M (better) |
| Max output | 32K | 125K (better) |
| Input price / 1M | Free (better) | $30 |
| Output price / 1M | Free (better) | $180 |
| 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) | 22 |
| Epoch Capabilities Index | 144.1 | 160.3 (better) |
| GPQA Diamond | 75.8% | 94.6% (better) |
| Humanity's Last Exam | — | 44.3% |
| WebDev Arena | 1364 | — |
| OTIS Mock AIME | 73.3% | — |
| FrontierMath | — | 82.5% |
| ARC-AGI-2 | — | 83.3% |
| SimpleQA Verified | 10.4% | 46.3% (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 Pro costs $660.00 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 Pro
GPT-5.4 Pro is a proprietary reasoning llm from OpenAI, released Mar 5, 2026. It has a 1.1M-token context window and accepts text, image, file input. API pricing starts at $30 per million input tokens and $180 per million output tokens. It is available from 22 API providers. It scores 160.3 on the Epoch Capabilities Index. Full GPT-5.4 Pro specs →
Compare other models
FAQ
Which is better, Gemma 4 31B IT or GPT-5.4 Pro?
GPT-5.4 Pro wins 3 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (160.3 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. GPT-5.4 Pro has the larger context window (1.1M vs 256K). Gemma 4 31B IT has open weights, so you can self-host and fine-tune it; GPT-5.4 Pro is API-only.
Is Gemma 4 31B IT cheaper than GPT-5.4 Pro?
Gemma 4 31B IT costs Free input / Free output per 1M tokens; GPT-5.4 Pro costs $30 / $180. Gemma 4 31B IT is cheaper overall.
Which has a bigger context window?
Gemma 4 31B IT: 262,144 tokens. GPT-5.4 Pro: 1,050,000 tokens.
Are Gemma 4 31B IT and GPT-5.4 Pro open source?
Gemma 4 31B IT is open-weight; GPT-5.4 Pro is proprietary.