Gemma 4 31B IT vs Grok 4.5
Grok 4.5 wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (155.0 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. Grok 4.5 has the larger context window (500K vs 256K). Gemma 4 31B IT has open weights, so you can self-host and fine-tune it; Grok 4.5 is API-only.
| Spec | Gemma 4 31B IT | Grok 4.5 |
|---|---|---|
| Provider | Google DeepMind | xAI |
| Released | Apr 2, 2026 | Jul 8, 2026 (better) |
| Type | Reasoning LLM | Reasoning LLM |
| Parameters | 31B | 1.5T |
| Context window | 256K | 500K (better) |
| Max output | 32K | 500K (better) |
| Input price / 1M | Free (better) | $2 |
| Output price / 1M | Free (better) | $6 |
| Input modalities | text, image, video | text, image, pdf, file (better) |
| Open weights | Yes | No |
| License | apache-2.0 | Proprietary |
| Reasoning mode | Yes | Yes |
| Tool calling | Yes | Yes |
| API providers | 51 (better) | 28 |
| Epoch Capabilities Index | 144.1 | 155.0 (better) |
| GPQA Diamond | 75.8% | 93.4% (better) |
| WebDev Arena | 1364 | 1555 (better) |
| OTIS Mock AIME | 73.3% | 97.8% (better) |
| FrontierMath | — | 57.2% |
| ARC-AGI-2 | — | 52.6% |
| SimpleQA Verified | 10.4% | 48.3% (better) |
Cost example
For a workload of 10M input + 2M output tokens per month: Gemma 4 31B IT costs $0.00 and Grok 4.5 costs $32.00 at list price (Google DeepMind / xai 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 Grok 4.5
Grok 4.5 is a proprietary reasoning llm from xAI, released Jul 8, 2026. It has 1.5T parameters, a 500K-token context window and accepts text, image, pdf, file input. API pricing starts at $2 per million input tokens and $6 per million output tokens. It is available from 28 API providers. It scores 155.0 on the Epoch Capabilities Index. Full Grok 4.5 specs →
Compare other models
FAQ
Which is better, Gemma 4 31B IT or Grok 4.5?
Grok 4.5 wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (155.0 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. Grok 4.5 has the larger context window (500K vs 256K). Gemma 4 31B IT has open weights, so you can self-host and fine-tune it; Grok 4.5 is API-only.
Is Gemma 4 31B IT cheaper than Grok 4.5?
Gemma 4 31B IT costs Free input / Free output per 1M tokens; Grok 4.5 costs $2 / $6. Gemma 4 31B IT is cheaper overall.
Which has a bigger context window?
Gemma 4 31B IT: 262,144 tokens. Grok 4.5: 500,000 tokens.
Are Gemma 4 31B IT and Grok 4.5 open source?
Gemma 4 31B IT is open-weight; Grok 4.5 is proprietary.