Enter opens the highlighted result. Esc closes.

GLM 5.2 vs GPT-5.4

GPT-5.4 leads GLM 5.2 on coding, 61.9 to 59.7 on the Vibe Coding Index, and GLM 5.2 costs 3.4x less per output token ($4.40 vs $15.00 per million). Updated December 6, 2026; 93 benchmarks have a result for both.

GLM 5.2Z.ai
Coding
59.7
Overall
65.2
Output $/M
$4.40
39
GPT-5.4OpenAI
Coding
61.9
Overall
71.9
Output $/M
$15.00
52
vs boards won of 93 shared, 2 tied

GLM 5.2 or GPT-5.4: which to pick

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

Pick GLM 5.2 for output tokens 3.4x cheaper ($4.40 vs $15.00 per million) and a lower cost per solved task ($0.86 against $1.02).

Shared results
93
GLM 5.2 only
18
GPT-5.4 only
26
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.2 59.7 from 3 benchmarks, GPT-5.4 61.9 from 2 benchmarks.
Widest category
Math, 12.3 points apart on average over 7 shared benchmarks.
Widest single gap
ARC-AGI-2: GLM 5.2 22.8% against GPT-5.4 74.0%, 51.2 points apart on a 0 to 100 scale.
Output price
GLM 5.2 $4.40 against GPT-5.4 $15.00 per million output tokens, 3.4x apart.
Context window
GLM 5.2 takes 1.05M 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 5.2BarsGPT-5.4Ties
Coding7102 ties
Intelligence01
Agentic work92
Reasoning112
Math07
Knowledge46
Web design80
General1014
All shared boards39522 ties
CodingLike-for-likeSix of these boards feed the Vibe Coding Index710
Coding benchmarks for GLM 5.2 and GPT-5.4
BenchmarkGLM 5.2GPT-5.4Leader
LMArena WebDev16081462GLM 5.2
LiveCodeBench (Vals AI)69.5%84.1%GPT-5.4
SWE-bench Verified (Vals AI)82.8%78.2%GLM 5.2
Code migration (Vals AI)37.9%35.0%GLM 5.2
ProgramBench (Vals AI)0.5%0.5%Tie
Terminal-Bench 2.1 (Vals AI)67.8%Not measuredOnly GLM 5.2 measured
SkillsBench (Vals AI)45.1%51.7%GPT-5.4
SciCode51.2%Not measuredOnly GLM 5.2 measured
Terminal-Bench Hard (Artificial Analysis run)50.8%57.6%GPT-5.4
Terminal-Bench 4.0 (Artificial Analysis run)1.0%Not measuredOnly GLM 5.2 measured
Terminal-BenchNot measured81.8%Only GPT-5.4 measured
FrontierCode24.5%Not measuredOnly GLM 5.2 measured
GSO-BenchNot measured31.4%Only GPT-5.4 measured
WeirdML70.1%77.7%GPT-5.4
MirrorCode36.7%23.3%GLM 5.2
ALE-Bench1047.01607.0GPT-5.4
LMArena Text: coding14881497GPT-5.4
LMArena Text: software and IT14871491GPT-5.4
LMArena WebDev: React16211451GLM 5.2
LMArena WebDev: HTML15671479GLM 5.2
LMArena WebDev: from an imageNot measured1441Only GPT-5.4 measured
SWE Atlas: Codebase QnA48.1%40.8%GLM 5.2
SWE Atlas: Refactoring42.4%44.3%GPT-5.4
SWE Atlas: Test Writing41.5%44.4%GPT-5.4
GameBench 249.962.2GPT-5.4
Terminal-Bench 3.04.6%Not measuredOnly GLM 5.2 measured
ProgramBench0.0%0.0%Tie
Neither model has a result on the other 25 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for GLM 5.2 and GPT-5.4
BenchmarkGLM 5.2GPT-5.4Leader
Epoch Capabilities Index153.0157.8GPT-5.4
Neither model has a result on the other 1 board here
Agentic workLike-for-likePublic boards, shown as published, kept out of the index92
Agentic work benchmarks for GLM 5.2 and GPT-5.4
BenchmarkGLM 5.2GPT-5.4Leader
Design Arena: agents building web apps11841020GLM 5.2
Design Arena: agents building full-stack apps12881063GLM 5.2
Design Arena: agents building mobile apps11521076GLM 5.2
Design Arena: agents building Android apps11621014GLM 5.2
Design Arena: agents building Godot games11421135GLM 5.2
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%Not measuredOnly GLM 5.2 measured
Legal Research Bench (Vals AI)31.3%Not measuredOnly GLM 5.2 measured
Excel Modeling Benchmark (Vals AI)61.5%Not measuredOnly GLM 5.2 measured
τ²-Bench Telecom99.1%87.1%GLM 5.2
APEX-Agents45.2%52.4%GPT-5.4
METR time horizonsNot measured74.3%Only GPT-5.4 measured
DeepResearch BenchNot measured35.1%Only GPT-5.4 measured
PostTrainBench30.4%17.8%GLM 5.2
Vending-Bench 2$8,314$6,144GLM 5.2
LMArena SearchNot measured1198Only GPT-5.4 measured
MCP Atlas77.8%70.6%GLM 5.2
Toolathlon-Verified59.9%Not measuredOnly GLM 5.2 measured
τ³-Banking37.1%39.4%GPT-5.4
Neither model has a result on the other 21 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index112
Reasoning benchmarks for GLM 5.2 and GPT-5.4
BenchmarkGLM 5.2GPT-5.4Leader
GPQA Diamond85.6%91.7%GPT-5.4
MMMU Pro (Vals AI)Not measured87.5%Only GPT-5.4 measured
GPQA Diamond (Artificial Analysis run)89.5%92.0%GPT-5.4
Humanity's Last Exam (Artificial Analysis run)41.1%43.7%GPT-5.4
HLE-Diamond (Artificial Analysis run)17.7%Not measuredOnly GLM 5.2 measured
GPQA Diamond (Epoch AI run)91.9%93.3%GPT-5.4
ARC-AGI77.0%93.7%GPT-5.4
ARC-AGI-222.8%74.0%GPT-5.4
SimpleBench58.8%Not measuredOnly GLM 5.2 measured
Chess puzzles22.0%48.0%GPT-5.4
Mystery game puzzles19.0%37.0%GPT-5.4
EBR-bench9.5%25.4%GPT-5.4
LMArena Text: hard prompts14811485GPT-5.4
LMArena Text: expert14881507GPT-5.4
LMArena Text: hard prompts in English14811479GLM 5.2
LMArena Vision: diagramsNot measured1325Only GPT-5.4 measured
LMArena Vision: homeworkNot measured1336Only GPT-5.4 measured
Kagi LLM Benchmark62.6%63.8%GPT-5.4
Neither model has a result on the other 8 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index07
Math benchmarks for GLM 5.2 and GPT-5.4
BenchmarkGLM 5.2GPT-5.4Leader
AIMENot measured96.7%Only GPT-5.4 measured
OTIS Mock AIME86.4%97.8%GPT-5.4
FrontierMath, tiers 1 to 359.2%78.6%GPT-5.4
FrontierMath, tier 429.3%49.0%GPT-5.4
ProofBench35.0%56.0%GPT-5.4
LMArena Text: math14851487GPT-5.4
LMArena Text: mathematical work14901496GPT-5.4
MathArena21.1%34.2%GPT-5.4
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index46
Knowledge benchmarks for GLM 5.2 and GPT-5.4
BenchmarkGLM 5.2GPT-5.4Leader
MMLU Pro86.7%87.5%GPT-5.4
LegalBench (Vals AI)84.1%86.0%GPT-5.4
CaseLaw (Vals AI)Not measured63.8%Only GPT-5.4 measured
CorpFin (Vals AI)66.1%65.3%GLM 5.2
TaxEval (Vals AI)73.3%74.0%GPT-5.4
MortgageTax (Vals AI)Not measured68.3%Only GPT-5.4 measured
MedQA (Vals AI)Not measured96.1%Only GPT-5.4 measured
MedCode (Vals AI)40.8%41.3%GPT-5.4
AA-Omniscience0.6Not measuredOnly GLM 5.2 measured
SimpleQA Verified34.2%45.1%GPT-5.4
LMArena Text: science14891478GLM 5.2
LMArena Text: medicine and healthcare14761458GLM 5.2
LMArena Text: legal and government14901485GLM 5.2
LMArena Text: business and finance14501475GPT-5.4
PRBench FinanceNot measured45.6%Only GPT-5.4 measured
PRBench LegalNot measured45.6%Only GPT-5.4 measured
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index80
Web design benchmarks for GLM 5.2 and GPT-5.4
BenchmarkGLM 5.2GPT-5.4Leader
Design Arena: websites13231238GLM 5.2
Design Arena: UI components12711194GLM 5.2
Design Arena: game dev12341162GLM 5.2
Design Arena: data viz12751187GLM 5.2
Design Arena: 3D12471011GLM 5.2
Design Arena: all code categories13281221GLM 5.2
Design Arena: SVG12451184GLM 5.2
Design Arena: ASCII art11741164GLM 5.2
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index1014
General benchmarks for GLM 5.2 and GPT-5.4
BenchmarkGLM 5.2GPT-5.4Leader
MedScribe (Vals AI)83.5%77.5%GLM 5.2
IFBench73.3%73.9%GPT-5.4
Long context reasoning (AA-LCR)78.3%82.0%GPT-5.4
GDPval-AA13831258GLM 5.2
DTBench93.6%94.4%GPT-5.4
LMCA45.8%52.0%GPT-5.4
CL-benchNot measured27.9%Only GPT-5.4 measured
Surface Evolver Bench55.6%Not measuredOnly GLM 5.2 measured
Furniture assemblyNot measured37.5%Only GPT-5.4 measured
CL-bench LifeNot measured21.7%Only GPT-5.4 measured
LMArena Text14701469GLM 5.2
LMArena Text: instruction following14671469GPT-5.4
LMArena Text: creative writing14601437GLM 5.2
LMArena VisionNot measured1301Only GPT-5.4 measured
LMArena Text: English14751467GLM 5.2
LMArena Text: non-English14581464GPT-5.4
LMArena Text: Chinese15231517GLM 5.2
LMArena Text: German14671473GPT-5.4
LMArena Text: Japanese14521484GPT-5.4
LMArena Text: Korean14301449GPT-5.4
LMArena Text: French14771493GPT-5.4
LMArena Text: Spanish14801453GLM 5.2
LMArena Text: Russian14661481GPT-5.4
LMArena Text: Polish14591472GPT-5.4
LMArena Text: multi-turn14701482GPT-5.4
LMArena Text: longer queries14791473GLM 5.2
LMArena Text: writing and language14621457GLM 5.2
LMArena Text: entertainment and media14481437GLM 5.2
LMArena Vision: EnglishNot measured1298Only GPT-5.4 measured
LMArena Vision: ChineseNot measured1356Only GPT-5.4 measured
LMArena Vision: reading textNot measured1310Only GPT-5.4 measured
LMArena Vision: humorNot measured1284Only GPT-5.4 measured
LMArena Vision: recognizing thingsNot measured1246Only GPT-5.4 measured
LMArena Vision: creative writingNot measured1286Only GPT-5.4 measured
LMArena DocumentNot measured1472Only GPT-5.4 measured
EQ-Bench 412081258GPT-5.4
Neither model has a result on the other 13 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
BenchmarkGLM 5.2GPT-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.2$0.0036Fits in one request
GPT-5.4$0.010Fits in one request

GLM 5.2 costs less

Repository review

50K input + 3K output tokens

GLM 5.2$0.083Fits in one request
GPT-5.4$0.170Fits in one request

GLM 5.2 costs less

Agent loop

200K input + 10K output tokens

GLM 5.2$0.324Fits in one request
GPT-5.4$0.650Fits in one request

GLM 5.2 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
SpecificationZ.ai GLM 5.2OpenAI GPT-5.4
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedJune 16, 2026March 5, 2026
Context window1.05M1.05M
Input $/Mtok$1.40$2.50
Output $/Mtok$4.40$15.00
Coding index59.761.9
Independent measurements behind it32
Cost per solved task$0.86$1.02
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.2 better than GPT-5.4 for coding?

Pick GPT-5.4 for coding: it scores 61.9 on the Vibe Coding Index against 59.7 for GLM 5.2, though on 2 benchmarks against 3. Pick GLM 5.2 for output tokens 3.4x cheaper ($4.40 vs $15.00 per million) and a lower cost per solved task ($0.86 against $1.02).

Which is cheaper, GLM 5.2 or GPT-5.4?

GLM 5.2 costs $1.40 per million input tokens and $4.40 per million output tokens; GPT-5.4 costs $2.50 and $15.00. Per solved SWE-bench Verified task, GLM 5.2 costs $0.86 and GPT-5.4 $1.02.

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

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

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

93 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's on 2. 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" title="GLM 5.2 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-2-vs-gpt-5-4">LLMBenchmark.ai, GLM 5.2 vs GPT-5.4</a></p>