Enter opens the highlighted result. Esc closes.

GLM 5.2 vs GPT-5.4 Mini

GLM 5.2 leads GPT-5.4 Mini on coding, 59.7 to 32.1 on the Vibe Coding Index, at about the same output price ($4.40 vs $4.50 per million). Updated December 6, 2026; 72 benchmarks have a result for both.

GLM 5.2Z.ai
Coding
59.7
Overall
65.2
Output $/M
$4.40
63
GPT-5.4 MiniOpenAI
Coding
32.1
Overall
51.7
Output $/M
$4.50
8
vs boards won of 72 shared, 1 tied

GLM 5.2 or GPT-5.4 Mini: which to pick

Pick GLM 5.2 for coding: it scores 59.7 on the Vibe Coding Index against 32.1 for GPT-5.4 Mini, though on 3 benchmarks against 4.

Pick GPT-5.4 Mini for a lower cost per solved task ($0.70 against $0.86) and work measured by LiveCodeBench (Vals AI) or SciCode, where it leads.

Shared results
72
GLM 5.2 only
39
GPT-5.4 Mini only
18
Like-for-like categories
7 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
GLM 5.2 59.7 from 3 benchmarks, GPT-5.4 Mini 32.1 from 4 benchmarks.
Widest category
Agentic work, 15.2 points apart on average over 5 shared benchmarks.
Widest single gap
LMArena WebDev: React: GLM 5.2 1621 against GPT-5.4 Mini 1386, 35.6 points apart on a 0 to 100 scale.
Output price
GLM 5.2 $4.40 against GPT-5.4 Mini $4.50 per million output tokens, 1.0x apart.
Context window
GLM 5.2 takes 1.05M tokens, GPT-5.4 Mini 400K.

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
CategoryGLM 5.2BarsGPT-5.4 MiniTies
Coding1161 tie
Intelligence10
Agentic work50
Reasoning111
Math51
Knowledge80
General220
All shared boards6381 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index116
Coding benchmarks for GLM 5.2 and GPT-5.4 Mini
BenchmarkGLM 5.2GPT-5.4 MiniLeader
LMArena WebDev16081398GLM 5.2
LiveCodeBench (Vals AI)69.5%81.5%GPT-5.4 Mini
SWE-bench Verified (Vals AI)82.8%73.0%GLM 5.2
Terminal-Bench 4 (Vals AI)Not measured2.5%Only GPT-5.4 Mini measured
Code migration (Vals AI)37.9%12.9%GLM 5.2
ProgramBench (Vals AI)0.5%0.0%GLM 5.2
Terminal-Bench 2.1 (Vals AI)67.8%54.7%GLM 5.2
SkillsBench (Vals AI)45.1%Not measuredOnly GLM 5.2 measured
SciCode51.2%52.1%GPT-5.4 Mini
Terminal-Bench Hard (Artificial Analysis run)50.8%52.3%GPT-5.4 Mini
Terminal-Bench 4.0 (Artificial Analysis run)1.0%2.0%GPT-5.4 Mini
FrontierCode24.5%27.0%GPT-5.4 Mini
WeirdML70.1%60.3%GLM 5.2
MirrorCode36.7%Not measuredOnly GLM 5.2 measured
ALE-Bench1047.01188.6GPT-5.4 Mini
LMArena Text: coding14881438GLM 5.2
LMArena Text: software and IT14871436GLM 5.2
LMArena WebDev: React16211386GLM 5.2
LMArena WebDev: HTML15671420GLM 5.2
SWE Atlas: Codebase QnA48.1%Not measuredOnly GLM 5.2 measured
SWE Atlas: Refactoring42.4%Not measuredOnly GLM 5.2 measured
SWE Atlas: Test Writing41.5%Not measuredOnly GLM 5.2 measured
GameBench 249.946.5GLM 5.2
Terminal-Bench 3.04.6%Not measuredOnly GLM 5.2 measured
Terminal-Bench 4.0Not measured1.8%Only GPT-5.4 Mini measured
ProgramBench0.0%0.0%Tie
Neither model has a result on the other 26 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for GLM 5.2 and GPT-5.4 Mini
BenchmarkGLM 5.2GPT-5.4 MiniLeader
Epoch Capabilities Index153.0149.4GLM 5.2
Neither model has a result on the other 1 board here
Agentic workLike-for-likePublic boards, shown as published, kept out of the index50
Agentic work benchmarks for GLM 5.2 and GPT-5.4 Mini
BenchmarkGLM 5.2GPT-5.4 MiniLeader
Design Arena: agents building web apps1184Not measuredOnly GLM 5.2 measured
Design Arena: agents building full-stack apps1288Not measuredOnly GLM 5.2 measured
Design Arena: agents building mobile apps1152Not measuredOnly GLM 5.2 measured
Design Arena: agents building Android apps1162Not measuredOnly GLM 5.2 measured
Design Arena: agents building Godot games1142Not measuredOnly GLM 5.2 measured
Design Arena: agents building games1156Not measuredOnly GLM 5.2 measured
Design Arena: HTML slides1077Not measuredOnly GLM 5.2 measured
Design Arena: PowerPoint slides1157Not measuredOnly GLM 5.2 measured
Design Arena: spreadsheets1123Not measuredOnly GLM 5.2 measured
SREBench (Vals AI)0.0%Not measuredOnly GLM 5.2 measured
Finance Agent (Vals AI)49.7%45.4%GLM 5.2
Tax Agent Bench (Vals AI)Not measured8.8%Only GPT-5.4 Mini measured
Legal Research Bench (Vals AI)31.3%12.5%GLM 5.2
Excel Modeling Benchmark (Vals AI)61.5%45.4%GLM 5.2
τ²-Bench Telecom99.1%83.3%GLM 5.2
APEX-Agents45.2%Not measuredOnly GLM 5.2 measured
DeepResearch BenchNot measured36.3%Only GPT-5.4 Mini measured
PostTrainBench30.4%Not measuredOnly GLM 5.2 measured
Vending-Bench 2$8,314Not measuredOnly GLM 5.2 measured
MCP Atlas77.8%56.7%GLM 5.2
Toolathlon-Verified59.9%Not measuredOnly GLM 5.2 measured
τ³-Banking37.1%Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 22 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index111
Reasoning benchmarks for GLM 5.2 and GPT-5.4 Mini
BenchmarkGLM 5.2GPT-5.4 MiniLeader
GPQA Diamond85.6%83.1%GLM 5.2
MMMU Pro (Vals AI)Not measured79.3%Only GPT-5.4 Mini measured
GPQA Diamond (Artificial Analysis run)89.5%87.5%GLM 5.2
Humanity's Last Exam (Artificial Analysis run)41.1%28.1%GLM 5.2
HLE-Diamond (Artificial Analysis run)17.7%Not measuredOnly GLM 5.2 measured
GPQA Diamond (Epoch AI run)91.9%86.9%GLM 5.2
ARC-AGI77.0%63.7%GLM 5.2
ARC-AGI-222.8%18.9%GLM 5.2
SimpleBench58.8%Not measuredOnly GLM 5.2 measured
Chess puzzles22.0%23.0%GPT-5.4 Mini
Mystery game puzzles19.0%11.0%GLM 5.2
EBR-bench9.5%Not measuredOnly GLM 5.2 measured
LMArena Text: hard prompts14811425GLM 5.2
LMArena Text: expert14881436GLM 5.2
LMArena Text: hard prompts in English14811420GLM 5.2
LMArena Vision: diagramsNot measured1265Only GPT-5.4 Mini measured
LMArena Vision: homeworkNot measured1285Only GPT-5.4 Mini measured
Kagi LLM Benchmark62.6%37.9%GLM 5.2
Neither model has a result on the other 8 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index51
Math benchmarks for GLM 5.2 and GPT-5.4 Mini
BenchmarkGLM 5.2GPT-5.4 MiniLeader
AIMENot measured95.6%Only GPT-5.4 Mini measured
OTIS Mock AIME86.4%88.9%GPT-5.4 Mini
FrontierMath, tiers 1 to 359.2%51.2%GLM 5.2
FrontierMath, tier 429.3%9.8%GLM 5.2
ProofBench35.0%21.0%GLM 5.2
LMArena Text: math14851418GLM 5.2
LMArena Text: mathematical work14901428GLM 5.2
MathArena21.1%Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index80
Knowledge benchmarks for GLM 5.2 and GPT-5.4 Mini
BenchmarkGLM 5.2GPT-5.4 MiniLeader
MMLU Pro86.7%84.5%GLM 5.2
LegalBench (Vals AI)84.1%Not measuredOnly GLM 5.2 measured
CaseLaw (Vals AI)Not measured51.7%Only GPT-5.4 Mini measured
CorpFin (Vals AI)66.1%60.9%GLM 5.2
TaxEval (Vals AI)73.3%71.2%GLM 5.2
MortgageTax (Vals AI)Not measured63.5%Only GPT-5.4 Mini measured
MedCode (Vals AI)40.8%Not measuredOnly GLM 5.2 measured
AA-Omniscience0.6Not measuredOnly GLM 5.2 measured
SimpleQA Verified34.2%29.4%GLM 5.2
LMArena Text: science14891417GLM 5.2
LMArena Text: medicine and healthcare14761394GLM 5.2
LMArena Text: legal and government14901415GLM 5.2
LMArena Text: business and finance14501418GLM 5.2
Neither model has a result on the other 8 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for GLM 5.2 and GPT-5.4 Mini
BenchmarkGLM 5.2GPT-5.4 MiniLeader
Design Arena: websites1323Not measuredOnly GLM 5.2 measured
Design Arena: UI components1271Not measuredOnly GLM 5.2 measured
Design Arena: game dev1234Not measuredOnly GLM 5.2 measured
Design Arena: data viz1275Not measuredOnly GLM 5.2 measured
Design Arena: 3D1247Not measuredOnly GLM 5.2 measured
Design Arena: all code categories1328Not measuredOnly GLM 5.2 measured
Design Arena: SVG1245Not measuredOnly GLM 5.2 measured
Design Arena: ASCII art1174Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index220
General benchmarks for GLM 5.2 and GPT-5.4 Mini
BenchmarkGLM 5.2GPT-5.4 MiniLeader
MedScribe (Vals AI)83.5%Not measuredOnly GLM 5.2 measured
Vals Multimodal IndexNot measured54.2%Only GPT-5.4 Mini measured
IFBench73.3%73.3%GLM 5.2
Long context reasoning (AA-LCR)78.3%77.0%GLM 5.2
GDPval-AA13831024GLM 5.2
DTBench93.6%80.0%GLM 5.2
LMCA45.8%40.8%GLM 5.2
Surface Evolver Bench55.6%Not measuredOnly GLM 5.2 measured
LMArena Text14701412GLM 5.2
LMArena Text: instruction following14671405GLM 5.2
LMArena Text: creative writing14601370GLM 5.2
LMArena VisionNot measured1245Only GPT-5.4 Mini measured
LMArena Text: English14751412GLM 5.2
LMArena Text: non-English14581405GLM 5.2
LMArena Text: Chinese15231446GLM 5.2
LMArena Text: German14671409GLM 5.2
LMArena Text: Japanese14521366GLM 5.2
LMArena Text: Korean14301368GLM 5.2
LMArena Text: French14771442GLM 5.2
LMArena Text: Spanish14801406GLM 5.2
LMArena Text: Russian14661418GLM 5.2
LMArena Text: Polish14591417GLM 5.2
LMArena Text: multi-turn14701429GLM 5.2
LMArena Text: longer queries14791408GLM 5.2
LMArena Text: writing and language14621392GLM 5.2
LMArena Text: entertainment and media14481372GLM 5.2
LMArena Vision: EnglishNot measured1244Only GPT-5.4 Mini measured
LMArena Vision: ChineseNot measured1287Only GPT-5.4 Mini measured
LMArena Vision: reading textNot measured1253Only GPT-5.4 Mini measured
LMArena Vision: humorNot measured1239Only GPT-5.4 Mini measured
LMArena Vision: recognizing thingsNot measured1224Only GPT-5.4 Mini measured
LMArena Vision: creative writingNot measured1221Only GPT-5.4 Mini measured
EQ-Bench 41208Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 16 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GLM 5.2 and GPT-5.4 Mini
BenchmarkGLM 5.2GPT-5.4 MiniLeader
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

GLM 5.2$0.0036Fits in one request
GPT-5.4 Mini$0.0030Fits in one request

GPT-5.4 Mini costs less

Repository review

50K input + 3K output tokens

GLM 5.2$0.083Fits in one request
GPT-5.4 Mini$0.051Fits in one request

GPT-5.4 Mini costs less

Agent loop

200K input + 10K output tokens

GLM 5.2$0.324Fits in one request
GPT-5.4 Mini$0.195Fits in one request

GPT-5.4 Mini 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 GLM 5.2 and GPT-5.4 Mini
SpecificationZ.ai GLM 5.2OpenAI GPT-5.4 Mini
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedJune 16, 2026March 17, 2026
Context window1.05M400K
Input $/Mtok$1.40$0.75
Output $/Mtok$4.40$4.50
Coding index59.732.1
Independent measurements behind it34
Cost per solved task$0.86$0.70
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.2 better than GPT-5.4 Mini for coding?

Pick GLM 5.2 for coding: it scores 59.7 on the Vibe Coding Index against 32.1 for GPT-5.4 Mini, though on 3 benchmarks against 4. Pick GPT-5.4 Mini for a lower cost per solved task ($0.70 against $0.86) and work measured by LiveCodeBench (Vals AI) or SciCode, where it leads.

Which is cheaper, GLM 5.2 or GPT-5.4 Mini?

GLM 5.2 costs $1.40 per million input tokens and $4.40 per million output tokens; GPT-5.4 Mini costs $0.75 and $4.50. Per solved SWE-bench Verified task, GLM 5.2 costs $0.86 and GPT-5.4 Mini $0.70.

Which has the bigger context window, GLM 5.2 or GPT-5.4 Mini?

GLM 5.2, with 1.05M tokens against 400K.

How many benchmarks is the GLM 5.2 vs GPT-5.4 Mini comparison based on?

72 benchmarks have a result for both models as of December 6, 2026. GLM 5.2's coding index rests on 3 independent benchmarks and GPT-5.4 Mini's on 4. 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/glm-5-2-vs-gpt-5-4-mini" title="GLM 5.2 vs GPT-5.4 Mini, 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/glm-5-2-vs-gpt-5-4-mini">LLMBenchmark.ai, GLM 5.2 vs GPT-5.4 Mini</a></p>