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
Side by side
0.00 the better figure in a row| Specification | DeepSeek V4.1 Flash | Gemma 4 31B |
|---|---|---|
| Maker | DeepSeek | |
| 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.
| Task | DeepSeek V4.1 Flash | Gemma 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
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.