Enter opens the highlighted result. Esc closes.

GLM 5 vs GPT-5.4 Mini

GLM 5 leads GPT-5.4 Mini on coding, 41.7 to 35.8 on the Vibe Coding Index, and GLM 5 costs 1.4x less per output token ($3.20 vs $4.50 per million). Updated October 22, 2026; 55 benchmarks have a result for both.

GLM 5Z.ai
Coding
41.7
Overall
54.3
Output $/M
$3.20
41
GPT-5.4 MiniOpenAI
Coding
35.8
Overall
44.0
Output $/M
$4.50
14
vs boards won of 55 shared

GLM 5 or GPT-5.4 Mini: which to pick

Pick GLM 5 for coding: it scores 41.7 on the Vibe Coding Index against 35.8 for GPT-5.4 Mini, though on 3 benchmarks against 5.

Pick GPT-5.4 Mini for a larger context window (400K against 205K tokens) and work measured by SWE-bench Verified (Vals AI) or Vibe Code Bench (Vals AI), where it leads.

Shared results
55
GLM 5 only
21
GPT-5.4 Mini only
34
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 41.7 from 3 benchmarks, GPT-5.4 Mini 35.8 from 5 benchmarks.
Widest category
Agentic work, 14.9 points apart on average over 1 shared benchmark.
Widest single gap
Kagi LLM Benchmark: GLM 5 75.0% against GPT-5.4 Mini 37.9%, 37.1 points apart on a 0 to 100 scale.
Output price
GLM 5 $3.20 against GPT-5.4 Mini $4.50 per million output tokens, 1.4x apart.
Context window
GLM 5 takes 205K 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 5BarsGPT-5.4 MiniTies
Coding65
Intelligence11
Agentic work10
Reasoning73
Math22
Knowledge71
General172
All shared boards4114
CodingLike-for-likeSix of these boards feed the Vibe Coding Index65
Coding benchmarks for GLM 5 and GPT-5.4 Mini
BenchmarkGLM 5GPT-5.4 MiniLeader
SWE-bench Verified72.8%Not measuredOnly GLM 5 measured
SWE-bench Multilingual69.7%Not measuredOnly GLM 5 measured
LMArena WebDev14351397GLM 5
AA Coding IndexNot measured56.1Only GPT-5.4 Mini measured
LiveCodeBench (Vals AI)81.9%81.5%GLM 5
SWE-bench Verified (Vals AI)71.4%73.0%GPT-5.4 Mini
Terminal-Bench 4 (Vals AI)Not measured2.5%Only GPT-5.4 Mini measured
Vibe Code Bench (Vals AI)23.4%48.0%GPT-5.4 Mini
Code migration (Vals AI)Not measured12.9%Only GPT-5.4 Mini measured
ProgramBench (Vals AI)Not measured0.0%Only GPT-5.4 Mini measured
Terminal-Bench 2.1 (Vals AI)Not measured54.7%Only GPT-5.4 Mini measured
SciCodeNot measured52.1%Only GPT-5.4 Mini measured
Terminal-Bench Hard (Artificial Analysis run)43.2%52.3%GPT-5.4 Mini
Terminal-Bench52.4%Not measuredOnly GLM 5 measured
FrontierCodeNot measured27.0%Only GPT-5.4 Mini measured
WeirdML48.2%60.3%GPT-5.4 Mini
ALE-Bench765.61188.6GPT-5.4 Mini
LMArena Text: coding14611438GLM 5
LMArena Text: software and IT14601436GLM 5
LMArena WebDev: React14241386GLM 5
LMArena WebDev: HTML14501419GLM 5
Neither model has a result on the other 18 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
Intelligence benchmarks for GLM 5 and GPT-5.4 Mini
BenchmarkGLM 5GPT-5.4 MiniLeader
AA Intelligence Index27.924.1GLM 5
Epoch Capabilities Index145.8148.7GPT-5.4 Mini
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GLM 5 and GPT-5.4 Mini
BenchmarkGLM 5GPT-5.4 MiniLeader
AA Agentic IndexNot measured17.9Only GPT-5.4 Mini measured
Design Arena: agents building full-stack apps1123Not measuredOnly GLM 5 measured
Design Arena: agents building mobile apps1136Not measuredOnly GLM 5 measured
Design Arena: agents building Android apps1147Not measuredOnly GLM 5 measured
Design Arena: agents building Godot games1144Not measuredOnly GLM 5 measured
Design Arena: HTML slides1098Not measuredOnly GLM 5 measured
Finance Agent (Vals AI)Not measured45.4%Only GPT-5.4 Mini measured
Tax Agent Bench (Vals AI)Not measured8.8%Only GPT-5.4 Mini measured
Legal Research Bench (Vals AI)Not measured12.5%Only GPT-5.4 Mini measured
Excel Modeling Benchmark (Vals AI)Not measured45.4%Only GPT-5.4 Mini measured
τ²-Bench Telecom98.2%83.3%GLM 5
DeepResearch BenchNot measured36.3%Only GPT-5.4 Mini measured
Vending-Bench 2$4,432Not measuredOnly GLM 5 measured
Neither model has a result on the other 28 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index73
Reasoning benchmarks for GLM 5 and GPT-5.4 Mini
BenchmarkGLM 5GPT-5.4 MiniLeader
GPQA Diamond83.3%83.1%GLM 5
MMMU Pro (Vals AI)Not measured79.3%Only GPT-5.4 Mini measured
GPQA Diamond (Artificial Analysis run)82.0%87.5%GPT-5.4 Mini
Humanity's Last Exam (Artificial Analysis run)29.3%28.1%GLM 5
GPQA Diamond (Epoch AI run)87.8%86.9%GLM 5
ARC-AGI44.7%63.7%GPT-5.4 Mini
ARC-AGI-24.9%18.9%GPT-5.4 Mini
SimpleBench53.2%Not measuredOnly GLM 5 measured
Chess puzzlesNot measured23.0%Only GPT-5.4 Mini measured
Mystery game puzzlesNot measured11.0%Only GPT-5.4 Mini measured
LMArena Text: hard prompts14521424GLM 5
LMArena Text: expert14541435GLM 5
LMArena Text: hard prompts in English14601420GLM 5
LMArena Vision: diagramsNot measured1266Only GPT-5.4 Mini measured
LMArena Vision: homeworkNot measured1285Only GPT-5.4 Mini measured
Kagi LLM Benchmark75.0%37.9%GLM 5
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index22
Math benchmarks for GLM 5 and GPT-5.4 Mini
BenchmarkGLM 5GPT-5.4 MiniLeader
AIME91.7%95.6%GPT-5.4 Mini
OTIS Mock AIME80.0%88.9%GPT-5.4 Mini
FrontierMath, tiers 1 to 3Not measured51.2%Only GPT-5.4 Mini measured
FrontierMath, tier 4Not measured9.8%Only GPT-5.4 Mini measured
ProofBenchNot measured21.0%Only GPT-5.4 Mini measured
LMArena Text: math14401418GLM 5
LMArena Text: mathematical work14511429GLM 5
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index71
Knowledge benchmarks for GLM 5 and GPT-5.4 Mini
BenchmarkGLM 5GPT-5.4 MiniLeader
MMLU Pro86.0%84.5%GLM 5
LegalBench (Vals AI)84.1%Not measuredOnly GLM 5 measured
CaseLaw (Vals AI)52.5%51.7%GLM 5
CorpFin (Vals AI)62.9%60.9%GLM 5
TaxEval (Vals AI)70.0%71.2%GPT-5.4 Mini
MortgageTax (Vals AI)Not measured63.5%Only GPT-5.4 Mini measured
MedQA (Vals AI)94.3%Not measuredOnly GLM 5 measured
SimpleQA VerifiedNot measured29.4%Only GPT-5.4 Mini measured
LMArena Text: science14601417GLM 5
LMArena Text: medicine and healthcare14551395GLM 5
LMArena Text: legal and government14531414GLM 5
LMArena Text: business and finance14301418GLM 5
Neither model has a result on the other 6 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for GLM 5 and GPT-5.4 Mini
BenchmarkGLM 5GPT-5.4 MiniLeader
Design Arena: websites1247Not measuredOnly GLM 5 measured
Design Arena: UI components1227Not measuredOnly GLM 5 measured
Design Arena: game dev1234Not measuredOnly GLM 5 measured
Design Arena: data viz1228Not measuredOnly GLM 5 measured
Design Arena: 3D1228Not measuredOnly GLM 5 measured
Design Arena: all code categories1246Not measuredOnly GLM 5 measured
Design Arena: SVG1168Not measuredOnly GLM 5 measured
Design Arena: ASCII art1147Not measuredOnly GLM 5 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index172
General benchmarks for GLM 5 and GPT-5.4 Mini
BenchmarkGLM 5GPT-5.4 MiniLeader
SAGE (Vals AI)Not measured50.8%Only GPT-5.4 Mini measured
Vals Multimodal IndexNot measured54.2%Only GPT-5.4 Mini measured
IFBench72.3%73.3%GPT-5.4 Mini
Long context reasoning (AA-LCR)75.7%77.0%GPT-5.4 Mini
DTBenchNot measured80.0%Only GPT-5.4 Mini measured
LMCANot measured40.8%Only GPT-5.4 Mini measured
CL-bench18.7%Not measuredOnly GLM 5 measured
LMArena Text14461412GLM 5
LMArena Text: instruction following14281405GLM 5
LMArena Text: creative writing14381370GLM 5
LMArena VisionNot measured1245Only GPT-5.4 Mini measured
LMArena Text: English14581412GLM 5
LMArena Text: non-English14301405GLM 5
LMArena Text: Chinese15111446GLM 5
LMArena Text: German14471408GLM 5
LMArena Text: Japanese14161375GLM 5
LMArena Text: Korean14231370GLM 5
LMArena Text: French14561441GLM 5
LMArena Text: Spanish14541405GLM 5
LMArena Text: Russian14361417GLM 5
LMArena Text: Polish14341415GLM 5
LMArena Text: multi-turn14561429GLM 5
LMArena Text: longer queries14461408GLM 5
LMArena Text: writing and language14371393GLM 5
LMArena Text: entertainment and media14261373GLM 5
LMArena Vision: EnglishNot measured1244Only GPT-5.4 Mini measured
LMArena Vision: ChineseNot measured1286Only GPT-5.4 Mini measured
LMArena Vision: reading textNot measured1253Only GPT-5.4 Mini measured
LMArena Vision: humorNot measured1235Only GPT-5.4 Mini measured
LMArena Vision: recognizing thingsNot measured1218Only GPT-5.4 Mini measured
LMArena Vision: creative writingNot measured1222Only GPT-5.4 Mini measured
Neither model has a result on the other 15 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GLM 5 and GPT-5.4 Mini
BenchmarkGLM 5GPT-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$0.0026Fits in one request
GPT-5.4 Mini$0.0030Fits in one request

GLM 5 costs less

Repository review

50K input + 3K output tokens

GLM 5$0.060Fits 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$0.232Exceeds the context window
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 and GPT-5.4 Mini
SpecificationZ.ai GLM 5OpenAI GPT-5.4 Mini
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedFebruary 11, 2026March 17, 2026
Context window205K400K
Input $/Mtok$1.00$0.75
Output $/Mtok$3.20$4.50
Coding index41.735.8
Independent measurements behind it35
Cost per solved task$0.63$0.70
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick GLM 5 for coding: it scores 41.7 on the Vibe Coding Index against 35.8 for GPT-5.4 Mini, though on 3 benchmarks against 5. Pick GPT-5.4 Mini for a larger context window (400K against 205K tokens) and work measured by SWE-bench Verified (Vals AI) or Vibe Code Bench (Vals AI), where it leads.

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

GLM 5 costs $1.00 per million input tokens and $3.20 per million output tokens; GPT-5.4 Mini costs $0.75 and $4.50. Per solved SWE-bench Verified task, GLM 5 costs $0.63 and GPT-5.4 Mini $0.70.

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

GPT-5.4 Mini, with 400K tokens against 205K.

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

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