DeepSeek V4 Flash 0731 vs GLM 5.2
GLM 5.2 leads DeepSeek V4 Flash 0731 on coding, 61.1 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 October 21, 2026; 49 benchmarks have a result for both.
DeepSeek V4 Flash 0731 or GLM 5.2: which to pick
Pick GLM 5.2 for coding: it scores 61.1 on the Vibe Coding Index against 51.8 for DeepSeek V4 Flash 0731.
Pick DeepSeek V4 Flash 0731 for output tokens 15.7x cheaper ($0.28 vs $4.40 per million) and a lower cost per solved task ($0.01 against $0.86).
- Shared results
- 49
- DeepSeek V4 Flash 0731 only
- 6
- GLM 5.2 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
GLM 5.2
GLM 5.2 scores 61.1 against 51.8.
4 benchmarks behind each score
Intelligence
AA Intelligence Index
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 leads, 34.3 against 33.7.
Same board, both measured
Agentic work
AA Agentic Index
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 leads, 41.0 against 38.4.
Same board, both measured
Reasoning
GPQA Diamond
DeepSeek V4 Flash 0731
DeepSeek V4 Flash 0731 leads, 89.9% against 85.6%.
Same board, both measured
Knowledge
MMLU Pro
GLM 5.2
GLM 5.2 leads, 86.7% against 86.2%.
Same board, both measured
Web design
Design Arena: websites
GLM 5.2
GLM 5.2 leads, 1285 against 1238.
Same board, both measured
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.2 $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.2 $0.86.
Published attempt cost and pass rate
At a glance
- Coding index
- DeepSeek V4 Flash 0731 51.8 from 4 benchmarks, GLM 5.2 61.1 from 4 benchmarks.
- Widest category
- Reasoning, 9.6 points apart on average over 9 shared benchmarks.
- Widest single gap
- ARC-AGI-2: DeepSeek V4 Flash 0731 61.4% against GLM 5.2 22.8%, 38.6 points apart on a 0 to 100 scale.
- Output price
- DeepSeek V4 Flash 0731 $0.28 against GLM 5.2 $4.40 per million output tokens, 15.7x apart.
- Context window
- Both take 1.05M tokens.
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.2 | Ties |
|---|---|---|---|---|
| Coding | 7 | 5 | ||
| Intelligence | 2 | 0 | ||
| Agentic work | 1 | 3 | ||
| Reasoning | 7 | 2 | ||
| Math | 2 | 2 | ||
| Knowledge | 1 | 5 | ||
| Web design | 0 | 8 | ||
| General | 1 | 3 | ||
| All shared boards | 21 | 28 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index75
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.2 | Leader |
|---|---|---|---|
| LMArena WebDev | Not measured | 1604 | Only GLM 5.2 measured |
| AA Coding Index | 69.1 | 68.8 | DeepSeek V4 Flash 0731 |
| LiveCodeBench (Vals AI) | 87.3% | 69.5% | DeepSeek V4 Flash 0731 |
| SWE-bench Verified (Vals AI) | 88.8% | 82.8% | 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% | 64.0% | DeepSeek V4 Flash 0731 |
| Code migration (Vals AI) | 38.6% | 37.9% | DeepSeek V4 Flash 0731 |
| ProgramBench (Vals AI) | 0.0% | 0.5% | GLM 5.2 |
| IOI (Vals AI) | 32.7% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Terminal-Bench 2.1 (Vals AI) | 67.0% | 67.8% | GLM 5.2 |
| SkillsBench (Vals AI) | 50.7% | 45.1% | DeepSeek V4 Flash 0731 |
| CyberBench (Vals AI) | 72.1% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| SciCode | 50.3% | 51.2% | GLM 5.2 |
| Terminal-Bench Hard (Artificial Analysis run) | Not measured | 50.8% | Only GLM 5.2 measured |
| FrontierCode | 18.8% | 24.5% | GLM 5.2 |
| WeirdML | 63.0% | 70.1% | GLM 5.2 |
| ALE-Bench | 1306.1 | 1047.0 | DeepSeek V4 Flash 0731 |
| LMArena Text: coding | Not measured | 1487 | Only GLM 5.2 measured |
| LMArena Text: software and IT | Not measured | 1486 | Only GLM 5.2 measured |
| LMArena WebDev: React | Not measured | 1617 | Only GLM 5.2 measured |
| LMArena WebDev: HTML | Not measured | 1565 | Only GLM 5.2 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.2 | Leader |
|---|---|---|---|
| AA Intelligence Index | 34.3 | 33.7 | DeepSeek V4 Flash 0731 |
| Epoch Capabilities Index | 154.8 | 151.9 | DeepSeek V4 Flash 0731 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index13
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.2 | Leader |
|---|---|---|---|
| AA Agentic Index | 41.0 | 38.4 | DeepSeek V4 Flash 0731 |
| Design Arena: agents building web apps | Not measured | 1222 | Only GLM 5.2 measured |
| Design Arena: agents building full-stack apps | Not measured | 1241 | Only GLM 5.2 measured |
| Design Arena: agents building mobile apps | Not measured | 1160 | Only GLM 5.2 measured |
| Design Arena: agents building Android apps | Not measured | 1178 | Only GLM 5.2 measured |
| Design Arena: agents building Godot games | Not measured | 1142 | Only GLM 5.2 measured |
| Design Arena: agents building games | Not measured | 1206 | Only GLM 5.2 measured |
| Design Arena: HTML slides | Not measured | 1175 | Only GLM 5.2 measured |
| Design Arena: PowerPoint slides | Not measured | 1195 | Only GLM 5.2 measured |
| SREBench (Vals AI) | Not measured | 0.0% | Only GLM 5.2 measured |
| Finance Agent (Vals AI) | 49.5% | 49.7% | GLM 5.2 |
| Tax Agent Bench (Vals AI) | 28.1% | Not measured | Only DeepSeek V4 Flash 0731 measured |
| Legal Research Bench (Vals AI) | 30.3% | 31.3% | GLM 5.2 |
| Excel Modeling Benchmark (Vals AI) | 57.0% | 61.5% | GLM 5.2 |
| 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 | 99.1% | Only GLM 5.2 measured |
| APEX-Agents | Not measured | 45.2% | Only GLM 5.2 measured |
| PostTrainBench | Not measured | 31.7% | Only GLM 5.2 measured |
| Vending-Bench 2 | Not measured | $8,314 | Only GLM 5.2 measured |
| Neither model has a result on the other 21 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index72
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.2 | Leader |
|---|---|---|---|
| GPQA Diamond | 89.9% | 85.6% | DeepSeek V4 Flash 0731 |
| GPQA Diamond (Artificial Analysis run) | 90.8% | 89.5% | DeepSeek V4 Flash 0731 |
| Humanity's Last Exam (Artificial Analysis run) | 38.6% | 41.1% | GLM 5.2 |
| GPQA Diamond (Epoch AI run) | 91.0% | 91.9% | GLM 5.2 |
| ARC-AGI | 89.0% | 77.0% | DeepSeek V4 Flash 0731 |
| ARC-AGI-2 | 61.4% | 22.8% | DeepSeek V4 Flash 0731 |
| SimpleBench | 61.1% | 58.8% | DeepSeek V4 Flash 0731 |
| Chess puzzles | 32.0% | 22.0% | DeepSeek V4 Flash 0731 |
| Mystery game puzzles | 34.0% | 19.0% | DeepSeek V4 Flash 0731 |
| EBR-bench | Not measured | 9.5% | Only GLM 5.2 measured |
| LMArena Text: hard prompts | Not measured | 1481 | Only GLM 5.2 measured |
| LMArena Text: expert | Not measured | 1487 | Only GLM 5.2 measured |
| LMArena Text: hard prompts in English | Not measured | 1481 | Only GLM 5.2 measured |
| Kagi LLM Benchmark | Not measured | 62.6% | Only GLM 5.2 measured |
| Neither model has a result on the other 8 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index22
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.2 | Leader |
|---|---|---|---|
| OTIS Mock AIME | 94.4% | 86.4% | DeepSeek V4 Flash 0731 |
| FrontierMath, tiers 1 to 3 | 57.5% | 59.2% | GLM 5.2 |
| FrontierMath, tier 4 | 24.4% | 29.3% | GLM 5.2 |
| ProofBench | 56.0% | 35.0% | DeepSeek V4 Flash 0731 |
| LMArena Text: math | Not measured | 1483 | Only GLM 5.2 measured |
| LMArena Text: mathematical work | Not measured | 1489 | Only GLM 5.2 measured |
| Neither model has a result on the other 7 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index15
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.2 | Leader |
|---|---|---|---|
| MMLU Pro | 86.2% | 86.7% | GLM 5.2 |
| LegalBench (Vals AI) | 77.7% | 84.1% | GLM 5.2 |
| CorpFin (Vals AI) | 61.9% | 66.1% | GLM 5.2 |
| TaxEval (Vals AI) | 70.7% | 73.3% | GLM 5.2 |
| MedCode (Vals AI) | 41.4% | 40.8% | DeepSeek V4 Flash 0731 |
| SimpleQA Verified | 33.6% | 34.2% | GLM 5.2 |
| LMArena Text: science | Not measured | 1489 | Only GLM 5.2 measured |
| LMArena Text: medicine and healthcare | Not measured | 1475 | Only GLM 5.2 measured |
| LMArena Text: legal and government | Not measured | 1486 | Only GLM 5.2 measured |
| LMArena Text: business and finance | Not measured | 1451 | Only GLM 5.2 measured |
| Neither model has a result on the other 8 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index08
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.2 | Leader |
|---|---|---|---|
| Design Arena: websites | 1238 | 1285 | GLM 5.2 |
| Design Arena: UI components | 1235 | 1296 | GLM 5.2 |
| Design Arena: game dev | 1208 | 1268 | GLM 5.2 |
| Design Arena: data viz | 1180 | 1285 | GLM 5.2 |
| Design Arena: 3D | 1209 | 1288 | GLM 5.2 |
| Design Arena: all code categories | 1230 | 1288 | GLM 5.2 |
| Design Arena: SVG | 1185 | 1214 | GLM 5.2 |
| Design Arena: ASCII art | 1090 | 1190 | GLM 5.2 |
| Neither model has a result on the other 1 board here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index13
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.2 | Leader |
|---|---|---|---|
| MedScribe (Vals AI) | 80.4% | 83.5% | GLM 5.2 |
| IFBench | Not measured | 73.3% | Only GLM 5.2 measured |
| Long context reasoning (AA-LCR) | 79.7% | 78.3% | DeepSeek V4 Flash 0731 |
| DTBench | 90.9% | 93.6% | GLM 5.2 |
| LMCA | 41.7% | 45.8% | GLM 5.2 |
| Surface Evolver Bench | Not measured | 55.6% | Only GLM 5.2 measured |
| LMArena Text | Not measured | 1470 | Only GLM 5.2 measured |
| LMArena Text: instruction following | Not measured | 1466 | Only GLM 5.2 measured |
| LMArena Text: creative writing | Not measured | 1463 | Only GLM 5.2 measured |
| LMArena Text: English | Not measured | 1475 | Only GLM 5.2 measured |
| LMArena Text: non-English | Not measured | 1459 | Only GLM 5.2 measured |
| LMArena Text: Chinese | Not measured | 1522 | Only GLM 5.2 measured |
| LMArena Text: German | Not measured | 1470 | Only GLM 5.2 measured |
| LMArena Text: Japanese | Not measured | 1450 | Only GLM 5.2 measured |
| LMArena Text: Korean | Not measured | 1440 | Only GLM 5.2 measured |
| LMArena Text: French | Not measured | 1479 | Only GLM 5.2 measured |
| LMArena Text: Spanish | Not measured | 1478 | Only GLM 5.2 measured |
| LMArena Text: Russian | Not measured | 1468 | Only GLM 5.2 measured |
| LMArena Text: Polish | Not measured | 1456 | Only GLM 5.2 measured |
| LMArena Text: multi-turn | Not measured | 1469 | Only GLM 5.2 measured |
| LMArena Text: longer queries | Not measured | 1480 | Only GLM 5.2 measured |
| LMArena Text: writing and language | Not measured | 1463 | Only GLM 5.2 measured |
| LMArena Text: entertainment and media | Not measured | 1450 | Only GLM 5.2 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
| Benchmark | DeepSeek V4 Flash 0731 | GLM 5.2 | 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.2 |
|---|---|---|
| Maker | DeepSeek | Z.ai |
| Weights | Open weights | Open weights |
| Released | July 31, 2026 | June 16, 2026 |
| Context window | 1.05M | 1.05M |
| Input $/Mtok | $0.14 | $1.40 |
| Output $/Mtok | $0.28 | $4.40 |
| Coding index | 51.8 | 61.1 |
| Independent measurements behind it | 4 | 4 |
| Cost per solved task | $0.01 | $0.86 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is DeepSeek V4 Flash 0731 better than GLM 5.2 for coding?
Pick GLM 5.2 for coding: it scores 61.1 on the Vibe Coding Index against 51.8 for DeepSeek V4 Flash 0731. Pick DeepSeek V4 Flash 0731 for output tokens 15.7x cheaper ($0.28 vs $4.40 per million) and a lower cost per solved task ($0.01 against $0.86).
Which is cheaper, DeepSeek V4 Flash 0731 or GLM 5.2?
DeepSeek V4 Flash 0731 costs $0.14 per million input tokens and $0.28 per million output tokens; GLM 5.2 costs $1.40 and $4.40. Per solved SWE-bench Verified task, DeepSeek V4 Flash 0731 costs $0.01 and GLM 5.2 $0.86.
Which has the bigger context window, DeepSeek V4 Flash 0731 or GLM 5.2?
Neither: both take 1.05M tokens.
How many benchmarks is the DeepSeek V4 Flash 0731 vs GLM 5.2 comparison based on?
49 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.2's on 4. Where only one model has a result, the page says so instead of naming a winner.