Enter opens the highlighted result. Esc closes.

DeepSeek V4 Pro 0813 vs Gemma 4 31B

DeepSeek V4 Pro 0813 leads Gemma 4 31B on coding, 56.1 to 39.0 on the Vibe Coding Index, and Gemma 4 31B costs 4.9x less per output token ($0.40 vs $1.98 per million). Updated October 22, 2026; 42 benchmarks have a result for both.

DeepSeek V4 Pro 0813DeepSeek
Coding
56.1
Overall
60.8
Output $/M
$1.98
34
Gemma 4 31BGoogle
Coding
39.0
Overall
42.1
Output $/M
$0.40
8
vs boards won of 42 shared

DeepSeek V4 Pro 0813 or Gemma 4 31B: which to pick

Pick DeepSeek V4 Pro 0813 for coding: it scores 56.1 on the Vibe Coding Index against 39.0 for Gemma 4 31B.

Pick Gemma 4 31B for output tokens 4.9x cheaper ($0.40 vs $1.98 per million) and work measured by LMArena Text: software and IT or LMArena Text: expert, where it leads.

Shared results
42
DeepSeek V4 Pro 0813 only
36
Gemma 4 31B only
29
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 Pro 0813 56.1 from 5 benchmarks, Gemma 4 31B 39.0 from 2 benchmarks.
Widest category
Agentic work, 37.1 points apart on average over 1 shared benchmark.
Widest single gap
SimpleQA Verified: DeepSeek V4 Pro 0813 52.9% against Gemma 4 31B 10.4%, 42.5 points apart on a 0 to 100 scale.
Output price
DeepSeek V4 Pro 0813 $1.98 against Gemma 4 31B $0.40 per million output tokens, 4.9x apart.
Context window
DeepSeek V4 Pro 0813 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 Pro 0813BarsGemma 4 31BTies
Coding81
Intelligence20
Agentic work10
Reasoning51
Math12
Knowledge32
General142
All shared boards348
CodingLike-for-likeSix of these boards feed the Vibe Coding Index81
Coding benchmarks for DeepSeek V4 Pro 0813 and Gemma 4 31B
BenchmarkDeepSeek V4 Pro 0813Gemma 4 31BLeader
LiveBench codingNot measured49.0%Only Gemma 4 31B measured
LMArena WebDev15821367DeepSeek V4 Pro 0813
AA Coding Index68.843.4DeepSeek V4 Pro 0813
LiveCodeBench (Vals AI)87.5%Not measuredOnly DeepSeek V4 Pro 0813 measured
SWE-bench Verified (Vals AI)96.4%Not measuredOnly DeepSeek V4 Pro 0813 measured
Terminal-Bench 4 (Vals AI)14.1%Not measuredOnly DeepSeek V4 Pro 0813 measured
Vibe Code Bench (Vals AI)82.3%Not measuredOnly DeepSeek V4 Pro 0813 measured
Code migration (Vals AI)41.5%Not measuredOnly DeepSeek V4 Pro 0813 measured
ProgramBench (Vals AI)0.0%Not measuredOnly DeepSeek V4 Pro 0813 measured
IOI (Vals AI)51.6%Not measuredOnly DeepSeek V4 Pro 0813 measured
Terminal-Bench 2.1 (Vals AI)54.7%Not measuredOnly DeepSeek V4 Pro 0813 measured
Vibe Code Bench 1-100 (Vals AI)17.5%Not measuredOnly DeepSeek V4 Pro 0813 measured
SkillsBench (Vals AI)53.8%Not measuredOnly DeepSeek V4 Pro 0813 measured
CyberBench (Vals AI)72.9%Not measuredOnly DeepSeek V4 Pro 0813 measured
SciCode51.0%45.5%DeepSeek V4 Pro 0813
Terminal-Bench Hard (Artificial Analysis run)Not measured36.4%Only Gemma 4 31B measured
FrontierCode28.5%Not measuredOnly DeepSeek V4 Pro 0813 measured
WeirdML66.2%52.3%DeepSeek V4 Pro 0813
ALE-Bench1403.2925.5DeepSeek V4 Pro 0813
LMArena Text: coding14691459DeepSeek V4 Pro 0813
LMArena Text: software and IT14621463Gemma 4 31B
LMArena WebDev: React15881359DeepSeek V4 Pro 0813
LMArena WebDev: HTML15661380DeepSeek V4 Pro 0813
SciCodeNot measured8.9%Only Gemma 4 31B 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 Pro 0813 and Gemma 4 31B
BenchmarkDeepSeek V4 Pro 0813Gemma 4 31BLeader
AA Intelligence Index36.014.7DeepSeek V4 Pro 0813
Epoch Capabilities Index155.6143.0DeepSeek V4 Pro 0813
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for DeepSeek V4 Pro 0813 and Gemma 4 31B
BenchmarkDeepSeek V4 Pro 0813Gemma 4 31BLeader
AA Agentic Index41.34.2DeepSeek V4 Pro 0813
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
SREBench (Vals AI)1.9%Not measuredOnly DeepSeek V4 Pro 0813 measured
Finance Agent (Vals AI)50.4%Not measuredOnly DeepSeek V4 Pro 0813 measured
Tax Agent Bench (Vals AI)26.8%Not measuredOnly DeepSeek V4 Pro 0813 measured
Legal Research Bench (Vals AI)40.9%Not measuredOnly DeepSeek V4 Pro 0813 measured
Harvey's Legal Agent Benchmark (Vals AI)10.8%Not measuredOnly DeepSeek V4 Pro 0813 measured
Excel Modeling Benchmark (Vals AI)52.8%Not measuredOnly DeepSeek V4 Pro 0813 measured
Terminal-Bench-Science (Vals AI)4.3%Not measuredOnly DeepSeek V4 Pro 0813 measured
τ²-Bench TelecomNot measured65.5%Only Gemma 4 31B measured
APEX-Agents47.3%Not measuredOnly DeepSeek V4 Pro 0813 measured
Neither model has a result on the other 28 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index51
Reasoning benchmarks for DeepSeek V4 Pro 0813 and Gemma 4 31B
BenchmarkDeepSeek V4 Pro 0813Gemma 4 31BLeader
GPQA Diamond92.4%Not measuredOnly DeepSeek V4 Pro 0813 measured
LiveBench reasoningNot measured68.3%Only Gemma 4 31B measured
GPQA Diamond (Artificial Analysis run)92.8%85.7%DeepSeek V4 Pro 0813
Humanity's Last Exam (Artificial Analysis run)41.0%23.6%DeepSeek V4 Pro 0813
GPQA Diamond (Epoch AI run)91.7%75.8%DeepSeek V4 Pro 0813
ARC-AGI90.5%Not measuredOnly DeepSeek V4 Pro 0813 measured
ARC-AGI-261.3%Not measuredOnly DeepSeek V4 Pro 0813 measured
Chess puzzles46.0%Not measuredOnly DeepSeek V4 Pro 0813 measured
Mystery game puzzles43.0%Not measuredOnly DeepSeek V4 Pro 0813 measured
LMArena Text: hard prompts14581448DeepSeek V4 Pro 0813
LMArena Text: expert14591464Gemma 4 31B
LMArena Text: hard prompts in English14631456DeepSeek V4 Pro 0813
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 7 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index12
Math benchmarks for DeepSeek V4 Pro 0813 and Gemma 4 31B
BenchmarkDeepSeek V4 Pro 0813Gemma 4 31BLeader
OTIS Mock AIME98.6%73.3%DeepSeek V4 Pro 0813
FrontierMath, tiers 1 to 364.6%Not measuredOnly DeepSeek V4 Pro 0813 measured
FrontierMath, tier 426.8%Not measuredOnly DeepSeek V4 Pro 0813 measured
ProofBench50.0%Not measuredOnly DeepSeek V4 Pro 0813 measured
LMArena Text: math14411463Gemma 4 31B
LMArena Text: mathematical work14431465Gemma 4 31B
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index32
Knowledge benchmarks for DeepSeek V4 Pro 0813 and Gemma 4 31B
BenchmarkDeepSeek V4 Pro 0813Gemma 4 31BLeader
MMLU Pro87.0%Not measuredOnly DeepSeek V4 Pro 0813 measured
LegalBench (Vals AI)82.4%Not measuredOnly DeepSeek V4 Pro 0813 measured
CaseLaw (Vals AI)Not measured52.6%Only Gemma 4 31B measured
CorpFin (Vals AI)65.4%Not measuredOnly DeepSeek V4 Pro 0813 measured
TaxEval (Vals AI)73.1%Not measuredOnly DeepSeek V4 Pro 0813 measured
MortgageTax (Vals AI)Not measured61.4%Only Gemma 4 31B measured
MedCode (Vals AI)42.5%Not measuredOnly DeepSeek V4 Pro 0813 measured
SimpleQA Verified52.9%10.4%DeepSeek V4 Pro 0813
LMArena Text: science14571457Gemma 4 31B
LMArena Text: medicine and healthcare14461451Gemma 4 31B
LMArena Text: legal and government14591438DeepSeek V4 Pro 0813
LMArena Text: business and finance14421430DeepSeek V4 Pro 0813
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 index1 board, none shared
Web design benchmarks for DeepSeek V4 Pro 0813 and Gemma 4 31B
BenchmarkDeepSeek V4 Pro 0813Gemma 4 31BLeader
LiveBench designNot measured58.4%Only Gemma 4 31B measured
Neither model has a result on the other 8 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index142
General benchmarks for DeepSeek V4 Pro 0813 and Gemma 4 31B
BenchmarkDeepSeek V4 Pro 0813Gemma 4 31BLeader
Vals Index53.0%Not measuredOnly DeepSeek V4 Pro 0813 measured
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.2%Not measuredOnly DeepSeek V4 Pro 0813 measured
IFBenchNot measured75.6%Only Gemma 4 31B measured
Long context reasoning (AA-LCR)80.3%69.7%DeepSeek V4 Pro 0813
DTBench93.9%82.7%DeepSeek V4 Pro 0813
LMCA45.5%39.3%DeepSeek V4 Pro 0813
Surface Evolver BenchNot measured30.6%Only Gemma 4 31B measured
LMArena Text14461443DeepSeek V4 Pro 0813
LMArena Text: instruction following14481433DeepSeek V4 Pro 0813
LMArena Text: creative writing14391417DeepSeek V4 Pro 0813
LMArena VisionNot measured1276Only Gemma 4 31B measured
LMArena Text: English14571451DeepSeek V4 Pro 0813
LMArena Text: non-English14311430DeepSeek V4 Pro 0813
LMArena Text: Chinese14811475DeepSeek V4 Pro 0813
LMArena Text: Korean1449Not measuredOnly DeepSeek V4 Pro 0813 measured
LMArena Text: French14461436DeepSeek V4 Pro 0813
LMArena Text: Spanish14351442Gemma 4 31B
LMArena Text: Russian14481460Gemma 4 31B
LMArena Text: PolishNot measured1433Only Gemma 4 31B measured
LMArena Text: multi-turn14541452DeepSeek V4 Pro 0813
LMArena Text: longer queries14581446DeepSeek V4 Pro 0813
LMArena Text: writing and language14431432DeepSeek V4 Pro 0813
LMArena Text: entertainment and media14241405DeepSeek V4 Pro 0813
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 13 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for DeepSeek V4 Pro 0813 and Gemma 4 31B
BenchmarkDeepSeek V4 Pro 0813Gemma 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 Pro 0813$0.0016Fits in one request
Gemma 4 31B$0.0003Fits in one request

Gemma 4 31B costs less

Repository review

50K input + 3K output tokens

DeepSeek V4 Pro 0813$0.039Fits in one request
Gemma 4 31B$0.0082Fits in one request

Gemma 4 31B costs less

Agent loop

200K input + 10K output tokens

DeepSeek V4 Pro 0813$0.152Fits in one request
Gemma 4 31B$0.032Fits in one request

Gemma 4 31B 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 Pro 0813 and Gemma 4 31B
SpecificationDeepSeek V4 Pro 0813Google Gemma 4 31B
MakerDeepSeekGoogle
WeightsOpen weightsOpen weights
ReleasedAugust 12, 2026April 2, 2026
Context window1.05M262K
Input $/Mtok$0.66$0.14
Output $/Mtok$1.98$0.40
Coding index56.139.0
Independent measurements behind it52
Cost per solved task$0.10Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is DeepSeek V4 Pro 0813 better than Gemma 4 31B for coding?

Pick DeepSeek V4 Pro 0813 for coding: it scores 56.1 on the Vibe Coding Index against 39.0 for Gemma 4 31B. Pick Gemma 4 31B for output tokens 4.9x cheaper ($0.40 vs $1.98 per million) and work measured by LMArena Text: software and IT or LMArena Text: expert, where it leads.

Which is cheaper, DeepSeek V4 Pro 0813 or Gemma 4 31B?

DeepSeek V4 Pro 0813 costs $0.66 per million input tokens and $1.98 per million output tokens; Gemma 4 31B costs $0.14 and $0.40. Cost per solved task is known for DeepSeek V4 Pro 0813 only.

Which has the bigger context window, DeepSeek V4 Pro 0813 or Gemma 4 31B?

DeepSeek V4 Pro 0813, with 1.05M tokens against 262K.

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

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