LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

DeepSeek V4.1 Flash vs Gemma 4 31B

Updated October 21, 2026. 56 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

DeepSeek V4.1 FlashDeepSeek
Coding
77.2
Overall
24.7
Output $/M
$0.525
52
Gemma 4 31BGoogle
Coding
38.3
Overall
14.7
Output $/M
$0.40
4
vs boards won of 56 shared

Decision reading

Pick DeepSeek V4.1 Flash for coding: it scores 77.2 on the Vibe Coding Index against 38.3 for Gemma 4 31B.

Pick Gemma 4 31B when output tokens cost 1.3x less, or when what matters is LMArena Vision: homework or SAGE (Vals AI), where it leads.

Shared results
56
DeepSeek V4.1 Flash only
45
Gemma 4 31B only
12
Like-for-like categories
8 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

Which one for your work

Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.

At a glance

Coding index
DeepSeek V4.1 Flash 77.2 from 2 benchmarks, Gemma 4 31B 38.3 from 2 benchmarks.
Widest category
Agentic work, 49.7 points apart on average over 3 shared benchmarks.
Widest single gap
LiveBench browser: DeepSeek V4.1 Flash 84.0% against Gemma 4 31B 4.0%, 80.0 points apart on a 0 to 100 scale.
Output price
DeepSeek V4.1 Flash $0.525 against Gemma 4 31B $0.40 per million output tokens, 1.3x apart.
Context window
DeepSeek V4.1 Flash takes 1.05M tokens, Gemma 4 31B 262K.

Benchmark by benchmark

First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.

Boards won, where both have a result
CategoryDeepSeek V4.1 FlashBarsGemma 4 31BTies
Coding80
Intelligence20
Agentic work30
Reasoning71
Math30
Knowledge50
Web design10
General233
All shared boards524
CodingLike-for-likeFour of these boards feed the Vibe Coding Index80
Coding benchmarks for DeepSeek V4.1 Flash and Gemma 4 31B
BenchmarkDeepSeek V4.1 FlashGemma 4 31BLeader
LiveBench coding90.2%49.0%DeepSeek V4.1 Flash
LMArena WebDev16181367DeepSeek V4.1 Flash
AA Coding IndexNot measured43.4Only Gemma 4 31B measured
Terminal-Bench 4 (Vals AI)19.7%Not measuredOnly DeepSeek V4.1 Flash measured
Vibe Code Bench (Vals AI)84.7%Not measuredOnly DeepSeek V4.1 Flash measured
Code migration (Vals AI)45.6%Not measuredOnly DeepSeek V4.1 Flash measured
ProgramBench (Vals AI)0.5%Not measuredOnly DeepSeek V4.1 Flash measured
IOI (Vals AI)40.3%Not measuredOnly DeepSeek V4.1 Flash measured
Terminal-Bench 2.1 (Vals AI)74.5%Not measuredOnly DeepSeek V4.1 Flash measured
SWE-bench Multimodal (Vals AI)46.5%Not measuredOnly DeepSeek V4.1 Flash measured
Vibe Code Bench 1-100 (Vals AI)16.4%Not measuredOnly DeepSeek V4.1 Flash measured
SkillsBench (Vals AI)69.8%Not measuredOnly DeepSeek V4.1 Flash measured
CyberBench (Vals AI)73.7%Not measuredOnly DeepSeek V4.1 Flash measured
SciCode51.9%45.5%DeepSeek V4.1 Flash
Terminal-Bench Hard (Artificial Analysis run)Not measured36.4%Only Gemma 4 31B measured
FrontierCode43.9%Not measuredOnly DeepSeek V4.1 Flash measured
WeirdMLNot measured52.3%Only Gemma 4 31B measured
ALE-Bench1092.3925.5DeepSeek V4.1 Flash
LMArena Text: coding15021459DeepSeek V4.1 Flash
LMArena Text: software and IT14961463DeepSeek V4.1 Flash
LMArena WebDev: React16281359DeepSeek V4.1 Flash
LMArena WebDev: HTML16121380DeepSeek V4.1 Flash
LMArena WebDev: from an image1606Not measuredOnly DeepSeek V4.1 Flash measured
Neither model has a result on the other 15 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for DeepSeek V4.1 Flash and Gemma 4 31B
BenchmarkDeepSeek V4.1 FlashGemma 4 31BLeader
AA Intelligence Index24.714.7DeepSeek V4.1 Flash
Epoch Capabilities Index155.9143.0DeepSeek V4.1 Flash
Agentic workLike-for-likePublic boards, shown as published, kept out of the index30
Agentic work benchmarks for DeepSeek V4.1 Flash and Gemma 4 31B
BenchmarkDeepSeek V4.1 FlashGemma 4 31BLeader
AA Agentic IndexNot measured4.2Only Gemma 4 31B measured
LiveBench research86.8%44.4%DeepSeek V4.1 Flash
LiveBench browser84.0%4.0%DeepSeek V4.1 Flash
LiveBench long agentic40.1%13.3%DeepSeek V4.1 Flash
SREBench (Vals AI)0.8%Not measuredOnly DeepSeek V4.1 Flash measured
Finance Agent (Vals AI)53.5%Not measuredOnly DeepSeek V4.1 Flash measured
Tax Agent Bench (Vals AI)26.6%Not measuredOnly DeepSeek V4.1 Flash measured
Legal Research Bench (Vals AI)41.4%Not measuredOnly DeepSeek V4.1 Flash measured
Excel Modeling Benchmark (Vals AI)57.2%Not measuredOnly DeepSeek V4.1 Flash measured
BioMysteryBench (Vals AI)67.8%Not measuredOnly DeepSeek V4.1 Flash measured
Terminal-Bench-Science (Vals AI)0.0%Not measuredOnly DeepSeek V4.1 Flash measured
Vals Science Index29.6%Not measuredOnly DeepSeek V4.1 Flash measured
τ²-Bench TelecomNot measured65.5%Only Gemma 4 31B measured
APEX-Agents39.5%Not measuredOnly DeepSeek V4.1 Flash measured
Neither model has a result on the other 25 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index71
Reasoning benchmarks for DeepSeek V4.1 Flash and Gemma 4 31B
BenchmarkDeepSeek V4.1 FlashGemma 4 31BLeader
LiveBench reasoning86.7%68.3%DeepSeek V4.1 Flash
MysteryMechanism (Vals AI)21.2%Not measuredOnly DeepSeek V4.1 Flash measured
GPQA Diamond (Artificial Analysis run)Not measured85.7%Only Gemma 4 31B measured
Humanity's Last Exam (Artificial Analysis run)39.2%23.6%DeepSeek V4.1 Flash
GPQA Diamond (Epoch AI run)89.8%75.8%DeepSeek V4.1 Flash
ARC-AGI94.5%Not measuredOnly DeepSeek V4.1 Flash measured
ARC-AGI-272.9%Not measuredOnly DeepSeek V4.1 Flash measured
Chess puzzles48.0%Not measuredOnly DeepSeek V4.1 Flash measured
Mystery game puzzles43.0%Not measuredOnly DeepSeek V4.1 Flash measured
LMArena Text: hard prompts14831448DeepSeek V4.1 Flash
LMArena Text: expert15011464DeepSeek V4.1 Flash
LMArena Text: hard prompts in English14881456DeepSeek V4.1 Flash
LMArena Vision: diagrams12971283DeepSeek V4.1 Flash
LMArena Vision: homework13071310Gemma 4 31B
Neither model has a result on the other 7 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for DeepSeek V4.1 Flash and Gemma 4 31B
BenchmarkDeepSeek V4.1 FlashGemma 4 31BLeader
OTIS Mock AIME98.3%73.3%DeepSeek V4.1 Flash
FrontierMath, tiers 1 to 367.4%Not measuredOnly DeepSeek V4.1 Flash measured
FrontierMath, tier 426.8%Not measuredOnly DeepSeek V4.1 Flash measured
ProofBench54.0%Not measuredOnly DeepSeek V4.1 Flash measured
LMArena Text: math14781463DeepSeek V4.1 Flash
LMArena Text: mathematical work14851465DeepSeek V4.1 Flash
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index50
Knowledge benchmarks for DeepSeek V4.1 Flash and Gemma 4 31B
BenchmarkDeepSeek V4.1 FlashGemma 4 31BLeader
LegalBench (Vals AI)83.3%Not measuredOnly DeepSeek V4.1 Flash measured
CaseLaw (Vals AI)Not measured52.6%Only Gemma 4 31B measured
MortgageTax (Vals AI)Not measured61.4%Only Gemma 4 31B measured
MedCode (Vals AI)41.2%Not measuredOnly DeepSeek V4.1 Flash measured
SimpleQA Verified42.9%10.4%DeepSeek V4.1 Flash
LMArena Text: science14691457DeepSeek V4.1 Flash
LMArena Text: medicine and healthcare14841451DeepSeek V4.1 Flash
LMArena Text: legal and government14431438DeepSeek V4.1 Flash
LMArena Text: business and finance14611430DeepSeek V4.1 Flash
Neither model has a result on the other 8 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index10
Web design benchmarks for DeepSeek V4.1 Flash and Gemma 4 31B
BenchmarkDeepSeek V4.1 FlashGemma 4 31BLeader
Design Arena: websites1309Not measuredOnly DeepSeek V4.1 Flash measured
Design Arena: UI components1314Not measuredOnly DeepSeek V4.1 Flash measured
Design Arena: game dev1331Not measuredOnly DeepSeek V4.1 Flash measured
Design Arena: data viz1290Not measuredOnly DeepSeek V4.1 Flash measured
Design Arena: 3D1356Not measuredOnly DeepSeek V4.1 Flash measured
Design Arena: all code categories1320Not measuredOnly DeepSeek V4.1 Flash measured
Design Arena: SVG1243Not measuredOnly DeepSeek V4.1 Flash measured
Design Arena: ASCII art1265Not measuredOnly DeepSeek V4.1 Flash measured
LiveBench design79.2%58.4%DeepSeek V4.1 Flash
GeneralLike-for-likePublic boards, shown as published, kept out of the index233
General benchmarks for DeepSeek V4.1 Flash and Gemma 4 31B
BenchmarkDeepSeek V4.1 FlashGemma 4 31BLeader
LiveBench data analysis79.3%53.3%DeepSeek V4.1 Flash
Public Benefits Bench (Vals AI)64.3%Not measuredOnly DeepSeek V4.1 Flash measured
SAGE (Vals AI)47.9%55.0%Gemma 4 31B
MedScribe (Vals AI)85.5%Not measuredOnly DeepSeek V4.1 Flash measured
IFBenchNot measured75.6%Only Gemma 4 31B measured
Long context reasoning (AA-LCR)84.0%69.7%DeepSeek V4.1 Flash
DTBench89.9%82.7%DeepSeek V4.1 Flash
LMCA47.0%39.3%DeepSeek V4.1 Flash
Surface Evolver Bench46.3%30.6%DeepSeek V4.1 Flash
Furniture assembly34.2%Not measuredOnly DeepSeek V4.1 Flash measured
LMArena Text14641443DeepSeek V4.1 Flash
LMArena Text: instruction following14731433DeepSeek V4.1 Flash
LMArena Text: creative writing14371417DeepSeek V4.1 Flash
LMArena Vision12781276DeepSeek V4.1 Flash
LMArena Text: English14731451DeepSeek V4.1 Flash
LMArena Text: non-English14491430DeepSeek V4.1 Flash
LMArena Text: Chinese15011475DeepSeek V4.1 Flash
LMArena Text: German1470Not measuredOnly DeepSeek V4.1 Flash measured
LMArena Text: Japanese1432Not measuredOnly DeepSeek V4.1 Flash measured
LMArena Text: Korean1436Not measuredOnly DeepSeek V4.1 Flash measured
LMArena Text: French14651436DeepSeek V4.1 Flash
LMArena Text: Spanish14591442DeepSeek V4.1 Flash
LMArena Text: Russian14671460DeepSeek V4.1 Flash
LMArena Text: Polish14571433DeepSeek V4.1 Flash
LMArena Text: multi-turn14611452DeepSeek V4.1 Flash
LMArena Text: longer queries14731446DeepSeek V4.1 Flash
LMArena Text: writing and language14501432DeepSeek V4.1 Flash
LMArena Text: entertainment and media14451405DeepSeek V4.1 Flash
LMArena Vision: English12881271DeepSeek V4.1 Flash
LMArena Vision: Chinese13271326DeepSeek V4.1 Flash
LMArena Vision: reading text12821282DeepSeek V4.1 Flash
LMArena Vision: humor12601280Gemma 4 31B
LMArena Vision: captioningNot measured1218Only Gemma 4 31B measured
LMArena Vision: recognizing thingsNot measured1226Only Gemma 4 31B measured
LMArena Vision: creative writing12751285Gemma 4 31B
LMArena DocumentNot measured1425Only Gemma 4 31B measured
Neither model has a result on the other 10 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for DeepSeek V4.1 Flash and Gemma 4 31B
BenchmarkDeepSeek V4.1 FlashGemma 4 31BLeader
Neither model has a result on 5 boards here

What each workload costs

Three fixed token mixes at each model's listed price, so per-token rates become a bill.

Chat turn

1K input + 500 output tokens

DeepSeek V4.1 Flash$0.0003Fits in one request
Gemma 4 31B$0.0004Fits in one request

DeepSeek V4.1 Flash costs less

Repository review

50K input + 3K output tokens

DeepSeek V4.1 Flash$0.0040Fits in one request
Gemma 4 31B$0.011Fits in one request

DeepSeek V4.1 Flash costs less

Agent loop

200K input + 10K output tokens

DeepSeek V4.1 Flash$0.015Fits in one request
Gemma 4 31B$0.044Fits in one request

DeepSeek V4.1 Flash costs less

Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.

Specification differences

The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.

Specifications of DeepSeek V4.1 Flash and Gemma 4 31B
SpecificationDeepSeek V4.1 FlashGoogle Gemma 4 31B
MakerDeepSeekGoogle
WeightsOpen weightsOpen weights
ReleasedSeptember 10, 2026April 2, 2026
Context window1.05M262K
Input $/Mtok$0.049$0.20
Output $/Mtok$0.525$0.40
Coding index77.238.3
Independent measurements behind it22
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is DeepSeek V4.1 Flash better than Gemma 4 31B for coding?

Pick DeepSeek V4.1 Flash for coding: it scores 77.2 on the Vibe Coding Index against 38.3 for Gemma 4 31B. Pick Gemma 4 31B when output tokens cost 1.3x less, or when what matters is LMArena Vision: homework or SAGE (Vals AI), where it leads.

Which is cheaper, DeepSeek V4.1 Flash or Gemma 4 31B?

DeepSeek V4.1 Flash costs $0.049 per million input tokens and $0.525 per million output tokens; Gemma 4 31B costs $0.20 and $0.40. Cost per solved task is known for neither of them.

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

DeepSeek V4.1 Flash, with 1.05M tokens against 262K.

How many benchmarks is the DeepSeek V4.1 Flash vs Gemma 4 31B comparison based on?

56 benchmarks have a result for both models as of October 21, 2026. DeepSeek V4.1 Flash's coding index rests on 2 independent benchmarks and Gemma 4 31B's on 2. Where only one model has a result, the page says so instead of naming a winner.

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/deepseek-v4-1-flash-vs-gemma-4-31b-it" title="DeepSeek V4.1 Flash vs Gemma 4 31B, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/deepseek-v4-1-flash-vs-gemma-4-31b-it">LLMBenchmark.ai, DeepSeek V4.1 Flash vs Gemma 4 31B</a></p>