Enter opens the highlighted result. Esc closes.

DeepSeek V4 Flash 0731 vs GLM 5.1

DeepSeek V4 Flash 0731 leads GLM 5.1 on coding, 51.8 to 49.2 on the Vibe Coding Index, and DeepSeek V4 Flash 0731 costs 15.7x less per output token ($0.28 vs $4.40 per million). Updated October 21, 2026; 40 benchmarks have a result for both.

DeepSeek V4 Flash 0731DeepSeek
Coding
51.8
Overall
55.2
Output $/M
$0.28
25
GLM 5.1Z.ai
Coding
49.2
Overall
57.5
Output $/M
$4.40
14
vs boards won of 40 shared, 1 tied

DeepSeek V4 Flash 0731 or GLM 5.1: which to pick

Pick DeepSeek V4 Flash 0731 for coding: it scores 51.8 on the Vibe Coding Index against 49.2 for GLM 5.1.

Pick GLM 5.1 for work measured by MMLU Pro or LegalBench (Vals AI), where it leads.

Shared results
40
DeepSeek V4 Flash 0731 only
15
GLM 5.1 only
49
Like-for-like categories
8 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, GLM 5.1 49.2 from 3 benchmarks.
Widest category
Math, 18.5 points apart on average over 3 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): DeepSeek V4 Flash 0731 74.7% against GLM 5.1 31.5%, 43.3 points apart on a 0 to 100 scale.
Output price
DeepSeek V4 Flash 0731 $0.28 against GLM 5.1 $4.40 per million output tokens, 15.7x apart.
Context window
DeepSeek V4 Flash 0731 takes 1.05M tokens, GLM 5.1 205K.

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 0731BarsGLM 5.1Ties
Coding901 tie
Intelligence20
Agentic work30
Reasoning60
Math30
Knowledge06
Web design08
General20
All shared boards25141 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index90
Coding benchmarks for DeepSeek V4 Flash 0731 and GLM 5.1
BenchmarkDeepSeek V4 Flash 0731GLM 5.1Leader
LMArena WebDevNot measured1508Only GLM 5.1 measured
AA Coding Index69.155.8DeepSeek V4 Flash 0731
LiveCodeBench (Vals AI)87.3%81.4%DeepSeek V4 Flash 0731
SWE-bench Verified (Vals AI)88.8%76.4%DeepSeek V4 Flash 0731
Terminal-Bench 4 (Vals AI)18.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
Vibe Code Bench (Vals AI)74.7%31.5%DeepSeek V4 Flash 0731
Code migration (Vals AI)38.6%25.8%DeepSeek V4 Flash 0731
ProgramBench (Vals AI)0.0%0.0%Tie
IOI (Vals AI)32.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
Terminal-Bench 2.1 (Vals AI)67.0%56.9%DeepSeek V4 Flash 0731
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%44.8%DeepSeek V4 Flash 0731
Terminal-Bench Hard (Artificial Analysis run)Not measured43.2%Only GLM 5.1 measured
FrontierCode18.8%Not measuredOnly DeepSeek V4 Flash 0731 measured
WeirdML63.0%57.1%DeepSeek V4 Flash 0731
ALE-Bench1306.1887.1DeepSeek V4 Flash 0731
LMArena Text: codingNot measured1485Only GLM 5.1 measured
LMArena Text: software and ITNot measured1484Only GLM 5.1 measured
LMArena WebDev: ReactNot measured1505Only GLM 5.1 measured
LMArena WebDev: HTMLNot measured1508Only GLM 5.1 measured
Neither model has a result on the other 18 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for DeepSeek V4 Flash 0731 and GLM 5.1
BenchmarkDeepSeek V4 Flash 0731GLM 5.1Leader
AA Intelligence Index34.326.1DeepSeek V4 Flash 0731
Epoch Capabilities Index154.8149.8DeepSeek V4 Flash 0731
Agentic workLike-for-likePublic boards, shown as published, kept out of the index30
Agentic work benchmarks for DeepSeek V4 Flash 0731 and GLM 5.1
BenchmarkDeepSeek V4 Flash 0731GLM 5.1Leader
AA Agentic Index41.023.9DeepSeek V4 Flash 0731
Design Arena: agents building web appsNot measured1175Only GLM 5.1 measured
Design Arena: agents building full-stack appsNot measured1167Only GLM 5.1 measured
Design Arena: agents building mobile appsNot measured1162Only GLM 5.1 measured
Design Arena: agents building Android appsNot measured1180Only GLM 5.1 measured
Design Arena: agents building Godot gamesNot measured1053Only GLM 5.1 measured
Design Arena: agents building gamesNot measured1164Only GLM 5.1 measured
Design Arena: HTML slidesNot measured1170Only GLM 5.1 measured
Design Arena: PowerPoint slidesNot measured1188Only GLM 5.1 measured
Design Arena: spreadsheetsNot measured1315Only GLM 5.1 measured
Finance Agent (Vals AI)49.5%44.8%DeepSeek V4 Flash 0731
Tax Agent Bench (Vals AI)28.1%Not measuredOnly DeepSeek V4 Flash 0731 measured
Legal Research Bench (Vals AI)30.3%27.9%DeepSeek V4 Flash 0731
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 measured97.7%Only GLM 5.1 measured
APEX-AgentsNot measured40.9%Only GLM 5.1 measured
Vending-Bench 2Not measured$5,634Only GLM 5.1 measured
Neither model has a result on the other 22 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
Reasoning benchmarks for DeepSeek V4 Flash 0731 and GLM 5.1
BenchmarkDeepSeek V4 Flash 0731GLM 5.1Leader
GPQA Diamond89.9%84.5%DeepSeek V4 Flash 0731
GPQA Diamond (Artificial Analysis run)90.8%86.8%DeepSeek V4 Flash 0731
Humanity's Last Exam (Artificial Analysis run)38.6%30.1%DeepSeek V4 Flash 0731
GPQA Diamond (Epoch AI run)91.0%89.9%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%55.1%DeepSeek V4 Flash 0731
Chess puzzles32.0%20.0%DeepSeek V4 Flash 0731
Mystery game puzzles34.0%Not measuredOnly DeepSeek V4 Flash 0731 measured
LMArena Text: hard promptsNot measured1473Only GLM 5.1 measured
LMArena Text: expertNot measured1478Only GLM 5.1 measured
LMArena Text: hard prompts in EnglishNot measured1482Only GLM 5.1 measured
Neither model has a result on the other 10 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for DeepSeek V4 Flash 0731 and GLM 5.1
BenchmarkDeepSeek V4 Flash 0731GLM 5.1Leader
AIMENot measured91.9%Only GLM 5.1 measured
OTIS Mock AIME94.4%93.3%DeepSeek V4 Flash 0731
FrontierMath, tiers 1 to 357.5%36.8%DeepSeek V4 Flash 0731
FrontierMath, tier 424.4%Not measuredOnly DeepSeek V4 Flash 0731 measured
ProofBench56.0%22.2%DeepSeek V4 Flash 0731
LMArena Text: mathNot measured1473Only GLM 5.1 measured
LMArena Text: mathematical workNot measured1470Only GLM 5.1 measured
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index06
Knowledge benchmarks for DeepSeek V4 Flash 0731 and GLM 5.1
BenchmarkDeepSeek V4 Flash 0731GLM 5.1Leader
MMLU Pro86.2%86.9%GLM 5.1
LegalBench (Vals AI)77.7%84.4%GLM 5.1
CaseLaw (Vals AI)Not measured51.5%Only GLM 5.1 measured
CorpFin (Vals AI)61.9%64.5%GLM 5.1
TaxEval (Vals AI)70.7%71.2%GLM 5.1
MedCode (Vals AI)41.4%41.6%GLM 5.1
SimpleQA Verified33.6%34.0%GLM 5.1
LMArena Text: scienceNot measured1478Only GLM 5.1 measured
LMArena Text: medicine and healthcareNot measured1474Only GLM 5.1 measured
LMArena Text: legal and governmentNot measured1465Only GLM 5.1 measured
LMArena Text: business and financeNot measured1452Only GLM 5.1 measured
Neither model has a result on the other 7 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index08
Web design benchmarks for DeepSeek V4 Flash 0731 and GLM 5.1
BenchmarkDeepSeek V4 Flash 0731GLM 5.1Leader
Design Arena: websites12381290GLM 5.1
Design Arena: UI components12351292GLM 5.1
Design Arena: game dev12081265GLM 5.1
Design Arena: data viz11801366GLM 5.1
Design Arena: 3D12091336GLM 5.1
Design Arena: all code categories12301268GLM 5.1
Design Arena: SVG11851218GLM 5.1
Design Arena: ASCII art10901142GLM 5.1
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index20
General benchmarks for DeepSeek V4 Flash 0731 and GLM 5.1
BenchmarkDeepSeek V4 Flash 0731GLM 5.1Leader
Public Benefits Bench (Vals AI)Not measured61.8%Only GLM 5.1 measured
MedScribe (Vals AI)80.4%72.3%DeepSeek V4 Flash 0731
IFBenchNot measured76.3%Only GLM 5.1 measured
Long context reasoning (AA-LCR)79.7%73.7%DeepSeek V4 Flash 0731
DTBench90.9%Not measuredOnly DeepSeek V4 Flash 0731 measured
LMCA41.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
ExploitBenchNot measured18.1%Only GLM 5.1 measured
LMArena TextNot measured1463Only GLM 5.1 measured
LMArena Text: instruction followingNot measured1453Only GLM 5.1 measured
LMArena Text: creative writingNot measured1453Only GLM 5.1 measured
LMArena Text: EnglishNot measured1476Only GLM 5.1 measured
LMArena Text: non-EnglishNot measured1448Only GLM 5.1 measured
LMArena Text: ChineseNot measured1515Only GLM 5.1 measured
LMArena Text: GermanNot measured1467Only GLM 5.1 measured
LMArena Text: JapaneseNot measured1435Only GLM 5.1 measured
LMArena Text: KoreanNot measured1424Only GLM 5.1 measured
LMArena Text: FrenchNot measured1470Only GLM 5.1 measured
LMArena Text: SpanishNot measured1468Only GLM 5.1 measured
LMArena Text: RussianNot measured1454Only GLM 5.1 measured
LMArena Text: PolishNot measured1449Only GLM 5.1 measured
LMArena Text: multi-turnNot measured1473Only GLM 5.1 measured
LMArena Text: longer queriesNot measured1467Only GLM 5.1 measured
LMArena Text: writing and languageNot measured1454Only GLM 5.1 measured
LMArena Text: entertainment and mediaNot measured1442Only GLM 5.1 measured
Neither model has a result on the other 22 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 GLM 5.1
BenchmarkDeepSeek V4 Flash 0731GLM 5.1Leader
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
GLM 5.1$0.0036Fits in one request

DeepSeek V4 Flash 0731 costs less

Repository review

50K input + 3K output tokens

DeepSeek V4 Flash 0731$0.0078Fits in one request
GLM 5.1$0.083Fits in one request

DeepSeek V4 Flash 0731 costs less

Agent loop

200K input + 10K output tokens

DeepSeek V4 Flash 0731$0.031Fits in one request
GLM 5.1$0.324Exceeds the context window

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 GLM 5.1
SpecificationDeepSeek V4 Flash 0731Z.ai GLM 5.1
MakerDeepSeekZ.ai
WeightsOpen weightsOpen weights
ReleasedJuly 31, 2026April 7, 2026
Context window1.05M205K
Input $/Mtok$0.14$1.40
Output $/Mtok$0.28$4.40
Coding index51.849.2
Independent measurements behind it43
Cost per solved task$0.01$0.60
SourceOpenRouter listingOpenRouter listing

Questions

Is DeepSeek V4 Flash 0731 better than GLM 5.1 for coding?

Pick DeepSeek V4 Flash 0731 for coding: it scores 51.8 on the Vibe Coding Index against 49.2 for GLM 5.1. Pick GLM 5.1 for work measured by MMLU Pro or LegalBench (Vals AI), where it leads.

Which is cheaper, DeepSeek V4 Flash 0731 or GLM 5.1?

DeepSeek V4 Flash 0731 costs $0.14 per million input tokens and $0.28 per million output tokens; GLM 5.1 costs $1.40 and $4.40. Per solved SWE-bench Verified task, DeepSeek V4 Flash 0731 costs $0.01 and GLM 5.1 $0.60.

Which has the bigger context window, DeepSeek V4 Flash 0731 or GLM 5.1?

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

How many benchmarks is the DeepSeek V4 Flash 0731 vs GLM 5.1 comparison based on?

40 benchmarks have a result for both models as of October 21, 2026. DeepSeek V4 Flash 0731's coding index rests on 4 independent benchmarks and GLM 5.1's on 3. 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-glm-5-1" title="DeepSeek V4 Flash 0731 vs GLM 5.1, 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-glm-5-1">LLMBenchmark.ai, DeepSeek V4 Flash 0731 vs GLM 5.1</a></p>