Enter opens the highlighted result. Esc closes.

GLM 5 vs GPT-5.4

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

GLM 5Z.ai
Coding
41.7
Overall
54.3
Output $/M
$3.20
14
GPT-5.4OpenAI
Coding
64.4
Overall
69.6
Output $/M
$15.00
58
vs boards won of 72 shared

GLM 5 or GPT-5.4: which to pick

Pick GPT-5.4 for coding: it scores 64.4 on the Vibe Coding Index against 41.7 for GLM 5.

Pick GLM 5 for output tokens 4.7x cheaper ($3.20 vs $15.00 per million) and a lower cost per solved task ($0.63 against $1.02).

Shared results
72
GLM 5 only
4
GPT-5.4 only
38
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
GLM 5 41.7 from 3 benchmarks, GPT-5.4 64.4 from 3 benchmarks.
Widest category
Reasoning, 18.5 points apart on average over 10 shared benchmarks.
Widest single gap
ARC-AGI-2: GLM 5 4.9% against GPT-5.4 74.0%, 69.1 points apart on a 0 to 100 scale.
Output price
GLM 5 $3.20 against GPT-5.4 $15.00 per million output tokens, 4.7x apart.
Context window
GLM 5 takes 205K tokens, GPT-5.4 1.05M.

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.4Ties
Coding012
Intelligence02
Agentic work51
Reasoning19
Math04
Knowledge010
Web design71
General119
All shared boards1458
CodingLike-for-likeSix of these boards feed the Vibe Coding Index012
Coding benchmarks for GLM 5 and GPT-5.4
BenchmarkGLM 5GPT-5.4Leader
SWE-bench Verified72.8%Not measuredOnly GLM 5 measured
SWE-bench Multilingual69.7%Not measuredOnly GLM 5 measured
LMArena WebDev14351464GPT-5.4
AA Coding IndexNot measured71.1Only GPT-5.4 measured
LiveCodeBench (Vals AI)81.9%84.1%GPT-5.4
SWE-bench Verified (Vals AI)71.4%78.2%GPT-5.4
Vibe Code Bench (Vals AI)23.4%67.4%GPT-5.4
Code migration (Vals AI)Not measured35.0%Only GPT-5.4 measured
ProgramBench (Vals AI)Not measured0.5%Only GPT-5.4 measured
SkillsBench (Vals AI)Not measured51.7%Only GPT-5.4 measured
Terminal-Bench Hard (Artificial Analysis run)43.2%57.6%GPT-5.4
Terminal-Bench52.4%81.8%GPT-5.4
GSO-BenchNot measured31.4%Only GPT-5.4 measured
WeirdML48.2%77.7%GPT-5.4
MirrorCodeNot measured15.6%Only GPT-5.4 measured
ALE-Bench765.61607.0GPT-5.4
LMArena Text: coding14611496GPT-5.4
LMArena Text: software and IT14601491GPT-5.4
LMArena WebDev: React14241454GPT-5.4
LMArena WebDev: HTML14501478GPT-5.4
LMArena WebDev: from an imageNot measured1436Only GPT-5.4 measured
Neither model has a result on the other 18 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for GLM 5 and GPT-5.4
BenchmarkGLM 5GPT-5.4Leader
AA Intelligence Index27.939.0GPT-5.4
Epoch Capabilities Index145.8157.3GPT-5.4
Agentic workLike-for-likePublic boards, shown as published, kept out of the index51
Agentic work benchmarks for GLM 5 and GPT-5.4
BenchmarkGLM 5GPT-5.4Leader
Design Arena: agents building web appsNot measured1059Only GPT-5.4 measured
Design Arena: agents building full-stack apps11231017GLM 5
Design Arena: agents building mobile apps11361087GLM 5
Design Arena: agents building Android apps11471031GLM 5
Design Arena: agents building Godot games11441135GLM 5
Design Arena: HTML slides1098Not measuredOnly GLM 5 measured
τ²-Bench Telecom98.2%87.1%GLM 5
APEX-AgentsNot measured52.4%Only GPT-5.4 measured
METR time horizonsNot measured74.3%Only GPT-5.4 measured
DeepResearch BenchNot measured35.1%Only GPT-5.4 measured
PostTrainBenchNot measured19.0%Only GPT-5.4 measured
Vending-Bench 2$4,432$6,144GPT-5.4
Neither model has a result on the other 29 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index19
Reasoning benchmarks for GLM 5 and GPT-5.4
BenchmarkGLM 5GPT-5.4Leader
GPQA Diamond83.3%91.7%GPT-5.4
MMMU Pro (Vals AI)Not measured87.5%Only GPT-5.4 measured
GPQA Diamond (Artificial Analysis run)82.0%92.0%GPT-5.4
Humanity's Last Exam (Artificial Analysis run)29.3%43.7%GPT-5.4
GPQA Diamond (Epoch AI run)87.8%93.3%GPT-5.4
ARC-AGI44.7%93.7%GPT-5.4
ARC-AGI-24.9%74.0%GPT-5.4
SimpleBench53.2%Not measuredOnly GLM 5 measured
Chess puzzlesNot measured48.0%Only GPT-5.4 measured
Mystery game puzzlesNot measured37.0%Only GPT-5.4 measured
EBR-benchNot measured25.4%Only GPT-5.4 measured
LMArena Text: hard prompts14521485GPT-5.4
LMArena Text: expert14541507GPT-5.4
LMArena Text: hard prompts in English14601479GPT-5.4
LMArena Vision: diagramsNot measured1327Only GPT-5.4 measured
LMArena Vision: homeworkNot measured1336Only GPT-5.4 measured
Kagi LLM Benchmark75.0%63.8%GLM 5
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index04
Math benchmarks for GLM 5 and GPT-5.4
BenchmarkGLM 5GPT-5.4Leader
AIME91.7%96.7%GPT-5.4
OTIS Mock AIME80.0%97.8%GPT-5.4
FrontierMath, tiers 1 to 3Not measured78.6%Only GPT-5.4 measured
FrontierMath, tier 4Not measured49.0%Only GPT-5.4 measured
ProofBenchNot measured56.0%Only GPT-5.4 measured
LMArena Text: math14401488GPT-5.4
LMArena Text: mathematical work14511497GPT-5.4
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index010
Knowledge benchmarks for GLM 5 and GPT-5.4
BenchmarkGLM 5GPT-5.4Leader
MMLU Pro86.0%87.5%GPT-5.4
LegalBench (Vals AI)84.1%86.0%GPT-5.4
CaseLaw (Vals AI)52.5%63.8%GPT-5.4
CorpFin (Vals AI)62.9%65.3%GPT-5.4
TaxEval (Vals AI)70.0%74.0%GPT-5.4
MortgageTax (Vals AI)Not measured68.3%Only GPT-5.4 measured
MedQA (Vals AI)94.3%96.1%GPT-5.4
MedCode (Vals AI)Not measured41.3%Only GPT-5.4 measured
SimpleQA VerifiedNot measured45.1%Only GPT-5.4 measured
LMArena Text: science14601479GPT-5.4
LMArena Text: medicine and healthcare14551458GPT-5.4
LMArena Text: legal and government14531486GPT-5.4
LMArena Text: business and finance14301474GPT-5.4
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index71
Web design benchmarks for GLM 5 and GPT-5.4
BenchmarkGLM 5GPT-5.4Leader
Design Arena: websites12471198GLM 5
Design Arena: UI components12271212GLM 5
Design Arena: game dev12341194GLM 5
Design Arena: data viz12281196GLM 5
Design Arena: 3D12281065GLM 5
Design Arena: all code categories12461179GLM 5
Design Arena: SVG11681141GLM 5
Design Arena: ASCII art11471188GPT-5.4
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index119
General benchmarks for GLM 5 and GPT-5.4
BenchmarkGLM 5GPT-5.4Leader
SAGE (Vals AI)Not measured43.3%Only GPT-5.4 measured
MedScribe (Vals AI)Not measured77.5%Only GPT-5.4 measured
IFBench72.3%73.9%GPT-5.4
Long context reasoning (AA-LCR)75.7%82.0%GPT-5.4
DTBenchNot measured94.4%Only GPT-5.4 measured
LMCANot measured52.0%Only GPT-5.4 measured
CL-bench18.7%27.9%GPT-5.4
Furniture assemblyNot measured37.5%Only GPT-5.4 measured
CL-bench LifeNot measured21.7%Only GPT-5.4 measured
LMArena Text14461469GPT-5.4
LMArena Text: instruction following14281469GPT-5.4
LMArena Text: creative writing14381439GPT-5.4
LMArena VisionNot measured1303Only GPT-5.4 measured
LMArena Text: English14581467GPT-5.4
LMArena Text: non-English14301465GPT-5.4
LMArena Text: Chinese15111520GPT-5.4
LMArena Text: German14471472GPT-5.4
LMArena Text: Japanese14161485GPT-5.4
LMArena Text: Korean14231449GPT-5.4
LMArena Text: French14561493GPT-5.4
LMArena Text: Spanish14541452GLM 5
LMArena Text: Russian14361480GPT-5.4
LMArena Text: Polish14341472GPT-5.4
LMArena Text: multi-turn14561482GPT-5.4
LMArena Text: longer queries14461473GPT-5.4
LMArena Text: writing and language14371458GPT-5.4
LMArena Text: entertainment and media14261438GPT-5.4
LMArena Vision: EnglishNot measured1301Only GPT-5.4 measured
LMArena Vision: ChineseNot measured1354Only GPT-5.4 measured
LMArena Vision: reading textNot measured1312Only GPT-5.4 measured
LMArena Vision: humorNot measured1284Only GPT-5.4 measured
LMArena Vision: recognizing thingsNot measured1251Only GPT-5.4 measured
LMArena Vision: creative writingNot measured1283Only GPT-5.4 measured
LMArena DocumentNot measured1471Only GPT-5.4 measured
Neither model has a result on the other 12 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
BenchmarkGLM 5GPT-5.4Leader
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$0.010Fits in one request

GLM 5 costs less

Repository review

50K input + 3K output tokens

GLM 5$0.060Fits in one request
GPT-5.4$0.170Fits in one request

GLM 5 costs less

Agent loop

200K input + 10K output tokens

GLM 5$0.232Exceeds the context window
GPT-5.4$0.650Fits in one request

GLM 5 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
SpecificationZ.ai GLM 5OpenAI GPT-5.4
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedFebruary 11, 2026March 5, 2026
Context window205K1.05M
Input $/Mtok$1.00$2.50
Output $/Mtok$3.20$15.00
Coding index41.764.4
Independent measurements behind it33
Cost per solved task$0.63$1.02
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5 better than GPT-5.4 for coding?

Pick GPT-5.4 for coding: it scores 64.4 on the Vibe Coding Index against 41.7 for GLM 5. Pick GLM 5 for output tokens 4.7x cheaper ($3.20 vs $15.00 per million) and a lower cost per solved task ($0.63 against $1.02).

Which is cheaper, GLM 5 or GPT-5.4?

GLM 5 costs $1.00 per million input tokens and $3.20 per million output tokens; GPT-5.4 costs $2.50 and $15.00. Per solved SWE-bench Verified task, GLM 5 costs $0.63 and GPT-5.4 $1.02.

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

GPT-5.4, with 1.05M tokens against 205K.

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

72 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'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/glm-5-vs-gpt-5-4" title="GLM 5 vs GPT-5.4, 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">LLMBenchmark.ai, GLM 5 vs GPT-5.4</a></p>