Enter opens the highlighted result. Esc closes.

GLM 5.4 vs GPT-6.2 Astra

GPT-6.2 Astra leads GLM 5.4 on coding, 87.1 to 72.7 on the Vibe Coding Index, and GLM 5.4 costs 9.1x less per output token ($4.40 vs $40.00 per million). Updated December 3, 2026; 10 benchmarks have a result for both.

GLM 5.4Z.ai
Coding
72.7
Overall
No data
Output $/M
$4.40
0
GPT-6.2 AstraOpenAI
Coding
87.1
Overall
86.0
Output $/M
$40.00
10
vs boards won of 10 shared

GLM 5.4 or GPT-6.2 Astra: which to pick

Pick GPT-6.2 Astra for coding: it scores 87.1 on the Vibe Coding Index against 72.7 for GLM 5.4.

Pick GLM 5.4 for output tokens 9.1x cheaper ($4.40 vs $40.00 per million).

Shared results
10
GLM 5.4 only
0
GPT-6.2 Astra only
80
Like-for-like categories
5 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.4 72.7 from 2 benchmarks, GPT-6.2 Astra 87.1 from 4 benchmarks.
Widest category
Agentic work, 21.2 points apart on average over 3 shared benchmarks.
Widest single gap
LiveBench long agentic: GLM 5.4 41.3% against GPT-6.2 Astra 70.8%, 29.5 points apart on a 0 to 100 scale.
Output price
GLM 5.4 $4.40 against GPT-6.2 Astra $40.00 per million output tokens, 9.1x apart.
Context window
GLM 5.4 takes 1.05M tokens, GPT-6.2 Astra 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.4BarsGPT-6.2 AstraTies
Coding04
Agentic work03
Reasoning01
Web design01
General01
All shared boards010
CodingLike-for-likeSix of these boards feed the Vibe Coding Index04
Coding benchmarks for GLM 5.4 and GPT-6.2 Astra
BenchmarkGLM 5.4GPT-6.2 AstraLeader
LiveBench coding74.5%91.9%GPT-6.2 Astra
LMArena WebDev16901770GPT-6.2 Astra
Terminal-Bench 4 (Vals AI)Not measured63.1%Only GPT-6.2 Astra measured
Vibe Code Bench (Vals AI)Not measured89.9%Only GPT-6.2 Astra measured
Terminal-Bench 4.0 (Artificial Analysis run)Not measured64.1%Only GPT-6.2 Astra measured
FrontierCode 2.0Not measured45.4%Only GPT-6.2 Astra measured
MirrorCodeNot measured67.8%Only GPT-6.2 Astra measured
ALE-BenchNot measured3017.1Only GPT-6.2 Astra measured
LMArena Text: codingNot measured1447Only GPT-6.2 Astra measured
LMArena Text: software and ITNot measured1434Only GPT-6.2 Astra measured
LMArena WebDev: React17391774GPT-6.2 Astra
LMArena WebDev: HTML16751859GPT-6.2 Astra
SciCodeNot measured9.2%Only GPT-6.2 Astra measured
GameBench 2Not measured97.2Only GPT-6.2 Astra measured
Neither model has a result on the other 38 boards here
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
Intelligence benchmarks for GLM 5.4 and GPT-6.2 Astra
BenchmarkGLM 5.4GPT-6.2 AstraLeader
AA Intelligence IndexNot measured62.0Only GPT-6.2 Astra measured
Epoch Capabilities IndexNot measured171.4Only GPT-6.2 Astra measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index03
Agentic work benchmarks for GLM 5.4 and GPT-6.2 Astra
BenchmarkGLM 5.4GPT-6.2 AstraLeader
Design Arena: agents building web appsNot measured1341Only GPT-6.2 Astra measured
Design Arena: agents building full-stack appsNot measured1432Only GPT-6.2 Astra measured
Design Arena: agents building mobile appsNot measured1303Only GPT-6.2 Astra measured
Design Arena: agents building Android appsNot measured1251Only GPT-6.2 Astra measured
Design Arena: PowerPoint slidesNot measured1177Only GPT-6.2 Astra measured
Design Arena: spreadsheetsNot measured1275Only GPT-6.2 Astra measured
LiveBench research86.0%91.5%GPT-6.2 Astra
LiveBench browser64.5%93.0%GPT-6.2 Astra
LiveBench long agentic41.3%70.8%GPT-6.2 Astra
Tax Agent Bench (Vals AI)Not measured24.3%Only GPT-6.2 Astra measured
Legal Research Bench (Vals AI)Not measured42.8%Only GPT-6.2 Astra measured
Harvey's Legal Agent Benchmark (Vals AI)Not measured16.3%Only GPT-6.2 Astra measured
BioMysteryBench (Vals AI)Not measured80.7%Only GPT-6.2 Astra measured
Terminal-Bench-Science (Vals AI)Not measured81.4%Only GPT-6.2 Astra measured
Vals Science IndexNot measured71.8%Only GPT-6.2 Astra measured
Robo-bench (Vals AI)Not measured44.2%Only GPT-6.2 Astra measured
APEX-AgentsNot measured72.2%Only GPT-6.2 Astra measured
PostTrainBenchNot measured43.5%Only GPT-6.2 Astra measured
SpireClimbNot measured41.3%Only GPT-6.2 Astra measured
LMArena SearchNot measured1191Only GPT-6.2 Astra measured
Neither model has a result on the other 24 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index01
Reasoning benchmarks for GLM 5.4 and GPT-6.2 Astra
BenchmarkGLM 5.4GPT-6.2 AstraLeader
LiveBench reasoning85.2%91.6%GPT-6.2 Astra
MysteryMechanism (Vals AI)Not measured53.1%Only GPT-6.2 Astra measured
HLE-Diamond (Artificial Analysis run)Not measured72.2%Only GPT-6.2 Astra measured
CritPt v2, hard subset (Artificial Analysis run)Not measured71.5%Only GPT-6.2 Astra measured
GPQA Diamond (Epoch AI run)Not measured96.8%Only GPT-6.2 Astra measured
ARC-AGINot measured98.5%Only GPT-6.2 Astra measured
ARC-AGI-2Not measured95.8%Only GPT-6.2 Astra measured
SimpleBenchNot measured77.3%Only GPT-6.2 Astra measured
Chess puzzlesNot measured78.0%Only GPT-6.2 Astra measured
Mystery game puzzlesNot measured95.0%Only GPT-6.2 Astra measured
EBR-benchNot measured92.4%Only GPT-6.2 Astra measured
LMArena Text: hard promptsNot measured1419Only GPT-6.2 Astra measured
LMArena Text: expertNot measured1434Only GPT-6.2 Astra measured
LMArena Text: hard prompts in EnglishNot measured1424Only GPT-6.2 Astra measured
Humanity's Last Exam (Scale run)Not measured66.9%Only GPT-6.2 Astra measured
GoBenchNot measured2493Only GPT-6.2 Astra measured
Neither model has a result on the other 10 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Math benchmarks for GLM 5.4 and GPT-6.2 Astra
BenchmarkGLM 5.4GPT-6.2 AstraLeader
OTIS Mock AIMENot measured100.0%Only GPT-6.2 Astra measured
FrontierMath, tiers 1 to 3Not measured92.6%Only GPT-6.2 Astra measured
FrontierMath, tier 4Not measured100.0%Only GPT-6.2 Astra measured
LMArena Text: mathNot measured1463Only GPT-6.2 Astra measured
LMArena Text: mathematical workNot measured1460Only GPT-6.2 Astra measured
MathArenaNot measured92.9%Only GPT-6.2 Astra measured
Neither model has a result on the other 8 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Knowledge benchmarks for GLM 5.4 and GPT-6.2 Astra
BenchmarkGLM 5.4GPT-6.2 AstraLeader
AA-OmniscienceNot measured50.0Only GPT-6.2 Astra measured
SimpleQA VerifiedNot measured78.5%Only GPT-6.2 Astra measured
LMArena Text: scienceNot measured1413Only GPT-6.2 Astra measured
LMArena Text: medicine and healthcareNot measured1379Only GPT-6.2 Astra measured
LMArena Text: legal and governmentNot measured1430Only GPT-6.2 Astra measured
LMArena Text: business and financeNot measured1395Only GPT-6.2 Astra measured
PRBench FinanceNot measured41.8%Only GPT-6.2 Astra measured
PRBench LegalNot measured41.8%Only GPT-6.2 Astra measured
Neither model has a result on the other 13 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index01
Web design benchmarks for GLM 5.4 and GPT-6.2 Astra
BenchmarkGLM 5.4GPT-6.2 AstraLeader
Design Arena: websitesNot measured1388Only GPT-6.2 Astra measured
Design Arena: UI componentsNot measured1326Only GPT-6.2 Astra measured
Design Arena: game devNot measured1504Only GPT-6.2 Astra measured
Design Arena: 3DNot measured1453Only GPT-6.2 Astra measured
Design Arena: all code categoriesNot measured1457Only GPT-6.2 Astra measured
LiveBench design74.2%82.8%GPT-6.2 Astra
Neither model has a result on the other 3 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index01
General benchmarks for GLM 5.4 and GPT-6.2 Astra
BenchmarkGLM 5.4GPT-6.2 AstraLeader
Vals IndexNot measured66.4%Only GPT-6.2 Astra measured
LiveBench data analysis72.2%84.1%GPT-6.2 Astra
DTBenchNot measured97.6%Only GPT-6.2 Astra measured
LMCANot measured62.1%Only GPT-6.2 Astra measured
Furniture assemblyNot measured89.2%Only GPT-6.2 Astra measured
LMArena TextNot measured1413Only GPT-6.2 Astra measured
LMArena Text: instruction followingNot measured1420Only GPT-6.2 Astra measured
LMArena Text: creative writingNot measured1421Only GPT-6.2 Astra measured
LMArena Text: EnglishNot measured1420Only GPT-6.2 Astra measured
LMArena Text: non-EnglishNot measured1402Only GPT-6.2 Astra measured
LMArena Text: ChineseNot measured1433Only GPT-6.2 Astra measured
LMArena Text: SpanishNot measured1398Only GPT-6.2 Astra measured
LMArena Text: RussianNot measured1419Only GPT-6.2 Astra measured
LMArena Text: multi-turnNot measured1417Only GPT-6.2 Astra measured
LMArena Text: longer queriesNot measured1432Only GPT-6.2 Astra measured
LMArena Text: writing and languageNot measured1422Only GPT-6.2 Astra measured
LMArena Text: entertainment and mediaNot measured1401Only GPT-6.2 Astra measured
MultiChallengeNot measured73.2%Only GPT-6.2 Astra measured
Neither model has a result on the other 31 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GLM 5.4 and GPT-6.2 Astra
BenchmarkGLM 5.4GPT-6.2 AstraLeader
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.4$0.0036Fits in one request
GPT-6.2 Astra$0.028Fits in one request

GLM 5.4 costs less

Repository review

50K input + 3K output tokens

GLM 5.4$0.083Fits in one request
GPT-6.2 Astra$0.520Fits in one request

GLM 5.4 costs less

Agent loop

200K input + 10K output tokens

GLM 5.4$0.324Fits in one request
GPT-6.2 Astra$2.00Fits in one request

GLM 5.4 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.4 and GPT-6.2 Astra
SpecificationZ.ai GLM 5.4OpenAI GPT-6.2 Astra
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedDecember 2, 2026November 17, 2026
Context window1.05M1.05M
Input $/Mtok$1.40$8.00
Output $/Mtok$4.40$40.00
Coding index72.787.1
Independent measurements behind it24
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.4 better than GPT-6.2 Astra for coding?

Pick GPT-6.2 Astra for coding: it scores 87.1 on the Vibe Coding Index against 72.7 for GLM 5.4. Pick GLM 5.4 for output tokens 9.1x cheaper ($4.40 vs $40.00 per million).

Which is cheaper, GLM 5.4 or GPT-6.2 Astra?

GLM 5.4 costs $1.40 per million input tokens and $4.40 per million output tokens; GPT-6.2 Astra costs $8.00 and $40.00. Cost per solved task is known for neither of them.

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

GPT-6.2 Astra, with 1.05M tokens against 1.05M.

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

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