Skip to content
llmmodels

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.

SpecGemma 4 31B ITGPT-5.4 mini
ProviderGoogle DeepMindOpenAI
ReleasedApr 2, 2026 (better)Mar 17, 2026
TypeReasoning LLMReasoning LLM
Parameters31B—
Context window256K400K (better)
Max output32K125K (better)
Input price / 1MFree (better)$0.75
Output price / 1MFree (better)$4.50
Input modalitiestext, image, videotext, image, file
Open weightsYesNo
Licenseapache-2.0Proprietary
Reasoning modeYesYes
Tool callingYesYes
API providers51 (better)43
Epoch Capabilities Index144.1149.4 (better)
GPQA Diamond75.8%86.9% (better)
WebDev Arena13641397 (better)
OTIS Mock AIME73.3%88.9% (better)
FrontierMath—51.2%
ARC-AGI-2—18.9%
SimpleQA Verified10.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.