Enter opens the highlighted result. Esc closes.

DeepSeek V4 Flash 0731 vs GLM 5.4

GLM 5.4 leads DeepSeek V4 Flash 0731 on coding, 72.7 to 51.8 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 December 3, 2026; no benchmark has tested both models yet.

DeepSeek V4 Flash 0731DeepSeek
Coding
51.8
Overall
61.0
Output $/M
$0.28
GLM 5.4Z.ai
Coding
72.7
Overall
No data
Output $/M
$4.40
vs $0.28 vs $4.40 per 1M output tokens. DeepSeek V4 Flash 0731 is 15.7x cheaper.

DeepSeek V4 Flash 0731 or GLM 5.4: which to pick

DeepSeek V4 Flash 0731 scores 51.8 and GLM 5.4 72.7 on the Vibe Coding Index, but no coding benchmark measured both, so the gap is directional, not a ranking.

Pick DeepSeek V4 Flash 0731 for output tokens 15.7x cheaper ($0.28 vs $4.40 per million).

No benchmark has tested both yet. DeepSeek V4 Flash 0731 has results on LiveCodeBench (Vals AI), SWE-bench Verified (Vals AI) and Terminal-Bench 4 (Vals AI); GLM 5.4 on LiveBench coding, LMArena WebDev and LMArena WebDev: React. Compare them on price and context instead.

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.4 72.7 from 2 benchmarks.
Widest category
None yet: no category has been tested on both models.
Widest single gap
None yet: no benchmark has tested both models.
Output price
DeepSeek V4 Flash 0731 $0.28 against GLM 5.4 $4.40 per million output tokens, 15.7x apart.
Context window
Both take 1.05M tokens.

Benchmark by benchmark

Every board either model has a result on, a category to a fold; bars are each result on a 0 to 100 scale. Only one model is measured on each, so no row names a leader.

CodingDirectional onlySix of these boards feed the Vibe Coding Index19 boards measured
Coding benchmarks for DeepSeek V4 Flash 0731 and GLM 5.4
BenchmarkDeepSeek V4 Flash 0731GLM 5.4Leader
LiveBench codingNot measured74.5%Only GLM 5.4 measured
LMArena WebDevNot measured1690Only GLM 5.4 measured
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%Not measuredOnly DeepSeek V4 Flash 0731 measured
Terminal-Bench 4.0 (Artificial Analysis run)12.1%Not measuredOnly DeepSeek V4 Flash 0731 measured
FrontierCode18.8%Not measuredOnly DeepSeek V4 Flash 0731 measured
WeirdML63.0%Not measuredOnly DeepSeek V4 Flash 0731 measured
ALE-Bench1306.1Not measuredOnly DeepSeek V4 Flash 0731 measured
LMArena WebDev: ReactNot measured1739Only GLM 5.4 measured
LMArena WebDev: HTMLNot measured1675Only GLM 5.4 measured
Neither model has a result on the other 33 boards here
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index1 board measured
Intelligence benchmarks for DeepSeek V4 Flash 0731 and GLM 5.4
BenchmarkDeepSeek V4 Flash 0731GLM 5.4Leader
Epoch Capabilities Index154.3Not measuredOnly DeepSeek V4 Flash 0731 measured
Neither model has a result on the other 1 board here
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index10 boards measured
Agentic work benchmarks for DeepSeek V4 Flash 0731 and GLM 5.4
BenchmarkDeepSeek V4 Flash 0731GLM 5.4Leader
LiveBench researchNot measured86.0%Only GLM 5.4 measured
LiveBench browserNot measured64.5%Only GLM 5.4 measured
LiveBench long agenticNot measured41.3%Only GLM 5.4 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
Toolathlon-Verified70.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
Neither model has a result on the other 34 boards here
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index11 boards measured
Reasoning benchmarks for DeepSeek V4 Flash 0731 and GLM 5.4
BenchmarkDeepSeek V4 Flash 0731GLM 5.4Leader
GPQA Diamond89.9%Not measuredOnly DeepSeek V4 Flash 0731 measured
LiveBench reasoningNot measured85.2%Only GLM 5.4 measured
GPQA Diamond (Artificial Analysis run)90.8%Not measuredOnly DeepSeek V4 Flash 0731 measured
Humanity's Last Exam (Artificial Analysis run)38.6%Not measuredOnly DeepSeek V4 Flash 0731 measured
GPQA Diamond (Epoch AI run)91.0%Not measuredOnly DeepSeek V4 Flash 0731 measured
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
GoBench1447Not measuredOnly DeepSeek V4 Flash 0731 measured
Neither model has a result on the other 15 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index4 boards measured
Math benchmarks for DeepSeek V4 Flash 0731 and GLM 5.4
BenchmarkDeepSeek V4 Flash 0731GLM 5.4Leader
OTIS Mock AIME94.4%Not measuredOnly DeepSeek V4 Flash 0731 measured
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
Neither model has a result on the other 10 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index6 boards measured
Knowledge benchmarks for DeepSeek V4 Flash 0731 and GLM 5.4
BenchmarkDeepSeek V4 Flash 0731GLM 5.4Leader
MMLU Pro86.2%Not measuredOnly DeepSeek V4 Flash 0731 measured
LegalBench (Vals AI)77.7%Not measuredOnly DeepSeek V4 Flash 0731 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
MedCode (Vals AI)41.4%Not measuredOnly DeepSeek V4 Flash 0731 measured
SimpleQA Verified33.6%Not measuredOnly DeepSeek V4 Flash 0731 measured
Neither model has a result on the other 15 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards measured
Web design benchmarks for DeepSeek V4 Flash 0731 and GLM 5.4
BenchmarkDeepSeek V4 Flash 0731GLM 5.4Leader
Design Arena: websites1279Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: UI components1220Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: game dev1176Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: data viz1165Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: 3D1169Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: all code categories1272Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: SVG1220Not measuredOnly DeepSeek V4 Flash 0731 measured
Design Arena: ASCII art1077Not measuredOnly DeepSeek V4 Flash 0731 measured
LiveBench designNot measured74.2%Only GLM 5.4 measured
GeneralDirectional onlyPublic boards, shown as published, kept out of the index6 boards measured
General benchmarks for DeepSeek V4 Flash 0731 and GLM 5.4
BenchmarkDeepSeek V4 Flash 0731GLM 5.4Leader
LiveBench data analysisNot measured72.2%Only GLM 5.4 measured
MedScribe (Vals AI)80.4%Not measuredOnly DeepSeek V4 Flash 0731 measured
Long context reasoning (AA-LCR)79.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
GDPval-AA1436Not measuredOnly DeepSeek V4 Flash 0731 measured
DTBench90.9%Not measuredOnly DeepSeek V4 Flash 0731 measured
LMCA41.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
Neither model has a result on the other 43 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.4$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.4$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.4$0.324Fits 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 GLM 5.4
SpecificationDeepSeek V4 Flash 0731Z.ai GLM 5.4
MakerDeepSeekZ.ai
WeightsOpen weightsOpen weights
ReleasedJuly 31, 2026December 2, 2026
Context window1.05M1.05M
Input $/Mtok$0.14$1.40
Output $/Mtok$0.28$4.40
Coding index51.872.7
Independent measurements behind it42
Cost per solved task$0.01Not computable
SourceOpenRouter listingOpenRouter listing

Questions

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

DeepSeek V4 Flash 0731 scores 51.8 and GLM 5.4 72.7 on the Vibe Coding Index, but no coding benchmark measured both, so the gap is directional, not a ranking. Pick DeepSeek V4 Flash 0731 for output tokens 15.7x cheaper ($0.28 vs $4.40 per million).

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

DeepSeek V4 Flash 0731 costs $0.14 per million input tokens and $0.28 per million output tokens; GLM 5.4 costs $1.40 and $4.40. Cost per solved task is known for DeepSeek V4 Flash 0731 only.

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

Neither: both take 1.05M tokens.

Has any benchmark tested both DeepSeek V4 Flash 0731 and GLM 5.4?

No benchmark has tested both yet. DeepSeek V4 Flash 0731 has results on LiveCodeBench (Vals AI), SWE-bench Verified (Vals AI) and Terminal-Bench 4 (Vals AI); GLM 5.4 on LiveBench coding, LMArena WebDev and LMArena WebDev: React. Compare them on price and context instead. Data as of December 3, 2026.

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