Gemma 4 31B IT vs GPT OSS 20B
Gemma 4 31B IT wins 3 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (144.1 vs 134.9). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. Gemma 4 31B IT has the larger context window (256K vs 128K).
| Spec | Gemma 4 31B IT | GPT OSS 20B |
|---|---|---|
| Provider | Google DeepMind | OpenAI |
| Released | Apr 2, 2026 (better) | Aug 5, 2025 |
| Type | Reasoning LLM | Reasoning LLM |
| Parameters | 31B | 21B |
| Context window | 256K (better) | 128K |
| Max output | 32K | 64K (better) |
| Input price / 1M | Free (better) | $0.075 |
| Output price / 1M | Free (better) | $0.3 |
| Input modalities | text, image, video (better) | text |
| Open weights | Yes | Yes |
| License | apache-2.0 | apache-2.0 |
| Reasoning mode | Yes | Yes |
| Tool calling | Yes | Yes |
| API providers | 51 (better) | 44 |
| Epoch Capabilities Index | 144.1 (better) | 134.9 |
| GPQA Diamond | 75.8% (better) | 60.8% |
| Terminal-Bench | — | 3.4% |
| WebDev Arena | 1364 | — |
| OTIS Mock AIME | 73.3% (better) | 65.3% |
| SimpleQA Verified | 10.4% | — |
Cost example
For a workload of 10M input + 2M output tokens per month: Gemma 4 31B IT costs $0.00 and GPT OSS 20B costs $1.35 at list price (Google DeepMind / openrouter 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 OSS 20B
GPT OSS 20B is an open-weight reasoning llm from OpenAI, released Aug 5, 2025. It has 21B parameters and a 128K-token context window. API pricing starts at $0.075 per million input tokens and $0.3 per million output tokens. It is available from 44 API providers. It scores 134.9 on the Epoch Capabilities Index. Full GPT OSS 20B specs →
Compare other models
FAQ
Which is better, Gemma 4 31B IT or GPT OSS 20B?
Gemma 4 31B IT wins 3 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (144.1 vs 134.9). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. Gemma 4 31B IT has the larger context window (256K vs 128K).
Is Gemma 4 31B IT cheaper than GPT OSS 20B?
Gemma 4 31B IT costs Free input / Free output per 1M tokens; GPT OSS 20B costs $0.075 / $0.3. Gemma 4 31B IT is cheaper overall.
Which has a bigger context window?
Gemma 4 31B IT: 262,144 tokens. GPT OSS 20B: 131,072 tokens.
Are Gemma 4 31B IT and GPT OSS 20B open source?
Gemma 4 31B IT is open-weight; GPT OSS 20B is open-weight.