Skip to content
llmmodels

DeepSeek R1 vs Gemma 4 31B IT

Gemma 4 31B IT wins 2 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (144.1 vs 138.6). 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 160K).

SpecDeepSeek R1Gemma 4 31B IT
ProviderDeepSeekGoogle DeepMind
ReleasedMay 28, 2025Apr 2, 2026 (better)
TypeReasoning LLMReasoning LLM
Parameters684B31B
Context window160K256K (better)
Max output32K32K (better)
Input price / 1M$0.571Free (better)
Output price / 1M$2.29Free (better)
Input modalitiestexttext, image, video (better)
Open weightsYesYes
Licensemitapache-2.0
Reasoning modeYesYes
Tool callingYesYes
API providers2351 (better)
Epoch Capabilities Index138.6144.1 (better)
GPQA Diamond76.3% (better)75.8%
Aider Polyglot71.4%—
WebDev Arena—1364
OTIS Mock AIME66.4%73.3% (better)
MATH Level 596.6%—
ARC-AGI-21.3%—
SimpleQA Verified—10.4%
LiveBench71.6%—
METR Time Horizon31 min—

Cost example

For a workload of 10M input + 2M output tokens per month: DeepSeek R1 costs $10.28 and Gemma 4 31B IT costs $0.00 at list price (openrouter / google pricing).

About DeepSeek R1

DeepSeek R1 is an open-weight reasoning llm from DeepSeek, released May 28, 2025. It has 684B parameters and a 160K-token context window. API pricing starts at $0.571 per million input tokens and $2.29 per million output tokens. It is available from 23 API providers. It scores 138.6 on the Epoch Capabilities Index. Full DeepSeek R1 specs →

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 →

Compare other models

FAQ

Which is better, DeepSeek R1 or Gemma 4 31B IT?

Gemma 4 31B IT wins 2 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (144.1 vs 138.6). 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 160K).

Is DeepSeek R1 cheaper than Gemma 4 31B IT?

DeepSeek R1 costs $0.571 input / $2.29 output per 1M tokens; Gemma 4 31B IT costs Free / Free. Gemma 4 31B IT is cheaper overall.

Which has a bigger context window?

DeepSeek R1: 163,840 tokens. Gemma 4 31B IT: 262,144 tokens.

Are DeepSeek R1 and Gemma 4 31B IT open source?

DeepSeek R1 is open-weight; Gemma 4 31B IT is open-weight.