Enter opens the highlighted result. Esc closes.

GLM 4.7 vs GPT-5.4 Nano

GLM 4.7 leads GPT-5.4 Nano on coding, 55.1 to 44.8 on the Vibe Coding Index, and GPT-5.4 Nano costs 1.8x less per output token ($1.25 vs $2.20 per million). Updated October 21, 2026; 54 benchmarks have a result for both.

GLM 4.7Z.ai
Coding
55.1
Overall
56.9
Output $/M
$2.20
40
GPT-5.4 NanoOpenAI
Coding
44.8
Overall
45.7
Output $/M
$1.25
14
vs boards won of 54 shared

GLM 4.7 or GPT-5.4 Nano: which to pick

Pick GLM 4.7 for coding: it scores 55.1 on the Vibe Coding Index against 44.8 for GPT-5.4 Nano.

Pick GPT-5.4 Nano for output tokens 1.8x cheaper ($1.25 vs $2.20 per million) and a lower cost per solved task ($0.14 against $0.29).

Shared results
54
GLM 4.7 only
27
GPT-5.4 Nano only
31
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 4.7 55.1 from 2 benchmarks, GPT-5.4 Nano 44.8 from 2 benchmarks.
Widest category
Agentic work, 19.9 points apart on average over 1 shared benchmark.
Widest single gap
Chess puzzles: GLM 4.7 21.0% against GPT-5.4 Nano 45.0%, 24.0 points apart on a 0 to 100 scale.
Output price
GLM 4.7 $2.20 against GPT-5.4 Nano $1.25 per million output tokens, 1.8x apart.
Context window
GLM 4.7 takes 205K tokens, GPT-5.4 Nano 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 4.7BarsGPT-5.4 NanoTies
Coding25
Intelligence11
Agentic work10
Reasoning62
Math41
Knowledge92
General173
All shared boards4014
CodingLike-for-likeSix of these boards feed the Vibe Coding Index25
Coding benchmarks for GLM 4.7 and GPT-5.4 Nano
BenchmarkGLM 4.7GPT-5.4 NanoLeader
LMArena WebDev1435Not measuredOnly GLM 4.7 measured
AA Coding Index45.356.1GPT-5.4 Nano
LiveCodeBench (Vals AI)82.2%84.0%GPT-5.4 Nano
SWE-bench Verified (Vals AI)69.4%69.8%GPT-5.4 Nano
Vibe Code Bench (Vals AI)Not measured26.1%Only GPT-5.4 Nano measured
Code migration (Vals AI)Not measured14.5%Only GPT-5.4 Nano measured
Terminal-Bench 2.1 (Vals AI)Not measured41.6%Only GPT-5.4 Nano measured
LiveCodeBench (Artificial Analysis run)89.4%Not measuredOnly GLM 4.7 measured
SciCodeNot measured47.2%Only GPT-5.4 Nano measured
Terminal-Bench Hard (Artificial Analysis run)31.8%42.4%GPT-5.4 Nano
Terminal-Bench33.4%Not measuredOnly GLM 4.7 measured
WeirdMLNot measured49.2%Only GPT-5.4 Nano measured
ALE-Bench399.51004.5GPT-5.4 Nano
LMArena Text: coding14541404GLM 4.7
LMArena Text: software and IT14531402GLM 4.7
LMArena WebDev: React1420Not measuredOnly GLM 4.7 measured
LMArena WebDev: HTML1447Not measuredOnly GLM 4.7 measured
Neither model has a result on the other 22 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
Intelligence benchmarks for GLM 4.7 and GPT-5.4 Nano
BenchmarkGLM 4.7GPT-5.4 NanoLeader
AA Intelligence Index22.220.7GLM 4.7
Epoch Capabilities Index143.6146.0GPT-5.4 Nano
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GLM 4.7 and GPT-5.4 Nano
BenchmarkGLM 4.7GPT-5.4 NanoLeader
AA Agentic IndexNot measured16.0Only GPT-5.4 Nano measured
Design Arena: agents building full-stack apps1050Not measuredOnly GLM 4.7 measured
Design Arena: agents building mobile apps1105Not measuredOnly GLM 4.7 measured
Design Arena: agents building Android apps1112Not measuredOnly GLM 4.7 measured
Design Arena: agents building Godot games1058Not measuredOnly GLM 4.7 measured
Finance Agent (Vals AI)Not measured38.2%Only GPT-5.4 Nano measured
Tax Agent Bench (Vals AI)Not measured5.0%Only GPT-5.4 Nano measured
Legal Research Bench (Vals AI)Not measured6.3%Only GPT-5.4 Nano measured
Excel Modeling Benchmark (Vals AI)Not measured44.8%Only GPT-5.4 Nano measured
τ²-Bench Telecom95.9%76.0%GLM 4.7
Vending-Bench 2$2,377Not measuredOnly GLM 4.7 measured
BrowseComp-Plus64.7%Not measuredOnly GLM 4.7 measured
Neither model has a result on the other 29 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index62
Reasoning benchmarks for GLM 4.7 and GPT-5.4 Nano
BenchmarkGLM 4.7GPT-5.4 NanoLeader
GPQA Diamond80.0%77.5%GLM 4.7
MMMU Pro (Vals AI)Not measured73.6%Only GPT-5.4 Nano measured
GPQA Diamond (Artificial Analysis run)85.9%81.7%GLM 4.7
Humanity's Last Exam (Artificial Analysis run)27.4%28.3%GPT-5.4 Nano
GPQA Diamond (Epoch AI run)83.3%78.5%GLM 4.7
ARC-AGINot measured51.5%Only GPT-5.4 Nano measured
ARC-AGI-2Not measured5.7%Only GPT-5.4 Nano measured
SimpleBench47.7%Not measuredOnly GLM 4.7 measured
Chess puzzles21.0%45.0%GPT-5.4 Nano
Mystery game puzzlesNot measured9.0%Only GPT-5.4 Nano measured
LMArena Text: hard prompts14431381GLM 4.7
LMArena Text: expert14241396GLM 4.7
LMArena Text: hard prompts in English14521387GLM 4.7
LMArena Vision: diagramsNot measured1210Only GPT-5.4 Nano measured
LMArena Vision: homeworkNot measured1225Only GPT-5.4 Nano measured
Kagi LLM BenchmarkNot measured39.7%Only GPT-5.4 Nano measured
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index41
Math benchmarks for GLM 4.7 and GPT-5.4 Nano
BenchmarkGLM 4.7GPT-5.4 NanoLeader
AIME93.3%88.8%GLM 4.7
MGSM (Vals AI)88.2%Not measuredOnly GLM 4.7 measured
AA Math Index95.0Not measuredOnly GLM 4.7 measured
AIME 2025 (Artificial Analysis run)95.0%Not measuredOnly GLM 4.7 measured
OTIS Mock AIME83.3%87.8%GPT-5.4 Nano
FrontierMath, tiers 1 to 3Not measured44.9%Only GPT-5.4 Nano measured
FrontierMath, tier 4Not measured12.2%Only GPT-5.4 Nano measured
ProofBench6.0%5.0%GLM 4.7
LMArena Text: math14241405GLM 4.7
LMArena Text: mathematical work14111409GLM 4.7
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index92
Knowledge benchmarks for GLM 4.7 and GPT-5.4 Nano
BenchmarkGLM 4.7GPT-5.4 NanoLeader
MMLU Pro82.7%77.2%GLM 4.7
LegalBench (Vals AI)83.4%77.9%GLM 4.7
CaseLaw (Vals AI)54.9%51.9%GLM 4.7
CorpFin (Vals AI)46.4%61.2%GPT-5.4 Nano
TaxEval (Vals AI)68.8%67.4%GLM 4.7
MortgageTax (Vals AI)Not measured59.1%Only GPT-5.4 Nano measured
MedQA (Vals AI)93.7%Not measuredOnly GLM 4.7 measured
MedCode (Vals AI)32.8%41.0%GPT-5.4 Nano
MMLU Pro (Artificial Analysis run)85.6%Not measuredOnly GLM 4.7 measured
SimpleQA Verified32.2%11.7%GLM 4.7
LMArena Text: science14571374GLM 4.7
LMArena Text: medicine and healthcare14691369GLM 4.7
LMArena Text: legal and government14441368GLM 4.7
LMArena Text: business and finance14291366GLM 4.7
Neither model has a result on the other 4 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for GLM 4.7 and GPT-5.4 Nano
BenchmarkGLM 4.7GPT-5.4 NanoLeader
Design Arena: websites1226Not measuredOnly GLM 4.7 measured
Design Arena: UI components1199Not measuredOnly GLM 4.7 measured
Design Arena: game dev1189Not measuredOnly GLM 4.7 measured
Design Arena: data viz1195Not measuredOnly GLM 4.7 measured
Design Arena: 3D1191Not measuredOnly GLM 4.7 measured
Design Arena: all code categories1217Not measuredOnly GLM 4.7 measured
Design Arena: SVG1143Not measuredOnly GLM 4.7 measured
Design Arena: ASCII art1165Not measuredOnly GLM 4.7 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index173
General benchmarks for GLM 4.7 and GPT-5.4 Nano
BenchmarkGLM 4.7GPT-5.4 NanoLeader
SAGE (Vals AI)Not measured38.1%Only GPT-5.4 Nano measured
MedScribe (Vals AI)68.6%77.1%GPT-5.4 Nano
Vals Multimodal IndexNot measured47.6%Only GPT-5.4 Nano measured
IFBench67.9%75.9%GPT-5.4 Nano
Long context reasoning (AA-LCR)71.0%76.7%GPT-5.4 Nano
DTBenchNot measured80.3%Only GPT-5.4 Nano measured
LMCANot measured36.9%Only GPT-5.4 Nano measured
CL-bench15.9%Not measuredOnly GLM 4.7 measured
CL-bench Life10.9%Not measuredOnly GLM 4.7 measured
LMArena Text14351372GLM 4.7
LMArena Text: instruction following14121362GLM 4.7
LMArena Text: creative writing14011315GLM 4.7
LMArena VisionNot measured1196Only GPT-5.4 Nano measured
LMArena Text: English14531381GLM 4.7
LMArena Text: non-English14171359GLM 4.7
LMArena Text: Chinese14951391GLM 4.7
LMArena Text: German14261368GLM 4.7
LMArena Text: Japanese14391343GLM 4.7
LMArena Text: Korean13991321GLM 4.7
LMArena Text: French14321395GLM 4.7
LMArena Text: Spanish14341371GLM 4.7
LMArena Text: Russian14231363GLM 4.7
LMArena Text: Polish14351366GLM 4.7
LMArena Text: multi-turn14461382GLM 4.7
LMArena Text: longer queries14321365GLM 4.7
LMArena Text: writing and language14111338GLM 4.7
LMArena Text: entertainment and media14001325GLM 4.7
LMArena Vision: EnglishNot measured1202Only GPT-5.4 Nano measured
LMArena Vision: ChineseNot measured1232Only GPT-5.4 Nano measured
LMArena Vision: reading textNot measured1204Only GPT-5.4 Nano measured
LMArena Vision: humorNot measured1161Only GPT-5.4 Nano measured
LMArena Vision: recognizing thingsNot measured1141Only GPT-5.4 Nano measured
LMArena Vision: creative writingNot measured1159Only GPT-5.4 Nano measured
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 4.7 and GPT-5.4 Nano
BenchmarkGLM 4.7GPT-5.4 NanoLeader
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 4.7$0.0017Fits in one request
GPT-5.4 Nano$0.0008Fits in one request

GPT-5.4 Nano costs less

Repository review

50K input + 3K output tokens

GLM 4.7$0.037Fits in one request
GPT-5.4 Nano$0.014Fits in one request

GPT-5.4 Nano costs less

Agent loop

200K input + 10K output tokens

GLM 4.7$0.142Exceeds the context window
GPT-5.4 Nano$0.052Fits in one request

GPT-5.4 Nano 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 4.7 and GPT-5.4 Nano
SpecificationZ.ai GLM 4.7OpenAI GPT-5.4 Nano
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedDecember 22, 2025March 17, 2026
Context window205K400K
Input $/Mtok$0.60$0.20
Output $/Mtok$2.20$1.25
Coding index55.144.8
Independent measurements behind it22
Cost per solved task$0.29$0.14
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 4.7 better than GPT-5.4 Nano for coding?

Pick GLM 4.7 for coding: it scores 55.1 on the Vibe Coding Index against 44.8 for GPT-5.4 Nano. Pick GPT-5.4 Nano for output tokens 1.8x cheaper ($1.25 vs $2.20 per million) and a lower cost per solved task ($0.14 against $0.29).

Which is cheaper, GLM 4.7 or GPT-5.4 Nano?

GLM 4.7 costs $0.60 per million input tokens and $2.20 per million output tokens; GPT-5.4 Nano costs $0.20 and $1.25. Per solved SWE-bench Verified task, GLM 4.7 costs $0.29 and GPT-5.4 Nano $0.14.

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

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

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

54 benchmarks have a result for both models as of October 21, 2026. GLM 4.7's coding index rests on 2 independent benchmarks and GPT-5.4 Nano'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-4-7-vs-gpt-5-4-nano" title="GLM 4.7 vs GPT-5.4 Nano, 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-4-7-vs-gpt-5-4-nano">LLMBenchmark.ai, GLM 4.7 vs GPT-5.4 Nano</a></p>