Enter opens the highlighted result. Esc closes.

DeepSeek V4 Flash 0731 vs GLM 5.2

GLM 5.2 leads DeepSeek V4 Flash 0731 on coding, 59.7 to 43.4 on the Vibe Coding Index, and DeepSeek V4 Flash 0731 costs 16.0x less per output token ($0.275 vs $4.40 per million). Updated December 6, 2026; 48 benchmarks have a result for both.

DeepSeek V4 Flash 0731DeepSeek
Coding
43.4
Overall
57.9
Output $/M
$0.275
20
GLM 5.2Z.ai
Coding
59.7
Overall
65.2
Output $/M
$4.40
28
vs boards won of 48 shared

DeepSeek V4 Flash 0731 or GLM 5.2: which to pick

Pick GLM 5.2 for coding: it scores 59.7 on the Vibe Coding Index against 43.4 for DeepSeek V4 Flash 0731.

Pick DeepSeek V4 Flash 0731 for output tokens 16.0x cheaper ($0.275 vs $4.40 per million) and a lower cost per solved task ($0.01 against $0.86).

Shared results
48
DeepSeek V4 Flash 0731 only
7
GLM 5.2 only
63
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.

At a glance

Coding index
DeepSeek V4 Flash 0731 43.4 from 3 benchmarks, GLM 5.2 59.7 from 3 benchmarks.
Widest category
Reasoning, 9.7 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.275 against GLM 5.2 $4.40 per million output tokens, 16.0x 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.

Boards won, where both have a result
CategoryDeepSeek V4 Flash 0731BarsGLM 5.2Ties
Coding65
Intelligence10
Agentic work13
Reasoning72
Math22
Knowledge15
Web design08
General23
All shared boards2028
CodingLike-for-likeSix of these boards feed the Vibe Coding Index65
Coding benchmarks for DeepSeek V4 Flash 0731 and GLM 5.2
BenchmarkDeepSeek V4 Flash 0731GLM 5.2Leader
LMArena WebDevNot measured1608Only GLM 5.2 measured
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 measuredOnly DeepSeek V4 Flash 0731 measured
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 measuredOnly 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 measuredOnly DeepSeek V4 Flash 0731 measured
SciCode50.3%51.2%GLM 5.2
Terminal-Bench Hard (Artificial Analysis run)Not measured50.8%Only GLM 5.2 measured
Terminal-Bench 4.0 (Artificial Analysis run)12.1%1.0%DeepSeek V4 Flash 0731
FrontierCode18.8%24.5%GLM 5.2
WeirdML63.0%70.1%GLM 5.2
MirrorCodeNot measured36.7%Only GLM 5.2 measured
ALE-Bench1306.11047.0DeepSeek V4 Flash 0731
LMArena Text: codingNot measured1488Only GLM 5.2 measured
LMArena Text: software and ITNot measured1487Only GLM 5.2 measured
LMArena WebDev: ReactNot measured1621Only GLM 5.2 measured
LMArena WebDev: HTMLNot measured1567Only GLM 5.2 measured
SWE Atlas: Codebase QnANot measured48.1%Only GLM 5.2 measured
SWE Atlas: RefactoringNot measured42.4%Only GLM 5.2 measured
SWE Atlas: Test WritingNot measured41.5%Only GLM 5.2 measured
GameBench 2Not measured49.9Only GLM 5.2 measured
Terminal-Bench 3.0Not measured4.6%Only GLM 5.2 measured
ProgramBenchNot measured0.0%Only GLM 5.2 measured
Neither model has a result on the other 25 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for DeepSeek V4 Flash 0731 and GLM 5.2
BenchmarkDeepSeek V4 Flash 0731GLM 5.2Leader
Epoch Capabilities Index154.3153.0DeepSeek V4 Flash 0731
Neither model has a result on the other 1 board here
Agentic workLike-for-likePublic boards, shown as published, kept out of the index13
Agentic work benchmarks for DeepSeek V4 Flash 0731 and GLM 5.2
BenchmarkDeepSeek V4 Flash 0731GLM 5.2Leader
Design Arena: agents building web appsNot measured1184Only GLM 5.2 measured
Design Arena: agents building full-stack appsNot measured1288Only GLM 5.2 measured
Design Arena: agents building mobile appsNot measured1152Only GLM 5.2 measured
Design Arena: agents building Android appsNot measured1162Only GLM 5.2 measured
Design Arena: agents building Godot gamesNot measured1142Only GLM 5.2 measured
Design Arena: agents building gamesNot measured1156Only GLM 5.2 measured
Design Arena: HTML slidesNot measured1077Only GLM 5.2 measured
Design Arena: PowerPoint slidesNot measured1157Only GLM 5.2 measured
Design Arena: spreadsheetsNot measured1123Only GLM 5.2 measured
SREBench (Vals AI)Not measured0.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 measuredOnly 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 measuredOnly DeepSeek V4 Flash 0731 measured
Terminal-Bench-Science (Vals AI)4.3%Not measuredOnly DeepSeek V4 Flash 0731 measured
τ²-Bench TelecomNot measured99.1%Only GLM 5.2 measured
APEX-AgentsNot measured45.2%Only GLM 5.2 measured
PostTrainBenchNot measured30.4%Only GLM 5.2 measured
Vending-Bench 2Not measured$8,314Only GLM 5.2 measured
MCP AtlasNot measured77.8%Only GLM 5.2 measured
Toolathlon-Verified70.7%59.9%DeepSeek V4 Flash 0731
τ³-BankingNot measured37.1%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
Reasoning benchmarks for DeepSeek V4 Flash 0731 and GLM 5.2
BenchmarkDeepSeek V4 Flash 0731GLM 5.2Leader
GPQA Diamond89.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
HLE-Diamond (Artificial Analysis run)Not measured17.7%Only GLM 5.2 measured
GPQA Diamond (Epoch AI run)91.0%91.9%GLM 5.2
ARC-AGI89.0%77.0%DeepSeek V4 Flash 0731
ARC-AGI-261.4%22.8%DeepSeek V4 Flash 0731
SimpleBench61.1%58.8%DeepSeek V4 Flash 0731
Chess puzzles32.0%22.0%DeepSeek V4 Flash 0731
Mystery game puzzles34.0%19.0%DeepSeek V4 Flash 0731
EBR-benchNot measured9.5%Only GLM 5.2 measured
LMArena Text: hard promptsNot measured1481Only GLM 5.2 measured
LMArena Text: expertNot measured1488Only GLM 5.2 measured
LMArena Text: hard prompts in EnglishNot measured1481Only GLM 5.2 measured
Kagi LLM BenchmarkNot measured62.6%Only GLM 5.2 measured
GoBench1447Not measuredOnly DeepSeek V4 Flash 0731 measured
Neither model has a result on the other 10 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index22
Math benchmarks for DeepSeek V4 Flash 0731 and GLM 5.2
BenchmarkDeepSeek V4 Flash 0731GLM 5.2Leader
OTIS Mock AIME94.4%86.4%DeepSeek V4 Flash 0731
FrontierMath, tiers 1 to 357.5%59.2%GLM 5.2
FrontierMath, tier 424.4%29.3%GLM 5.2
ProofBench56.0%35.0%DeepSeek V4 Flash 0731
LMArena Text: mathNot measured1485Only GLM 5.2 measured
LMArena Text: mathematical workNot measured1490Only GLM 5.2 measured
MathArenaNot measured21.1%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
Knowledge benchmarks for DeepSeek V4 Flash 0731 and GLM 5.2
BenchmarkDeepSeek V4 Flash 0731GLM 5.2Leader
MMLU Pro86.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
AA-OmniscienceNot measured0.6Only GLM 5.2 measured
SimpleQA Verified33.6%34.2%GLM 5.2
LMArena Text: scienceNot measured1489Only GLM 5.2 measured
LMArena Text: medicine and healthcareNot measured1476Only GLM 5.2 measured
LMArena Text: legal and governmentNot measured1490Only GLM 5.2 measured
LMArena Text: business and financeNot measured1450Only GLM 5.2 measured
Neither model has a result on the other 10 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index08
Web design benchmarks for DeepSeek V4 Flash 0731 and GLM 5.2
BenchmarkDeepSeek V4 Flash 0731GLM 5.2Leader
Design Arena: websites12781323GLM 5.2
Design Arena: UI components12171271GLM 5.2
Design Arena: game dev11761234GLM 5.2
Design Arena: data viz11641275GLM 5.2
Design Arena: 3D11671247GLM 5.2
Design Arena: all code categories12711328GLM 5.2
Design Arena: SVG12201245GLM 5.2
Design Arena: ASCII art10751174GLM 5.2
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index23
General benchmarks for DeepSeek V4 Flash 0731 and GLM 5.2
BenchmarkDeepSeek V4 Flash 0731GLM 5.2Leader
MedScribe (Vals AI)80.4%83.5%GLM 5.2
IFBenchNot measured73.3%Only GLM 5.2 measured
Long context reasoning (AA-LCR)79.7%78.3%DeepSeek V4 Flash 0731
GDPval-AA14401383DeepSeek V4 Flash 0731
DTBench90.9%93.6%GLM 5.2
LMCA41.7%45.8%GLM 5.2
Surface Evolver BenchNot measured55.6%Only GLM 5.2 measured
LMArena TextNot measured1470Only GLM 5.2 measured
LMArena Text: instruction followingNot measured1467Only GLM 5.2 measured
LMArena Text: creative writingNot measured1460Only GLM 5.2 measured
LMArena Text: EnglishNot measured1475Only GLM 5.2 measured
LMArena Text: non-EnglishNot measured1458Only GLM 5.2 measured
LMArena Text: ChineseNot measured1523Only GLM 5.2 measured
LMArena Text: GermanNot measured1467Only GLM 5.2 measured
LMArena Text: JapaneseNot measured1452Only GLM 5.2 measured
LMArena Text: KoreanNot measured1430Only GLM 5.2 measured
LMArena Text: FrenchNot measured1477Only GLM 5.2 measured
LMArena Text: SpanishNot measured1480Only GLM 5.2 measured
LMArena Text: RussianNot measured1466Only GLM 5.2 measured
LMArena Text: PolishNot measured1459Only GLM 5.2 measured
LMArena Text: multi-turnNot measured1470Only GLM 5.2 measured
LMArena Text: longer queriesNot measured1479Only GLM 5.2 measured
LMArena Text: writing and languageNot measured1462Only GLM 5.2 measured
LMArena Text: entertainment and mediaNot measured1448Only GLM 5.2 measured
EQ-Bench 4Not measured1208Only GLM 5.2 measured
Neither model has a result on the other 24 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.2
BenchmarkDeepSeek V4 Flash 0731GLM 5.2Leader
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.2$0.0036Fits in one request

DeepSeek V4 Flash 0731 costs less

Repository review

50K input + 3K output tokens

DeepSeek V4 Flash 0731$0.0073Fits in one request
GLM 5.2$0.083Fits in one request

DeepSeek V4 Flash 0731 costs less

Agent loop

200K input + 10K output tokens

DeepSeek V4 Flash 0731$0.029Fits in one request
GLM 5.2$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.2
SpecificationDeepSeek V4 Flash 0731Z.ai GLM 5.2
MakerDeepSeekZ.ai
WeightsOpen weightsOpen weights
ReleasedJuly 31, 2026June 16, 2026
Context window1.05M1.05M
Input $/Mtok$0.13$1.40
Output $/Mtok$0.275$4.40
Coding index43.459.7
Independent measurements behind it33
Cost per solved task$0.01$0.86
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick GLM 5.2 for coding: it scores 59.7 on the Vibe Coding Index against 43.4 for DeepSeek V4 Flash 0731. Pick DeepSeek V4 Flash 0731 for output tokens 16.0x cheaper ($0.275 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.13 per million input tokens and $0.275 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?

48 benchmarks have a result for both models as of December 6, 2026. DeepSeek V4 Flash 0731's coding index rests on 3 independent benchmarks and GLM 5.2'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-2" title="DeepSeek V4 Flash 0731 vs GLM 5.2, 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-2">LLMBenchmark.ai, DeepSeek V4 Flash 0731 vs GLM 5.2</a></p>