DeepSeek V4.1 Flash 1017 vs Gemma 4 31B

Price, context window & benchmark comparison

DeepSeek

DeepSeek V4.1 Flash 1017

DeepSeek
$0.098 / $0.29
Input / Output · per 1M tokens
VS
Google

Gemma 4 31B

Google
$0.20 / $0.40
Input / Output · per 1M tokens
Compare different models
DeepSeek
Google
Verdict: DeepSeek V4.1 Flash 1017 is 41% cheaper than Gemma 4 31B on a typical 3:1 input/output mix. DeepSeek V4.1 Flash 1017 scores higher on the Artificial Analysis Intelligence Index (28.6 vs 4.4). DeepSeek V4.1 Flash 1017 has the larger context window (1M vs 262K).
DeepSeek V4.1 Flash 1017Gemma 4 31B
Input price / 1M$0.098$0.20
Output price / 1M$0.29$0.40
Blended price (3:1)$0.15$0.25
Cached input / 1M$0.0029—
Context window1M262K
Max output393K16K
Intelligence index28.64.4
Coding index—43.4
Providers47—
Best provider uptime (30m)100.0%—
Vision inputYesYes
ReasoningYesYes
Tool callingYesYes
Released2026-10-172026-04-02
Retirement——

Cost calculator

FAQ

Which is cheaper, DeepSeek V4.1 Flash 1017 or Gemma 4 31B?

DeepSeek V4.1 Flash 1017 is 41% cheaper than Gemma 4 31B on a typical 3:1 input/output mix.

DeepSeek V4.1 Flash 1017 vs Gemma 4 31B: which has a bigger context window?

DeepSeek V4.1 Flash 1017: 1,048,576 tokens. Gemma 4 31B: 262,144 tokens.

How much would 1 million requests cost?

At 2,000 input + 500 output tokens per request: DeepSeek V4.1 Flash 1017 ≈ $343.00, Gemma 4 31B ≈ $600.00.

More comparisons