Enter opens the highlighted result. Esc closes.

DeepSeek V4 Flash 0731 vs GLM 5

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

DeepSeek V4 Flash 0731DeepSeek
Coding
51.8
Overall
34.3
Output $/M
$0.396
20
GLM 5Z.ai
Coding
41.7
Overall
27.9
Output $/M
$3.20
8
vs boards won of 28 shared

Decision reading

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

Pick GLM 5 when what matters is LegalBench (Vals AI) or CorpFin (Vals AI), where it leads.

Shared results
28
DeepSeek V4 Flash 0731 only
27
GLM 5 only
47
Like-for-like categories
7 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 Flash 0731 51.8 from 4 benchmarks, GLM 5 41.7 from 3 benchmarks.
Widest category
Coding, 21.4 points apart on average over 5 shared benchmarks.
Widest single gap
ARC-AGI-2: DeepSeek V4 Flash 0731 61.4% against GLM 5 4.9%, 56.5 points apart on a 0 to 100 scale.
Output price
DeepSeek V4 Flash 0731 $0.396 against GLM 5 $3.20 per million output tokens, 8.1x apart.
Context window
DeepSeek V4 Flash 0731 takes 1.05M tokens, GLM 5 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 5Ties
Coding50
Intelligence20
Reasoning70
Math10
Knowledge22
Web design26
General10
All shared boards208
CodingLike-for-likeSix of these boards feed the Vibe Coding Index50
Coding benchmarks for DeepSeek V4 Flash 0731 and GLM 5
BenchmarkDeepSeek V4 Flash 0731GLM 5Leader
SWE-bench VerifiedNot measured72.8%Only GLM 5 measured
SWE-bench MultilingualNot measured69.7%Only GLM 5 measured
LMArena WebDevNot measured1435Only GLM 5 measured
AA Coding Index69.1Not measuredOnly DeepSeek V4 Flash 0731 measured
LiveCodeBench (Vals AI)87.3%81.9%DeepSeek V4 Flash 0731
SWE-bench Verified (Vals AI)88.8%71.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%23.4%DeepSeek V4 Flash 0731
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%Not measuredOnly DeepSeek V4 Flash 0731 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured43.2%Only GLM 5 measured
Terminal-BenchNot measured52.4%Only GLM 5 measured
FrontierCode18.8%Not measuredOnly DeepSeek V4 Flash 0731 measured
WeirdML63.0%48.2%DeepSeek V4 Flash 0731
ALE-Bench1306.1765.6DeepSeek V4 Flash 0731
LMArena Text: codingNot measured1461Only GLM 5 measured
LMArena Text: software and ITNot measured1460Only GLM 5 measured
LMArena WebDev: ReactNot measured1424Only GLM 5 measured
LMArena WebDev: HTMLNot measured1450Only GLM 5 measured
Neither model has a result on the other 14 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for DeepSeek V4 Flash 0731 and GLM 5
BenchmarkDeepSeek V4 Flash 0731GLM 5Leader
AA Intelligence Index34.327.9DeepSeek V4 Flash 0731
Epoch Capabilities Index154.8145.8DeepSeek V4 Flash 0731
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index14 boards, none shared
Agentic work benchmarks for DeepSeek V4 Flash 0731 and GLM 5
BenchmarkDeepSeek V4 Flash 0731GLM 5Leader
AA Agentic Index41.0Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: agents building full-stack appsNot measured1123Only GLM 5 measured
Design Arena: agents building mobile appsNot measured1136Only GLM 5 measured
Design Arena: agents building Android appsNot measured1153Only GLM 5 measured
Design Arena: agents building Godot gamesNot measured1144Only GLM 5 measured
Design Arena: HTML slidesNot measured1148Only GLM 5 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 measured98.2%Only GLM 5 measured
Vending-Bench 2Not measured$4,432Only GLM 5 measured
Neither model has a result on the other 25 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index70
Reasoning benchmarks for DeepSeek V4 Flash 0731 and GLM 5
BenchmarkDeepSeek V4 Flash 0731GLM 5Leader
GPQA Diamond89.9%83.3%DeepSeek V4 Flash 0731
GPQA Diamond (Artificial Analysis run)90.8%82.0%DeepSeek V4 Flash 0731
Humanity's Last Exam (Artificial Analysis run)38.6%29.3%DeepSeek V4 Flash 0731
GPQA Diamond (Epoch AI run)91.0%87.8%DeepSeek V4 Flash 0731
ARC-AGI89.0%44.7%DeepSeek V4 Flash 0731
ARC-AGI-261.4%4.9%DeepSeek V4 Flash 0731
SimpleBench61.1%53.2%DeepSeek V4 Flash 0731
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 measured1452Only GLM 5 measured
LMArena Text: expertNot measured1454Only GLM 5 measured
LMArena Text: hard prompts in EnglishNot measured1460Only GLM 5 measured
Neither model has a result on the other 9 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index10
Math benchmarks for DeepSeek V4 Flash 0731 and GLM 5
BenchmarkDeepSeek V4 Flash 0731GLM 5Leader
AIMENot measured91.7%Only GLM 5 measured
OTIS Mock AIME94.4%80.0%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 measured1440Only GLM 5 measured
LMArena Text: mathematical workNot measured1451Only GLM 5 measured
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index22
Knowledge benchmarks for DeepSeek V4 Flash 0731 and GLM 5
BenchmarkDeepSeek V4 Flash 0731GLM 5Leader
MMLU Pro86.2%86.0%DeepSeek V4 Flash 0731
LegalBench (Vals AI)77.7%84.1%GLM 5
CaseLaw (Vals AI)Not measured52.5%Only GLM 5 measured
CorpFin (Vals AI)61.9%62.9%GLM 5
TaxEval (Vals AI)70.7%70.0%DeepSeek V4 Flash 0731
MedQA (Vals AI)Not measured94.3%Only GLM 5 measured
MedCode (Vals AI)41.4%Not measuredOnly DeepSeek V4 Flash 0731 measured
SimpleQA Verified33.6%Not measuredOnly DeepSeek V4 Flash 0731 measured
LMArena Text: scienceNot measured1460Only GLM 5 measured
LMArena Text: medicine and healthcareNot measured1455Only GLM 5 measured
LMArena Text: legal and governmentNot measured1453Only GLM 5 measured
LMArena Text: business and financeNot measured1430Only GLM 5 measured
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index26
Web design benchmarks for DeepSeek V4 Flash 0731 and GLM 5
BenchmarkDeepSeek V4 Flash 0731GLM 5Leader
Design Arena: websites12381247GLM 5
Design Arena: UI components12351230DeepSeek V4 Flash 0731
Design Arena: game dev12081234GLM 5
Design Arena: data viz11801228GLM 5
Design Arena: 3D12091229GLM 5
Design Arena: all code categories12301246GLM 5
Design Arena: SVG11851168DeepSeek V4 Flash 0731
Design Arena: ASCII art10901146GLM 5
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index10
General benchmarks for DeepSeek V4 Flash 0731 and GLM 5
BenchmarkDeepSeek V4 Flash 0731GLM 5Leader
MedScribe (Vals AI)80.4%Not measuredOnly DeepSeek V4 Flash 0731 measured
IFBenchNot measured72.3%Only GLM 5 measured
Long context reasoning (AA-LCR)79.7%75.7%DeepSeek V4 Flash 0731
DTBench90.9%Not measuredOnly DeepSeek V4 Flash 0731 measured
LMCA41.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
CL-benchNot measured18.7%Only GLM 5 measured
LMArena TextNot measured1446Only GLM 5 measured
LMArena Text: instruction followingNot measured1428Only GLM 5 measured
LMArena Text: creative writingNot measured1438Only GLM 5 measured
LMArena Text: EnglishNot measured1458Only GLM 5 measured
LMArena Text: non-EnglishNot measured1430Only GLM 5 measured
LMArena Text: ChineseNot measured1511Only GLM 5 measured
LMArena Text: GermanNot measured1447Only GLM 5 measured
LMArena Text: JapaneseNot measured1416Only GLM 5 measured
LMArena Text: KoreanNot measured1423Only GLM 5 measured
LMArena Text: FrenchNot measured1456Only GLM 5 measured
LMArena Text: SpanishNot measured1454Only GLM 5 measured
LMArena Text: RussianNot measured1436Only GLM 5 measured
LMArena Text: PolishNot measured1434Only GLM 5 measured
LMArena Text: multi-turnNot measured1456Only GLM 5 measured
LMArena Text: longer queriesNot measured1446Only GLM 5 measured
LMArena Text: writing and languageNot measured1437Only GLM 5 measured
LMArena Text: entertainment and mediaNot measured1426Only GLM 5 measured
Neither model has a result on the other 23 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
BenchmarkDeepSeek V4 Flash 0731GLM 5Leader
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$0.0026Fits 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
GLM 5$0.060Fits 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
GLM 5$0.232Exceeds 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
SpecificationDeepSeek V4 Flash 0731Z.ai GLM 5
MakerDeepSeekZ.ai
WeightsOpen weightsOpen weights
ReleasedJuly 31, 2026February 11, 2026
Context window1.05M205K
Input $/Mtok$0.14$1.00
Output $/Mtok$0.396$3.20
Coding index51.841.7
Independent measurements behind it43
Cost per solved task$0.01$0.63
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick DeepSeek V4 Flash 0731 for coding: it scores 51.8 on the Vibe Coding Index against 41.7 for GLM 5. Pick GLM 5 when what matters is LegalBench (Vals AI) or CorpFin (Vals AI), where it leads.

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

DeepSeek V4 Flash 0731 costs $0.14 per million input tokens and $0.396 per million output tokens; GLM 5 costs $1.00 and $3.20. Per solved SWE-bench Verified task, DeepSeek V4 Flash 0731 costs $0.01 and GLM 5 $0.63.

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

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

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

28 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'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" title="DeepSeek V4 Flash 0731 vs GLM 5, 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">LLMBenchmark.ai, DeepSeek V4 Flash 0731 vs GLM 5</a></p>