Skip to content
llmmodels

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).

SpecGemma 4 31B ITGPT OSS 20B
ProviderGoogle DeepMindOpenAI
ReleasedApr 2, 2026 (better)Aug 5, 2025
TypeReasoning LLMReasoning LLM
Parameters31B21B
Context window256K (better)128K
Max output32K64K (better)
Input price / 1MFree (better)$0.075
Output price / 1MFree (better)$0.3
Input modalitiestext, image, video (better)text
Open weightsYesYes
Licenseapache-2.0apache-2.0
Reasoning modeYesYes
Tool callingYesYes
API providers51 (better)44
Epoch Capabilities Index144.1 (better)134.9
GPQA Diamond75.8% (better)60.8%
Terminal-Bench—3.4%
WebDev Arena1364—
OTIS Mock AIME73.3% (better)65.3%
SimpleQA Verified10.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.