AI model comparison

DeepSeek V4.1 Flash vs Gemma 4 31B

Pricing, context window, benchmarks, and features compared side by side. Or skip the guesswork and send one prompt to both.

DeepSeek V4.1 Flash is a sparse mixture-of-experts model from DeepSeek, and the first built on the company's Causal Encoder-Decoder (CED) architecture.

Input / 1M
$0.15
Output / 1M
$0.60
Context
1.05M

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output.

Input / 1M
$0.20
Output / 1M
$0.40
Context
262K

Comparing image generators? Compare image models

At a glance

Quick verdict

How the two models stack up on the things people ask about most.

Lower price

Tie

Same price for a typical chat

Higher intelligence score

deepseek logo

DeepSeek V4.1 Flash

24.7 vs 14.7 on Artificial Analysis

Larger context window

deepseek logo

DeepSeek V4.1 Flash

1.05M vs 262K tokens

Newer release

deepseek logo

DeepSeek V4.1 Flash

Released September 10, 2026

Benchmarks

Benchmark scores

Independent scores from Artificial Analysis. Higher is better.

Intelligence index

deepseek logoDeepSeek V4.1 Flash24.7
google logoGemma 4 31B14.7

Coding index

deepseek logoDeepSeek V4.1 FlashNot available
google logoGemma 4 31B43.4

Agentic index

deepseek logoDeepSeek V4.1 FlashNot available
google logoGemma 4 31B4.2

Pricing

DeepSeek V4.1 Flash vs Gemma 4 31B API pricing

Per-token API rates. Cheaper option highlighted.

Metricdeepseek logoDeepSeek V4.1 Flashgoogle logoGemma 4 31B
Input tokensPer 1M tokens$0.15$0.20
Output tokensPer 1M tokens$0.60$0.40
Cached input (read)Per 1M tokens$0.00Not available
Cache writePer 1M tokensNot availableNot available

What it costs in practice

Estimated cost per 1,000 requests at standard rates. Coding and long-document figures also show the cost when the input is already cached.

Chat message

2K in, 500 out

deepseek logoDeepSeek V4.1 Flash$0.60
google logoGemma 4 31B$0.60

Coding task

30K in, 4K out

deepseek logoDeepSeek V4.1 Flash$6.90$2.49 cached
google logoGemma 4 31B$7.60

Long document summary

150K in, 2K out

deepseek logoDeepSeek V4.1 Flash$23.70$1.65 cached
google logoGemma 4 31B$30.80

Specs

Context window and capabilities

How much each model can read, how much it can write, and what it accepts as input.

Metricdeepseek logoDeepSeek V4.1 Flashgoogle logoGemma 4 31B
Context window1.05M tokens262K tokens
Max output393K tokens16K tokens
Input typesImage, TextImage, Text, Video
Output typesTextText
Reasoning effort levelsMax, High, Low, NoneNot available
Default reasoning effortHighNot available
Release dateSeptember 10, 2026April 2, 2026

Features

Supported features

API features available for each model.

Metricdeepseek logoDeepSeek V4.1 Flashgoogle logoGemma 4 31B
Tool callingSupportedSupported
Structured outputsSupportedSupported
JSON modeSupportedSupported
ReasoningSupportedSupported
TemperatureSupportedSupported
Stop sequencesSupportedSupported
Deterministic seedSupportedSupported
Verbosity controlNot supportedNot supported

Our take

DeepSeek V4.1 Flash scores higher on the Artificial Analysis Intelligence Index (24.7 vs 14.7). DeepSeek V4.1 Flash has the larger context window (1.05M vs 262K tokens). The right pick depends on your workload, so the quickest way to settle it is to send the same prompt to both and compare.

FAQ

Frequently asked questions

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

DeepSeek V4.1 Flash and Gemma 4 31B cost the same for a typical chat (2K input tokens and 500 output tokens). DeepSeek V4.1 Flash costs $0.15 per 1M input tokens and $0.60 per 1M output tokens, and Gemma 4 31B costs $0.20 per 1M input tokens and $0.40 per 1M output tokens.

Which has a bigger context window, DeepSeek V4.1 Flash or Gemma 4 31B?

DeepSeek V4.1 Flash supports up to 1.05M tokens of context, compared with 262K for Gemma 4 31B.

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

On the Artificial Analysis Intelligence Index, DeepSeek V4.1 Flash scores 24.7 and Gemma 4 31B scores 14.7, putting DeepSeek V4.1 Flash ahead. Benchmarks don't capture everything, so the best test is running your own prompts through both.

Can I use DeepSeek V4.1 Flash and Gemma 4 31B at the same time?

Yes. Shortcut Chat sends one prompt to multiple models at once, so you can see DeepSeek V4.1 Flash and Gemma 4 31B answer side by side and keep the better response.

deepseek logogoogle logo

Why choose? Ask both.

Send one prompt to DeepSeek V4.1 Flash and Gemma 4 31B at the same time. Compare the answers side by side and keep the best one.