Skip to content

DeepSeek V4.1 Flash vs Gemma 4 31B

DeepSeek V4.1 Flash (DeepSeek) and Gemma 4 31B (Google) are listed at different prices. DeepSeek V4.1 Flash costs less: $0.0747 per 1M input tokens and $0.299 per 1M output tokens, against $0.30 and $0.60 for Gemma 4 31B. DeepSeek V4.1 Flash has the larger context window, 1,048,576 tokens against 262,144 for Gemma 4 31B. Only DeepSeek V4.1 Flash supports a reasoning effort setting. DeepSeek V4.1 Flash accepts text and images and produces text; Gemma 4 31B accepts text, images and video and produces text.

DeepSeek: DeepSeek V4.1 Flash accepts text and images, while Google: Gemma 4 31B also accepts video; both produce text and support tools, structured outputs, response formats, and reasoning. Their context limits are 1,048,576 and 262,144 tokens, respectively.

Compared from catalog data checked

DeepSeek V4.1 Flash

$0.0747 in
$0.299 out
Under 0.1¢ a message
1.05M context

Gemma 4 31B

$0.30 in
$0.60 out
Under 0.1¢ a message
262K context

Side by side

0.00 the better figure in a row
DeepSeek V4.1 Flash and Gemma 4 31B specifications side by side
SpecificationDeepSeek V4.1 FlashGemma 4 31B
Maker DeepSeek Google
Added to catalog 10 Sep 2026 2 Apr 2026
Input, per 1M tokens $0.0747 $0.30
Output, per 1M tokens $0.299 $0.60
Cached input read, per 1M $0.0015 n/a
Context windowTokens 1,048,576 262,144
Max outputTokens 393,216 16,384
Accepts image, text image, text, video
Produces text text
Tool calling Yes Yes
Structured outputs Yes Yes
Reasoning effort control Yes No

Prices on Upend, in US dollars. Each model's page has its variants, price history and sample outputs.

What the same task costs

The price of one request on Upend, from the token counts shown. The same four tasks are priced on every model page.

Check the provider's pageToken counts are estimates, and the two models count tokens differently.
Cost of the same task on DeepSeek V4.1 Flash and Gemma 4 31B
TaskDeepSeek V4.1 FlashGemma 4 31B
Answer a short question500 in / 300 out $0.0001 $0.0003
Summarise a 50-page PDF25,000 in / 800 out $0.0021 $0.0080
Review a 2,000-line source file30,000 in / 2,000 out $0.0028 $0.010
Read a 300-page contract set150,000 in / 1,500 out $0.012 $0.046

Which to choose

Choose DeepSeek V4.1 Flash if

  • Input tokens cost less: $0.0747 against $0.30 per 1M
  • Output tokens cost less: $0.299 against $0.60 per 1M
  • Cached input costs less: $0.0015 against n/a per 1M
  • You need the larger context window: 1,048,576 tokens against 262,144
  • You need longer answers in one response: 393,216 tokens against 16,384
  • You want to set how much it reasons before it answers
DeepSeek V4.1 Flash details

Choose Gemma 4 31B if

  • It has to read video, which the other model does not
Gemma 4 31B details

Neither maker's quality claims are repeated here. The reliable test is your own task: ask both the same question and read the two answers.

Comparison questions

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

Yes, DeepSeek V4.1 Flash is the cheaper of the two. DeepSeek V4.1 Flash costs $0.0747 per 1M input tokens and $0.299 per 1M output tokens; Gemma 4 31B costs $0.30 and $0.60 as checked on 23 Nov 2026.

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

DeepSeek V4.1 Flash, at 1,048,576 tokens against 262,144 for Gemma 4 31B.

Which is better for coding, DeepSeek V4.1 Flash or Gemma 4 31B?

This page does not rank models on quality, and it does not repeat either maker's claims. The table shows what each accepts, supports and costs; the reliable test is your own task: give both the same piece of code and compare the answers.

Can I use both DeepSeek V4.1 Flash and Gemma 4 31B?

DeepSeek V4.1 Flash can be chosen in the Upend chat today; Gemma 4 31B is listed in the catalog but not offered in the chat.

Put the same question to both.

Open the chat with one, then switch model and ask again.

Sign in to Upend

Use an account you already have, or get a one-time code by email.

Use a password instead

For accounts that already have a password. Forgotten it? An emailed code signs you in just the same.