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.
- Coding
- 51.8
- Overall
- 61.0
- Output $/M
- $0.28
- Coding
- 72.7
- Overall
- No data
- Output $/M
- $4.40
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.
Coding
Vibe Coding Index, six public coding benchmarks
No call
51.8 against 72.7, from different benchmarks with none in common.
Directional only
Reasoning
GPQA Diamond
No call
Only DeepSeek V4 Flash 0731 has a GPQA Diamond result, 89.9%.
Directional only
Knowledge
MMLU Pro
No call
Only DeepSeek V4 Flash 0731 has a MMLU Pro result, 86.2%.
Directional only
Web design
Design Arena: websites
No call
Only DeepSeek V4 Flash 0731 has a Design Arena: websites result, 1279.
Directional only
Long documents
Listed context window
No call
Both take 1.05M tokens.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 $0.0003, GLM 5.4 $0.0036 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only DeepSeek V4 Flash 0731 has the number, $0.01.
Directional only
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
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.4 | Leader |
|---|---|---|---|
| LiveBench coding | Not measured | 74.5% | Only GLM 5.4 measured |
| LMArena WebDev | Not measured | 1690 | Only GLM 5.4 measured |
| LiveCodeBench (Vals AI) | 87.3% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| SWE-bench Verified (Vals AI) | 88.8% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Terminal-Bench 4 (Vals AI) | 18.7% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Vibe Code Bench (Vals AI) | 74.7% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Code migration (Vals AI) | 38.6% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| ProgramBench (Vals AI) | 0.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| IOI (Vals AI) | 32.7% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Terminal-Bench 2.1 (Vals AI) | 67.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| SkillsBench (Vals AI) | 50.7% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| CyberBench (Vals AI) | 72.1% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| SciCode | 50.3% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Terminal-Bench 4.0 (Artificial Analysis run) | 12.1% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| FrontierCode | 18.8% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| WeirdML | 63.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| ALE-Bench | 1306.1 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| LMArena WebDev: React | Not measured | 1739 | Only GLM 5.4 measured |
| LMArena WebDev: HTML | Not measured | 1675 | Only 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
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.4 | Leader |
|---|---|---|---|
| Epoch Capabilities Index | 154.3 | Not measured | Only 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
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.4 | Leader |
|---|---|---|---|
| LiveBench research | Not measured | 86.0% | Only GLM 5.4 measured |
| LiveBench browser | Not measured | 64.5% | Only GLM 5.4 measured |
| LiveBench long agentic | Not measured | 41.3% | Only GLM 5.4 measured |
| Finance Agent (Vals AI) | 49.5% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Tax Agent Bench (Vals AI) | 28.1% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Legal Research Bench (Vals AI) | 30.3% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Excel Modeling Benchmark (Vals AI) | 57.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| BioMysteryBench (Vals AI) | 64.4% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Terminal-Bench-Science (Vals AI) | 4.3% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Toolathlon-Verified | 70.7% | Not measured | Only 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
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.4 | Leader |
|---|---|---|---|
| GPQA Diamond | 89.9% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| LiveBench reasoning | Not measured | 85.2% | Only GLM 5.4 measured |
| GPQA Diamond (Artificial Analysis run) | 90.8% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Humanity's Last Exam (Artificial Analysis run) | 38.6% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| GPQA Diamond (Epoch AI run) | 91.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| ARC-AGI | 89.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| ARC-AGI-2 | 61.4% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| SimpleBench | 61.1% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Chess puzzles | 32.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Mystery game puzzles | 34.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| GoBench | 1447 | Not measured | Only 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
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.4 | Leader |
|---|---|---|---|
| OTIS Mock AIME | 94.4% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| FrontierMath, tiers 1 to 3 | 57.5% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| FrontierMath, tier 4 | 24.4% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| ProofBench | 56.0% | Not measured | Only 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
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.4 | Leader |
|---|---|---|---|
| MMLU Pro | 86.2% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| LegalBench (Vals AI) | 77.7% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| CorpFin (Vals AI) | 61.9% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| TaxEval (Vals AI) | 70.7% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| MedCode (Vals AI) | 41.4% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| SimpleQA Verified | 33.6% | Not measured | Only 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
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.4 | Leader |
|---|---|---|---|
| Design Arena: websites | 1279 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Design Arena: UI components | 1220 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Design Arena: game dev | 1176 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Design Arena: data viz | 1165 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Design Arena: 3D | 1169 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Design Arena: all code categories | 1272 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Design Arena: SVG | 1220 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Design Arena: ASCII art | 1077 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| LiveBench design | Not measured | 74.2% | Only GLM 5.4 measured |
GeneralDirectional onlyPublic boards, shown as published, kept out of the index6 boards measured
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.4 | Leader |
|---|---|---|---|
| LiveBench data analysis | Not measured | 72.2% | Only GLM 5.4 measured |
| MedScribe (Vals AI) | 80.4% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Long context reasoning (AA-LCR) | 79.7% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| GDPval-AA | 1436 | Not measured | Only DeepSeek V4 Flash 0731 measured |
| DTBench | 90.9% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| LMCA | 41.7% | Not measured | Only 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 costs less
Repository review
50K input + 3K output tokens
DeepSeek V4 Flash 0731 costs less
Agent loop
200K input + 10K output tokens
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.
| Specification | DeepSeek V4 Flash 0731 | Z.ai GLM 5.4 |
|---|---|---|
| Maker | DeepSeek | Z.ai |
| Weights | Open weights | Open weights |
| Released | July 31, 2026 | December 2, 2026 |
| Context window | 1.05M | 1.05M |
| Input $/Mtok | $0.14 | $1.40 |
| Output $/Mtok | $0.28 | $4.40 |
| Coding index | 51.8 | 72.7 |
| Independent measurements behind it | 4 | 2 |
| Cost per solved task | $0.01 | Not computable |
| Source | OpenRouter listing | OpenRouter 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.