Skip to content

Head to head

DeepSeek V3.1 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 V3.1deepseek-v3.1
Gemma 4 31Bgemma-4-31b
Input / 1M$0.087$0.042best
Output / 1M$0.332$0.126best
Cache read / 1M(discounted cache hits)——
Official price(publisher list)$0.25$0.12
Saving65% offbest65% offbest
Context window128K256Kbest
Max output8K131.1Kbest
Intelligence Index(Artificial Analysis)not rated4.4
Coding index——
Output speed(median tok/s)97 tok/sbest35 tok/s
Time to first token1.30s1.08sbest
Modalitytextimage
Prompt cacheSupportedSupported
Network fee(per request)$0.00$0.00

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

Is DeepSeek V3.1 cheaper than Gemma 4 31B?

No, on input tokens at list price: Gemma 4 31B is $0.042 per 1M input tokens versus $0.087 for DeepSeek V3.1. Output is $0.126 versus $0.332.

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

Gemma 4 31B has the larger context window at 256K tokens, against 128K for DeepSeek V3.1.

How do DeepSeek V3.1 and Gemma 4 31B score on benchmarks?

DeepSeek V3.1 scores no published score 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.