Skip to content

Head to head

DeepSeek V4.1 Flash 1017 vs Gemma 4 31B

Price, context window, capabilities and independently measured benchmark performance for two models you can call through the same [OI]-compatible endpoint.

2/4 selected
Spec
DeepSeek
DeepSeek V4.1 Flash 1017deepseek-v4.1-flash-1017
Gemma 4 31Bgemma-4-31b
Input / 1M$0.052$0.042best
Output / 1M$0.21$0.126best
Cache read / 1M(discounted cache hits)$0.004 −92%—
Official price(publisher list)$0.15$0.12
Saving65% offbest65% offbest
Context window1.0Mbest256K
Max output393.2Kbest131.1K
Intelligence Index(Artificial Analysis)32.4best4.4
Coding index——
Output speed(median tok/s)187 tok/sbest35 tok/s
Time to first token0.79sbest1.08s
Modalityimageimage
Prompt cacheSupportedSupported
Network fee(per request)$0.00$0.00

Shareable link: https://relayrouter.org/compare/deepseek-v4.1-flash-1017-vs-gemma-4-31b

Is DeepSeek V4.1 Flash 1017 cheaper than Gemma 4 31B?

No, on input tokens at list price: Gemma 4 31B is $0.042 per 1M input tokens versus $0.052 for DeepSeek V4.1 Flash 1017. Output is $0.126 versus $0.21.

Which has the larger context window, DeepSeek V4.1 Flash 1017 or Gemma 4 31B?

DeepSeek V4.1 Flash 1017 has the larger context window at 1.0M tokens, against 256K for Gemma 4 31B.

How do DeepSeek V4.1 Flash 1017 and Gemma 4 31B score on benchmarks?

DeepSeek V4.1 Flash 1017 scores 32.4 and Gemma 4 31B scores 4.4 on the Artificial Analysis Intelligence Index. Scores are sourced from Artificial Analysis and are only comparable within the same index version.