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 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.
Coding
Vibe Coding Index, six public coding benchmarks
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 scores 51.8 against 49.2.
4 and 3 benchmarks behind the scores
Intelligence
AA Intelligence Index
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 leads, 34.3 against 26.1.
Same board, both measured
Agentic work
AA Agentic Index
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 leads, 41.0 against 23.9.
Same board, both measured
Reasoning
GPQA Diamond
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 leads, 89.9% against 84.5%.
Same board, both measured
Math
AIME
No call
Only GLM 5.1 has a AIME result, 91.9%.
Directional only
Knowledge
MMLU Pro
GLM 5.1
GLM 5.1 leads, 86.9% against 86.2%.
Same board, both measured
Web design
Design Arena: websites
GLM 5.1
GLM 5.1 leads, 1290 against 1238.
Same board, both measured
Long documents
Listed context window
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 takes 1.05M tokens against 205K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 $0.0003, GLM 5.1 $0.0036 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 $0.01, GLM 5.1 $0.60.
Published attempt cost and pass rate
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.
| Category | DeepSeek V4 Flash 0731 | Bars | GLM 5.1 | Ties |
|---|---|---|---|---|
| Coding | 9 | 0 | 1 tie | |
| Intelligence | 2 | 0 | ||
| Agentic work | 3 | 0 | ||
| Reasoning | 6 | 0 | ||
| Math | 3 | 0 | ||
| Knowledge | 0 | 6 | ||
| Web design | 0 | 8 | ||
| General | 2 | 0 | ||
| All shared boards | 25 | 14 | 1 tie |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index90
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.1 | Leader |
|---|---|---|---|
| LMArena WebDev | Not measured | 1508 | Only GLM 5.1 measured |
| AA Coding Index | 69.1 | 55.8 | DeepSeek 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 measured | Only 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 measured | Only 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 measured | Only DeepSeek V4 Flash 0731 measured |
| CyberBench (Vals AI) | 72.1% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| SciCode | 50.3% | 44.8% | DeepSeek V4 Flash 0731 |
| Terminal-Bench Hard (Artificial Analysis run) | Not measured | 43.2% | Only GLM 5.1 measured |
| FrontierCode | 18.8% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| WeirdML | 63.0% | 57.1% | DeepSeek V4 Flash 0731 |
| ALE-Bench | 1306.1 | 887.1 | DeepSeek V4 Flash 0731 |
| LMArena Text: coding | Not measured | 1485 | Only GLM 5.1 measured |
| LMArena Text: software and IT | Not measured | 1484 | Only GLM 5.1 measured |
| LMArena WebDev: React | Not measured | 1505 | Only GLM 5.1 measured |
| LMArena WebDev: HTML | Not measured | 1508 | Only 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
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.1 | Leader |
|---|---|---|---|
| AA Intelligence Index | 34.3 | 26.1 | DeepSeek V4 Flash 0731 |
| Epoch Capabilities Index | 154.8 | 149.8 | DeepSeek V4 Flash 0731 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index30
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.1 | Leader |
|---|---|---|---|
| AA Agentic Index | 41.0 | 23.9 | DeepSeek V4 Flash 0731 |
| Design Arena: agents building web apps | Not measured | 1175 | Only GLM 5.1 measured |
| Design Arena: agents building full-stack apps | Not measured | 1167 | Only GLM 5.1 measured |
| Design Arena: agents building mobile apps | Not measured | 1162 | Only GLM 5.1 measured |
| Design Arena: agents building Android apps | Not measured | 1180 | Only GLM 5.1 measured |
| Design Arena: agents building Godot games | Not measured | 1053 | Only GLM 5.1 measured |
| Design Arena: agents building games | Not measured | 1164 | Only GLM 5.1 measured |
| Design Arena: HTML slides | Not measured | 1170 | Only GLM 5.1 measured |
| Design Arena: PowerPoint slides | Not measured | 1188 | Only GLM 5.1 measured |
| Design Arena: spreadsheets | Not measured | 1315 | Only GLM 5.1 measured |
| Finance Agent (Vals AI) | 49.5% | 44.8% | DeepSeek V4 Flash 0731 |
| Tax Agent Bench (Vals AI) | 28.1% | Not measured | Only 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 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 |
| τ²-Bench Telecom | Not measured | 97.7% | Only GLM 5.1 measured |
| APEX-Agents | Not measured | 40.9% | Only GLM 5.1 measured |
| Vending-Bench 2 | Not measured | $5,634 | Only 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
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.1 | Leader |
|---|---|---|---|
| GPQA Diamond | 89.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-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% | 55.1% | DeepSeek V4 Flash 0731 |
| Chess puzzles | 32.0% | 20.0% | DeepSeek V4 Flash 0731 |
| Mystery game puzzles | 34.0% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| LMArena Text: hard prompts | Not measured | 1473 | Only GLM 5.1 measured |
| LMArena Text: expert | Not measured | 1478 | Only GLM 5.1 measured |
| LMArena Text: hard prompts in English | Not measured | 1482 | Only 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
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.1 | Leader |
|---|---|---|---|
| AIME | Not measured | 91.9% | Only GLM 5.1 measured |
| OTIS Mock AIME | 94.4% | 93.3% | DeepSeek V4 Flash 0731 |
| FrontierMath, tiers 1 to 3 | 57.5% | 36.8% | DeepSeek V4 Flash 0731 |
| FrontierMath, tier 4 | 24.4% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| ProofBench | 56.0% | 22.2% | DeepSeek V4 Flash 0731 |
| LMArena Text: math | Not measured | 1473 | Only GLM 5.1 measured |
| LMArena Text: mathematical work | Not measured | 1470 | Only 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
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.1 | Leader |
|---|---|---|---|
| MMLU Pro | 86.2% | 86.9% | GLM 5.1 |
| LegalBench (Vals AI) | 77.7% | 84.4% | GLM 5.1 |
| CaseLaw (Vals AI) | Not measured | 51.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 Verified | 33.6% | 34.0% | GLM 5.1 |
| LMArena Text: science | Not measured | 1478 | Only GLM 5.1 measured |
| LMArena Text: medicine and healthcare | Not measured | 1474 | Only GLM 5.1 measured |
| LMArena Text: legal and government | Not measured | 1465 | Only GLM 5.1 measured |
| LMArena Text: business and finance | Not measured | 1452 | Only 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
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.1 | Leader |
|---|---|---|---|
| Design Arena: websites | 1238 | 1290 | GLM 5.1 |
| Design Arena: UI components | 1235 | 1292 | GLM 5.1 |
| Design Arena: game dev | 1208 | 1265 | GLM 5.1 |
| Design Arena: data viz | 1180 | 1366 | GLM 5.1 |
| Design Arena: 3D | 1209 | 1336 | GLM 5.1 |
| Design Arena: all code categories | 1230 | 1268 | GLM 5.1 |
| Design Arena: SVG | 1185 | 1218 | GLM 5.1 |
| Design Arena: ASCII art | 1090 | 1142 | GLM 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
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.1 | Leader |
|---|---|---|---|
| Public Benefits Bench (Vals AI) | Not measured | 61.8% | Only GLM 5.1 measured |
| MedScribe (Vals AI) | 80.4% | 72.3% | DeepSeek V4 Flash 0731 |
| IFBench | Not measured | 76.3% | Only GLM 5.1 measured |
| Long context reasoning (AA-LCR) | 79.7% | 73.7% | DeepSeek V4 Flash 0731 |
| DTBench | 90.9% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| LMCA | 41.7% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| ExploitBench | Not measured | 18.1% | Only GLM 5.1 measured |
| LMArena Text | Not measured | 1463 | Only GLM 5.1 measured |
| LMArena Text: instruction following | Not measured | 1453 | Only GLM 5.1 measured |
| LMArena Text: creative writing | Not measured | 1453 | Only GLM 5.1 measured |
| LMArena Text: English | Not measured | 1476 | Only GLM 5.1 measured |
| LMArena Text: non-English | Not measured | 1448 | Only GLM 5.1 measured |
| LMArena Text: Chinese | Not measured | 1515 | Only GLM 5.1 measured |
| LMArena Text: German | Not measured | 1467 | Only GLM 5.1 measured |
| LMArena Text: Japanese | Not measured | 1435 | Only GLM 5.1 measured |
| LMArena Text: Korean | Not measured | 1424 | Only GLM 5.1 measured |
| LMArena Text: French | Not measured | 1470 | Only GLM 5.1 measured |
| LMArena Text: Spanish | Not measured | 1468 | Only GLM 5.1 measured |
| LMArena Text: Russian | Not measured | 1454 | Only GLM 5.1 measured |
| LMArena Text: Polish | Not measured | 1449 | Only GLM 5.1 measured |
| LMArena Text: multi-turn | Not measured | 1473 | Only GLM 5.1 measured |
| LMArena Text: longer queries | Not measured | 1467 | Only GLM 5.1 measured |
| LMArena Text: writing and language | Not measured | 1454 | Only GLM 5.1 measured |
| LMArena Text: entertainment and media | Not measured | 1442 | Only 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
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.1 | Leader |
|---|---|---|---|
| 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 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.1 |
|---|---|---|
| Maker | DeepSeek | Z.ai |
| Weights | Open weights | Open weights |
| Released | July 31, 2026 | April 7, 2026 |
| Context window | 1.05M | 205K |
| Input $/Mtok | $0.14 | $1.40 |
| Output $/Mtok | $0.28 | $4.40 |
| Coding index | 51.8 | 49.2 |
| Independent measurements behind it | 4 | 3 |
| Cost per solved task | $0.01 | $0.60 |
| Source | OpenRouter listing | OpenRouter 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.