Enter opens the highlighted result. Esc closes.

DeepSeek V4 Flash 0731 vs Gemma 4 31B

DeepSeek V4 Flash 0731 leads Gemma 4 31B on coding, 51.8 to 39.0 on the Vibe Coding Index, at about the same output price ($0.396 vs $0.40 per million). Updated October 22, 2026; 15 benchmarks have a result for both.

DeepSeek V4 Flash 0731DeepSeek
Coding
51.8
Overall
55.2
Output $/M
$0.396
15
Gemma 4 31BGoogle
Coding
39.0
Overall
42.1
Output $/M
$0.40
0
vs boards won of 15 shared

DeepSeek V4 Flash 0731 or Gemma 4 31B: which to pick

Pick DeepSeek V4 Flash 0731 for coding: it scores 51.8 on the Vibe Coding Index against 39.0 for Gemma 4 31B.

Gemma 4 31B is neither cheaper nor larger in context, and leads no benchmark both models were measured on.

Shared results
15
DeepSeek V4 Flash 0731 only
40
Gemma 4 31B only
56
Like-for-like categories
7 of 9

Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.

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 Flash 0731 51.8 from 4 benchmarks, Gemma 4 31B 39.0 from 2 benchmarks.
Widest category
Agentic work, 36.8 points apart on average over 1 shared benchmark.
Widest single gap
AA Agentic Index: DeepSeek V4 Flash 0731 41.0 against Gemma 4 31B 4.2, 36.8 points apart on a 0 to 100 scale.
Output price
DeepSeek V4 Flash 0731 $0.396 against Gemma 4 31B $0.40 per million output tokens, 1.0x apart.
Context window
DeepSeek V4 Flash 0731 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 Flash 0731BarsGemma 4 31BTies
Coding40
Intelligence20
Agentic work10
Reasoning30
Math10
Knowledge10
General30
All shared boards150
CodingLike-for-likeSix of these boards feed the Vibe Coding Index40
Coding benchmarks for DeepSeek V4 Flash 0731 and Gemma 4 31B
BenchmarkDeepSeek V4 Flash 0731Gemma 4 31BLeader
LiveBench codingNot measured49.0%Only Gemma 4 31B measured
LMArena WebDevNot measured1367Only Gemma 4 31B measured
AA Coding Index69.143.4DeepSeek V4 Flash 0731
LiveCodeBench (Vals AI)87.3%Not measuredOnly DeepSeek V4 Flash 0731 measured
SWE-bench Verified (Vals AI)88.8%Not measuredOnly DeepSeek V4 Flash 0731 measured
Terminal-Bench 4 (Vals AI)18.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
Vibe Code Bench (Vals AI)74.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
Code migration (Vals AI)38.6%Not measuredOnly DeepSeek V4 Flash 0731 measured
ProgramBench (Vals AI)0.0%Not measuredOnly DeepSeek V4 Flash 0731 measured
IOI (Vals AI)32.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
Terminal-Bench 2.1 (Vals AI)67.0%Not measuredOnly DeepSeek V4 Flash 0731 measured
SkillsBench (Vals AI)50.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
CyberBench (Vals AI)72.1%Not measuredOnly DeepSeek V4 Flash 0731 measured
SciCode50.3%45.5%DeepSeek V4 Flash 0731
Terminal-Bench Hard (Artificial Analysis run)Not measured36.4%Only Gemma 4 31B measured
FrontierCode18.8%Not measuredOnly DeepSeek V4 Flash 0731 measured
WeirdML63.0%52.3%DeepSeek V4 Flash 0731
ALE-Bench1306.1925.5DeepSeek V4 Flash 0731
LMArena Text: codingNot measured1459Only Gemma 4 31B measured
LMArena Text: software and ITNot measured1463Only Gemma 4 31B measured
LMArena WebDev: ReactNot measured1359Only Gemma 4 31B measured
LMArena WebDev: HTMLNot measured1380Only Gemma 4 31B measured
SciCodeNot measured8.9%Only Gemma 4 31B measured
Neither model has a result on the other 16 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for DeepSeek V4 Flash 0731 and Gemma 4 31B
BenchmarkDeepSeek V4 Flash 0731Gemma 4 31BLeader
AA Intelligence Index34.314.7DeepSeek V4 Flash 0731
Epoch Capabilities Index154.8143.0DeepSeek V4 Flash 0731
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for DeepSeek V4 Flash 0731 and Gemma 4 31B
BenchmarkDeepSeek V4 Flash 0731Gemma 4 31BLeader
AA Agentic Index41.04.2DeepSeek V4 Flash 0731
LiveBench researchNot measured44.4%Only Gemma 4 31B measured
LiveBench browserNot measured4.0%Only Gemma 4 31B measured
LiveBench long agenticNot measured13.3%Only Gemma 4 31B measured
Finance Agent (Vals AI)49.5%Not measuredOnly DeepSeek V4 Flash 0731 measured
Tax Agent Bench (Vals AI)28.1%Not measuredOnly DeepSeek V4 Flash 0731 measured
Legal Research Bench (Vals AI)30.3%Not measuredOnly DeepSeek V4 Flash 0731 measured
Excel Modeling Benchmark (Vals AI)57.0%Not measuredOnly DeepSeek V4 Flash 0731 measured
BioMysteryBench (Vals AI)64.4%Not measuredOnly DeepSeek V4 Flash 0731 measured
Terminal-Bench-Science (Vals AI)4.3%Not measuredOnly DeepSeek V4 Flash 0731 measured
τ²-Bench TelecomNot measured65.5%Only Gemma 4 31B measured
Neither model has a result on the other 30 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index30
Reasoning benchmarks for DeepSeek V4 Flash 0731 and Gemma 4 31B
BenchmarkDeepSeek V4 Flash 0731Gemma 4 31BLeader
GPQA Diamond89.9%Not measuredOnly DeepSeek V4 Flash 0731 measured
LiveBench reasoningNot measured68.3%Only Gemma 4 31B measured
GPQA Diamond (Artificial Analysis run)90.8%85.7%DeepSeek V4 Flash 0731
Humanity's Last Exam (Artificial Analysis run)38.6%23.6%DeepSeek V4 Flash 0731
GPQA Diamond (Epoch AI run)91.0%75.8%DeepSeek V4 Flash 0731
ARC-AGI89.0%Not measuredOnly DeepSeek V4 Flash 0731 measured
ARC-AGI-261.4%Not measuredOnly DeepSeek V4 Flash 0731 measured
SimpleBench61.1%Not measuredOnly DeepSeek V4 Flash 0731 measured
Chess puzzles32.0%Not measuredOnly DeepSeek V4 Flash 0731 measured
Mystery game puzzles34.0%Not measuredOnly DeepSeek V4 Flash 0731 measured
LMArena Text: hard promptsNot measured1448Only Gemma 4 31B measured
LMArena Text: expertNot measured1464Only Gemma 4 31B measured
LMArena Text: hard prompts in EnglishNot measured1456Only Gemma 4 31B measured
LMArena Vision: diagramsNot measured1283Only Gemma 4 31B measured
LMArena Vision: homeworkNot measured1310Only Gemma 4 31B measured
Kagi LLM BenchmarkNot measured63.5%Only Gemma 4 31B measured
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index10
Math benchmarks for DeepSeek V4 Flash 0731 and Gemma 4 31B
BenchmarkDeepSeek V4 Flash 0731Gemma 4 31BLeader
OTIS Mock AIME94.4%73.3%DeepSeek V4 Flash 0731
FrontierMath, tiers 1 to 357.5%Not measuredOnly DeepSeek V4 Flash 0731 measured
FrontierMath, tier 424.4%Not measuredOnly DeepSeek V4 Flash 0731 measured
ProofBench56.0%Not measuredOnly DeepSeek V4 Flash 0731 measured
LMArena Text: mathNot measured1463Only Gemma 4 31B measured
LMArena Text: mathematical workNot measured1465Only Gemma 4 31B measured
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index10
Knowledge benchmarks for DeepSeek V4 Flash 0731 and Gemma 4 31B
BenchmarkDeepSeek V4 Flash 0731Gemma 4 31BLeader
MMLU Pro86.2%Not measuredOnly DeepSeek V4 Flash 0731 measured
LegalBench (Vals AI)77.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
CaseLaw (Vals AI)Not measured52.6%Only Gemma 4 31B measured
CorpFin (Vals AI)61.9%Not measuredOnly DeepSeek V4 Flash 0731 measured
TaxEval (Vals AI)70.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
MortgageTax (Vals AI)Not measured61.4%Only Gemma 4 31B measured
MedCode (Vals AI)41.4%Not measuredOnly DeepSeek V4 Flash 0731 measured
SimpleQA Verified33.6%10.4%DeepSeek V4 Flash 0731
LMArena Text: scienceNot measured1457Only Gemma 4 31B measured
LMArena Text: medicine and healthcareNot measured1451Only Gemma 4 31B measured
LMArena Text: legal and governmentNot measured1438Only Gemma 4 31B measured
LMArena Text: business and financeNot measured1430Only Gemma 4 31B measured
FACTS Benchmark SuiteNot measured45.3%Only Gemma 4 31B measured
Neither model has a result on the other 5 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
Web design benchmarks for DeepSeek V4 Flash 0731 and Gemma 4 31B
BenchmarkDeepSeek V4 Flash 0731Gemma 4 31BLeader
Design Arena: websites1237Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: UI components1233Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: game dev1207Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: data viz1180Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: 3D1208Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: all code categories1229Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: SVG1184Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: ASCII art1090Not measuredOnly DeepSeek V4 Flash 0731 measured
LiveBench designNot measured58.4%Only Gemma 4 31B measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index30
General benchmarks for DeepSeek V4 Flash 0731 and Gemma 4 31B
BenchmarkDeepSeek V4 Flash 0731Gemma 4 31BLeader
LiveBench data analysisNot measured53.3%Only Gemma 4 31B measured
SAGE (Vals AI)Not measured55.0%Only Gemma 4 31B measured
MedScribe (Vals AI)80.4%Not measuredOnly DeepSeek V4 Flash 0731 measured
IFBenchNot measured75.6%Only Gemma 4 31B measured
Long context reasoning (AA-LCR)79.7%69.7%DeepSeek V4 Flash 0731
DTBench90.9%82.7%DeepSeek V4 Flash 0731
LMCA41.7%39.3%DeepSeek V4 Flash 0731
Surface Evolver BenchNot measured30.6%Only Gemma 4 31B measured
LMArena TextNot measured1443Only Gemma 4 31B measured
LMArena Text: instruction followingNot measured1433Only Gemma 4 31B measured
LMArena Text: creative writingNot measured1417Only Gemma 4 31B measured
LMArena VisionNot measured1276Only Gemma 4 31B measured
LMArena Text: EnglishNot measured1451Only Gemma 4 31B measured
LMArena Text: non-EnglishNot measured1430Only Gemma 4 31B measured
LMArena Text: ChineseNot measured1475Only Gemma 4 31B measured
LMArena Text: FrenchNot measured1436Only Gemma 4 31B measured
LMArena Text: SpanishNot measured1442Only Gemma 4 31B measured
LMArena Text: RussianNot measured1460Only Gemma 4 31B measured
LMArena Text: PolishNot measured1433Only Gemma 4 31B measured
LMArena Text: multi-turnNot measured1452Only Gemma 4 31B measured
LMArena Text: longer queriesNot measured1446Only Gemma 4 31B measured
LMArena Text: writing and languageNot measured1432Only Gemma 4 31B measured
LMArena Text: entertainment and mediaNot measured1405Only Gemma 4 31B measured
LMArena Vision: EnglishNot measured1271Only Gemma 4 31B measured
LMArena Vision: ChineseNot measured1326Only Gemma 4 31B measured
LMArena Vision: reading textNot measured1282Only Gemma 4 31B measured
LMArena Vision: humorNot measured1280Only Gemma 4 31B measured
LMArena Vision: captioningNot measured1218Only Gemma 4 31B measured
LMArena Vision: recognizing thingsNot measured1226Only Gemma 4 31B measured
LMArena Vision: creative writingNot measured1285Only Gemma 4 31B measured
LMArena DocumentNot measured1425Only Gemma 4 31B measured
Neither model has a result on the other 15 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for DeepSeek V4 Flash 0731 and Gemma 4 31B
BenchmarkDeepSeek V4 Flash 0731Gemma 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 Flash 0731$0.0003Fits in one request
Gemma 4 31B$0.0003Fits in one request

DeepSeek V4 Flash 0731 costs less

Repository review

50K input + 3K output tokens

DeepSeek V4 Flash 0731$0.0082Fits in one request
Gemma 4 31B$0.0082Fits in one request

DeepSeek V4 Flash 0731 costs less

Agent loop

200K input + 10K output tokens

DeepSeek V4 Flash 0731$0.032Fits in one request
Gemma 4 31B$0.032Fits in one request

DeepSeek V4 Flash 0731 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 Flash 0731 and Gemma 4 31B
SpecificationDeepSeek V4 Flash 0731Google Gemma 4 31B
MakerDeepSeekGoogle
WeightsOpen weightsOpen weights
ReleasedJuly 31, 2026April 2, 2026
Context window1.05M262K
Input $/Mtok$0.14$0.14
Output $/Mtok$0.396$0.40
Coding index51.839.0
Independent measurements behind it42
Cost per solved task$0.01Not computable
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick DeepSeek V4 Flash 0731 for coding: it scores 51.8 on the Vibe Coding Index against 39.0 for Gemma 4 31B. Gemma 4 31B is neither cheaper nor larger in context, and leads no benchmark both models were measured on.

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

DeepSeek V4 Flash 0731 costs $0.14 per million input tokens and $0.396 per million output tokens; Gemma 4 31B costs $0.14 and $0.40. Cost per solved task is known for DeepSeek V4 Flash 0731 only.

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

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

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

15 benchmarks have a result for both models as of October 22, 2026. DeepSeek V4 Flash 0731's coding index rests on 4 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-flash-0731-vs-gemma-4-31b-it" title="DeepSeek V4 Flash 0731 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-flash-0731-vs-gemma-4-31b-it">LLMBenchmark.ai, DeepSeek V4 Flash 0731 vs Gemma 4 31B</a></p>