Enter opens the highlighted result. Esc closes.

GLM 5.2 vs GPT-6 Astra

GPT-6 Astra leads GLM 5.2 on coding, 85.1 to 61.1 on the Vibe Coding Index, and GLM 5.2 costs 11.4x less per output token ($4.40 vs $50.00 per million). Updated October 22, 2026; 80 benchmarks have a result for both.

GLM 5.2Z.ai
Coding
61.1
Overall
62.5
Output $/M
$4.40
26
GPT-6 AstraOpenAI
Coding
85.1
Overall
83.0
Output $/M
$50.00
54
vs boards won of 80 shared

GLM 5.2 or GPT-6 Astra: which to pick

Pick GPT-6 Astra for coding: it scores 85.1 on the Vibe Coding Index against 61.1 for GLM 5.2.

Pick GLM 5.2 for output tokens 11.4x cheaper ($4.40 vs $50.00 per million) and work measured by LMArena Text: software and IT or LMArena Text: hard prompts, where it leads.

Shared results
80
GLM 5.2 only
18
GPT-6 Astra only
41
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 61.1 from 4 benchmarks, GPT-6 Astra 85.1 from 5 benchmarks.
Widest category
Math, 30.7 points apart on average over 6 shared benchmarks.
Widest single gap
ARC-AGI-2: GLM 5.2 22.8% against GPT-6 Astra 95.0%, 72.2 points apart on a 0 to 100 scale.
Output price
GLM 5.2 $4.40 against GPT-6 Astra $50.00 per million output tokens, 11.4x apart.
Context window
GLM 5.2 takes 1.05M tokens, GPT-6 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.2BarsGPT-6 AstraTies
Coding113
Intelligence02
Agentic work012
Reasoning29
Math24
Knowledge42
Web design08
General174
All shared boards2654
CodingLike-for-likeSix of these boards feed the Vibe Coding Index113
Coding benchmarks for GLM 5.2 and GPT-6 Astra
BenchmarkGLM 5.2GPT-6 AstraLeader
LiveBench codingNot measured93.7%Only GPT-6 Astra measured
LMArena WebDev16041774GPT-6 Astra
AA Coding Index68.876.9GPT-6 Astra
LiveCodeBench (Vals AI)69.5%Not measuredOnly GLM 5.2 measured
SWE-bench Verified (Vals AI)82.8%Not measuredOnly GLM 5.2 measured
Terminal-Bench 4 (Vals AI)Not measured59.6%Only GPT-6 Astra measured
Vibe Code Bench (Vals AI)64.0%89.6%GPT-6 Astra
Code migration (Vals AI)37.9%67.7%GPT-6 Astra
ProgramBench (Vals AI)0.5%5.5%GPT-6 Astra
IOI (Vals AI)Not measured100.0%Only GPT-6 Astra measured
Terminal-Bench 2.1 (Vals AI)67.8%87.3%GPT-6 Astra
SWE-bench Multimodal (Vals AI)Not measured43.3%Only GPT-6 Astra measured
Vibe Code Bench 1-100 (Vals AI)Not measured27.6%Only GPT-6 Astra measured
SkillsBench (Vals AI)45.1%Not measuredOnly GLM 5.2 measured
CyberBench (Vals AI)Not measured41.1%Only GPT-6 Astra measured
SciCode51.2%56.5%GPT-6 Astra
Terminal-Bench Hard (Artificial Analysis run)50.8%Not measuredOnly GLM 5.2 measured
FrontierCode24.5%53.3%GPT-6 Astra
FrontierSWENot measured65.5%Only GPT-6 Astra measured
GSO-BenchNot measured79.4%Only GPT-6 Astra measured
WeirdML70.1%93.3%GPT-6 Astra
MirrorCodeNot measured46.7%Only GPT-6 Astra measured
ALE-Bench1047.02951.3GPT-6 Astra
LMArena Text: coding14871489GPT-6 Astra
LMArena Text: software and IT14861474GLM 5.2
LMArena WebDev: React16171798GPT-6 Astra
LMArena WebDev: HTML15651775GPT-6 Astra
LMArena WebDev: from an imageNot measured1726Only GPT-6 Astra measured
SciCodeNot measured12.3%Only GPT-6 Astra measured
Neither model has a result on the other 10 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for GLM 5.2 and GPT-6 Astra
BenchmarkGLM 5.2GPT-6 AstraLeader
AA Intelligence Index33.752.7GPT-6 Astra
Epoch Capabilities Index151.9168.8GPT-6 Astra
Agentic workLike-for-likePublic boards, shown as published, kept out of the index012
Agentic work benchmarks for GLM 5.2 and GPT-6 Astra
BenchmarkGLM 5.2GPT-6 AstraLeader
AA Agentic Index38.451.0GPT-6 Astra
Design Arena: agents building web apps12221373GPT-6 Astra
Design Arena: agents building full-stack apps12411357GPT-6 Astra
Design Arena: agents building mobile apps11591312GPT-6 Astra
Design Arena: agents building Android apps1178Not measuredOnly GLM 5.2 measured
Design Arena: agents building Godot games11421348GPT-6 Astra
Design Arena: agents building games1206Not measuredOnly GLM 5.2 measured
Design Arena: HTML slides1125Not measuredOnly GLM 5.2 measured
Design Arena: PowerPoint slides11701219GPT-6 Astra
Design Arena: spreadsheetsNot measured1365Only GPT-6 Astra measured
LiveBench researchNot measured85.2%Only GPT-6 Astra measured
LiveBench browserNot measured84.0%Only GPT-6 Astra measured
LiveBench long agenticNot measured82.4%Only GPT-6 Astra measured
SREBench (Vals AI)0.0%56.9%GPT-6 Astra
Finance Agent (Vals AI)49.7%53.5%GPT-6 Astra
Tax Agent Bench (Vals AI)Not measured20.7%Only GPT-6 Astra measured
Legal Research Bench (Vals AI)31.3%39.4%GPT-6 Astra
Harvey's Legal Agent Benchmark (Vals AI)Not measured7.1%Only GPT-6 Astra measured
Excel Modeling Benchmark (Vals AI)61.5%71.7%GPT-6 Astra
BioMysteryBench (Vals AI)Not measured79.3%Only GPT-6 Astra measured
Terminal-Bench-Science (Vals AI)Not measured62.9%Only GPT-6 Astra measured
Vals Science IndexNot measured65.1%Only GPT-6 Astra measured
Time Horizon Index (Vals AI)Not measured90.5%Only GPT-6 Astra measured
CUA-bench (Vals AI)Not measured19.2%Only GPT-6 Astra measured
Robo-bench (Vals AI)Not measured23.3%Only GPT-6 Astra measured
τ²-Bench Telecom99.1%Not measuredOnly GLM 5.2 measured
APEX-Agents45.2%64.7%GPT-6 Astra
Remote Labor IndexNot measured20.8%Only GPT-6 Astra measured
BALROGNot measured68.3%Only GPT-6 Astra measured
PostTrainBench31.7%Not measuredOnly GLM 5.2 measured
SpireClimbNot measured25.7%Only GPT-6 Astra measured
Vending-Bench 2$8,314$15,515GPT-6 Astra
Neither model has a result on the other 9 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index29
Reasoning benchmarks for GLM 5.2 and GPT-6 Astra
BenchmarkGLM 5.2GPT-6 AstraLeader
GPQA Diamond85.6%Not measuredOnly GLM 5.2 measured
LiveBench reasoningNot measured92.7%Only GPT-6 Astra measured
MysteryMechanism (Vals AI)Not measured53.1%Only GPT-6 Astra measured
GPQA Diamond (Artificial Analysis run)89.5%96.3%GPT-6 Astra
Humanity's Last Exam (Artificial Analysis run)41.1%54.7%GPT-6 Astra
GPQA Diamond (Epoch AI run)91.9%95.8%GPT-6 Astra
ARC-AGI77.0%98.5%GPT-6 Astra
ARC-AGI-222.8%95.0%GPT-6 Astra
SimpleBench58.8%Not measuredOnly GLM 5.2 measured
Chess puzzles22.0%74.0%GPT-6 Astra
Mystery game puzzles19.0%84.0%GPT-6 Astra
EBR-bench9.5%76.2%GPT-6 Astra
LMArena Text: hard prompts14811463GLM 5.2
LMArena Text: expert14871489GPT-6 Astra
LMArena Text: hard prompts in English14811464GLM 5.2
LMArena Vision: diagramsNot measured1297Only GPT-6 Astra measured
LMArena Vision: homeworkNot measured1337Only GPT-6 Astra measured
Kagi LLM Benchmark62.6%Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index24
Math benchmarks for GLM 5.2 and GPT-6 Astra
BenchmarkGLM 5.2GPT-6 AstraLeader
OTIS Mock AIME86.4%100.0%GPT-6 Astra
FrontierMath, tiers 1 to 359.2%93.7%GPT-6 Astra
FrontierMath, tier 429.3%97.6%GPT-6 Astra
ProofBench35.0%99.0%GPT-6 Astra
LMArena Text: math14831465GLM 5.2
LMArena Text: mathematical work14891484GLM 5.2
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index42
Knowledge benchmarks for GLM 5.2 and GPT-6 Astra
BenchmarkGLM 5.2GPT-6 AstraLeader
MMLU Pro86.7%Not measuredOnly GLM 5.2 measured
LegalBench (Vals AI)84.1%Not measuredOnly GLM 5.2 measured
CorpFin (Vals AI)66.1%Not measuredOnly GLM 5.2 measured
TaxEval (Vals AI)73.3%Not measuredOnly GLM 5.2 measured
MedCode (Vals AI)40.8%48.5%GPT-6 Astra
SimpleQA Verified34.2%75.6%GPT-6 Astra
LMArena Text: science14891451GLM 5.2
LMArena Text: medicine and healthcare14751425GLM 5.2
LMArena Text: legal and government14861462GLM 5.2
LMArena Text: business and finance14511439GLM 5.2
FACTS Benchmark SuiteNot measured75.7%Only GPT-6 Astra measured
Neither model has a result on the other 7 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index08
Web design benchmarks for GLM 5.2 and GPT-6 Astra
BenchmarkGLM 5.2GPT-6 AstraLeader
Design Arena: websites12851336GPT-6 Astra
Design Arena: UI components12941393GPT-6 Astra
Design Arena: game dev12681478GPT-6 Astra
Design Arena: data viz12851335GPT-6 Astra
Design Arena: 3D12871500GPT-6 Astra
Design Arena: all code categories12871379GPT-6 Astra
Design Arena: SVG12131431GPT-6 Astra
Design Arena: ASCII art11911353GPT-6 Astra
LiveBench designNot measured82.0%Only GPT-6 Astra measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index174
General benchmarks for GLM 5.2 and GPT-6 Astra
BenchmarkGLM 5.2GPT-6 AstraLeader
Vals IndexNot measured65.0%Only GPT-6 Astra measured
LiveBench data analysisNot measured83.0%Only GPT-6 Astra measured
SAGE (Vals AI)Not measured46.4%Only GPT-6 Astra measured
MedScribe (Vals AI)83.5%87.9%GPT-6 Astra
IFBench73.3%Not measuredOnly GLM 5.2 measured
Long context reasoning (AA-LCR)78.3%80.7%GPT-6 Astra
DTBench93.6%97.3%GPT-6 Astra
LMCA45.8%64.4%GPT-6 Astra
Surface Evolver Bench55.6%Not measuredOnly GLM 5.2 measured
Furniture assemblyNot measured80.0%Only GPT-6 Astra measured
LMArena Text14701441GLM 5.2
LMArena Text: instruction following14661455GLM 5.2
LMArena Text: creative writing14631420GLM 5.2
LMArena VisionNot measured1280Only GPT-6 Astra measured
LMArena Text: English14751447GLM 5.2
LMArena Text: non-English14591432GLM 5.2
LMArena Text: Chinese15221489GLM 5.2
LMArena Text: German14701459GLM 5.2
LMArena Text: Japanese14501405GLM 5.2
LMArena Text: Korean14401428GLM 5.2
LMArena Text: French14791432GLM 5.2
LMArena Text: Spanish14781422GLM 5.2
LMArena Text: Russian14681438GLM 5.2
LMArena Text: Polish14561422GLM 5.2
LMArena Text: multi-turn14691447GLM 5.2
LMArena Text: longer queries14801460GLM 5.2
LMArena Text: writing and language14631437GLM 5.2
LMArena Text: entertainment and media14501427GLM 5.2
LMArena Vision: EnglishNot measured1280Only GPT-6 Astra measured
LMArena Vision: ChineseNot measured1361Only GPT-6 Astra measured
LMArena Vision: reading textNot measured1292Only GPT-6 Astra measured
LMArena Vision: creative writingNot measured1286Only GPT-6 Astra measured
Neither model has a result on the other 14 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-6 Astra
BenchmarkGLM 5.2GPT-6 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.2$0.0036Fits in one request
GPT-6 Astra$0.035Fits in one request

GLM 5.2 costs less

Repository review

50K input + 3K output tokens

GLM 5.2$0.083Fits in one request
GPT-6 Astra$0.650Fits in one request

GLM 5.2 costs less

Agent loop

200K input + 10K output tokens

GLM 5.2$0.324Fits in one request
GPT-6 Astra$2.50Fits 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-6 Astra
SpecificationZ.ai GLM 5.2OpenAI GPT-6 Astra
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedJune 16, 2026September 4, 2026
Context window1.05M1.05M
Input $/Mtok$1.40$10.00
Output $/Mtok$4.40$50.00
Coding index61.185.1
Independent measurements behind it45
Cost per solved task$0.86Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.2 better than GPT-6 Astra for coding?

Pick GPT-6 Astra for coding: it scores 85.1 on the Vibe Coding Index against 61.1 for GLM 5.2. Pick GLM 5.2 for output tokens 11.4x cheaper ($4.40 vs $50.00 per million) and work measured by LMArena Text: software and IT or LMArena Text: hard prompts, where it leads.

Which is cheaper, GLM 5.2 or GPT-6 Astra?

GLM 5.2 costs $1.40 per million input tokens and $4.40 per million output tokens; GPT-6 Astra costs $10.00 and $50.00. Cost per solved task is known for GLM 5.2 only.

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

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

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

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