LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

GLM 5.2 vs GPT-6 Luna

Updated October 21, 2026. 72 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

GLM 5.2Z.ai
Coding
57.7
Overall
33.7
Output $/M
$7.00
46
GPT-6 LunaOpenAI
Coding
71.4
Overall
38.1
Output $/M
$0.50
25
vs boards won of 72 shared, 1 tied

Decision reading

Pick GPT-6 Luna for coding: it scores 71.4 on the Vibe Coding Index against 57.7 for GLM 5.2.

Pick GLM 5.2 when what matters is LMArena WebDev or LMArena Text: coding, where it leads.

Shared results
72
GLM 5.2 only
25
GPT-6 Luna only
30
Like-for-like categories
8 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

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 57.7 from 1 benchmark, GPT-6 Luna 71.4 from 2 benchmarks.
Widest category
Math, 18.5 points apart on average over 6 shared benchmarks.
Widest single gap
ARC-AGI-2: GLM 5.2 22.8% against GPT-6 Luna 59.3%, 36.5 points apart on a 0 to 100 scale.
Output price
GLM 5.2 $7.00 against GPT-6 Luna $0.50 per million output tokens, 14.0x apart.
Context window
GLM 5.2 takes 1.05M tokens, GPT-6 Luna 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 LunaTies
Coding471 tie
Intelligence02
Agentic work53
Reasoning63
Math24
Knowledge42
Web design62
General192
All shared boards46251 tie
CodingLike-for-likeFour of these boards feed the Vibe Coding Index47
Coding benchmarks for GLM 5.2 and GPT-6 Luna
BenchmarkGLM 5.2GPT-6 LunaLeader
LiveBench codingNot measured84.5%Only GPT-6 Luna measured
LMArena WebDev16041578GLM 5.2
AA Coding Index68.8Not measuredOnly GLM 5.2 measured
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 measured13.6%Only GPT-6 Luna measured
Vibe Code Bench (Vals AI)64.0%81.7%GPT-6 Luna
Code migration (Vals AI)37.9%42.5%GPT-6 Luna
ProgramBench (Vals AI)0.5%0.5%Tie
IOI (Vals AI)Not measured55.6%Only GPT-6 Luna measured
Terminal-Bench 2.1 (Vals AI)67.8%73.0%GPT-6 Luna
SWE-bench Multimodal (Vals AI)Not measured37.5%Only GPT-6 Luna measured
SkillsBench (Vals AI)45.1%Not measuredOnly GLM 5.2 measured
CyberBench (Vals AI)Not measured76.3%Only GPT-6 Luna measured
SciCode51.2%54.6%GPT-6 Luna
Terminal-Bench Hard (Artificial Analysis run)50.8%Not measuredOnly GLM 5.2 measured
FrontierCode24.5%42.4%GPT-6 Luna
WeirdML70.1%Not measuredOnly GLM 5.2 measured
ALE-Bench1047.01576.9GPT-6 Luna
LMArena Text: coding14871437GLM 5.2
LMArena Text: software and IT14861423GLM 5.2
LMArena WebDev: React16171573GLM 5.2
LMArena WebDev: HTML15651595GPT-6 Luna
LMArena WebDev: from an imageNot measured1571Only GPT-6 Luna measured
Neither model has a result on the other 14 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for GLM 5.2 and GPT-6 Luna
BenchmarkGLM 5.2GPT-6 LunaLeader
AA Intelligence Index33.738.1GPT-6 Luna
Epoch Capabilities Index151.9156.8GPT-6 Luna
Agentic workLike-for-likePublic boards, shown as published, kept out of the index53
Agentic work benchmarks for GLM 5.2 and GPT-6 Luna
BenchmarkGLM 5.2GPT-6 LunaLeader
AA Agentic Index38.4Not measuredOnly GLM 5.2 measured
Design Arena: agents building web apps12221189GLM 5.2
Design Arena: agents building full-stack apps12411158GLM 5.2
Design Arena: agents building mobile apps11601133GLM 5.2
Design Arena: agents building Android apps1184Not measuredOnly GLM 5.2 measured
Design Arena: agents building Godot games1142Not measuredOnly GLM 5.2 measured
Design Arena: agents building games1206Not measuredOnly GLM 5.2 measured
Design Arena: HTML slides1175Not measuredOnly GLM 5.2 measured
Design Arena: PowerPoint slides1195Not measuredOnly GLM 5.2 measured
LiveBench researchNot measured43.5%Only GPT-6 Luna measured
LiveBench browserNot measured72.0%Only GPT-6 Luna measured
LiveBench long agenticNot measured48.1%Only GPT-6 Luna measured
SREBench (Vals AI)0.0%2.7%GPT-6 Luna
Finance Agent (Vals AI)49.7%49.9%GPT-6 Luna
Tax Agent Bench (Vals AI)Not measured19.9%Only GPT-6 Luna measured
Legal Research Bench (Vals AI)31.3%30.3%GLM 5.2
Harvey's Legal Agent Benchmark (Vals AI)Not measured4.2%Only GPT-6 Luna measured
Excel Modeling Benchmark (Vals AI)61.5%68.5%GPT-6 Luna
BioMysteryBench (Vals AI)Not measured61.5%Only GPT-6 Luna measured
Terminal-Bench-Science (Vals AI)Not measured4.3%Only GPT-6 Luna measured
Vals Science IndexNot measured28.4%Only GPT-6 Luna measured
τ²-Bench Telecom99.1%Not measuredOnly GLM 5.2 measured
APEX-Agents45.2%44.3%GLM 5.2
PostTrainBench31.7%Not measuredOnly GLM 5.2 measured
SpireClimbNot measured0.0%Only GPT-6 Luna measured
Vending-Bench 2$8,314Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 13 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index63
Reasoning benchmarks for GLM 5.2 and GPT-6 Luna
BenchmarkGLM 5.2GPT-6 LunaLeader
GPQA Diamond85.6%Not measuredOnly GLM 5.2 measured
LiveBench reasoningNot measured81.8%Only GPT-6 Luna measured
MysteryMechanism (Vals AI)Not measured19.4%Only GPT-6 Luna measured
GPQA Diamond (Artificial Analysis run)89.5%Not measuredOnly GLM 5.2 measured
Humanity's Last Exam (Artificial Analysis run)41.1%38.5%GLM 5.2
GPQA Diamond (Epoch AI run)91.9%90.5%GLM 5.2
ARC-AGI77.0%86.7%GPT-6 Luna
ARC-AGI-222.8%59.3%GPT-6 Luna
SimpleBench58.8%Not measuredOnly GLM 5.2 measured
Chess puzzles22.0%36.0%GPT-6 Luna
Mystery game puzzles19.0%7.0%GLM 5.2
EBR-bench9.5%Not measuredOnly GLM 5.2 measured
LMArena Text: hard prompts14811410GLM 5.2
LMArena Text: expert14871442GLM 5.2
LMArena Text: hard prompts in English14811410GLM 5.2
LMArena Vision: diagramsNot measured1245Only GPT-6 Luna measured
LMArena Vision: homeworkNot measured1261Only GPT-6 Luna 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 Luna
BenchmarkGLM 5.2GPT-6 LunaLeader
OTIS Mock AIME86.4%98.9%GPT-6 Luna
FrontierMath, tiers 1 to 359.2%78.9%GPT-6 Luna
FrontierMath, tier 429.3%56.1%GPT-6 Luna
ProofBench35.0%64.0%GPT-6 Luna
LMArena Text: math14831409GLM 5.2
LMArena Text: mathematical work14891427GLM 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 Luna
BenchmarkGLM 5.2GPT-6 LunaLeader
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%44.7%GPT-6 Luna
SimpleQA Verified34.2%41.4%GPT-6 Luna
LMArena Text: science14891386GLM 5.2
LMArena Text: medicine and healthcare14751352GLM 5.2
LMArena Text: legal and government14861400GLM 5.2
LMArena Text: business and finance14511388GLM 5.2
Neither model has a result on the other 7 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index62
Web design benchmarks for GLM 5.2 and GPT-6 Luna
BenchmarkGLM 5.2GPT-6 LunaLeader
Design Arena: websites12851272GLM 5.2
Design Arena: UI components12961297GPT-6 Luna
Design Arena: game dev12681259GLM 5.2
Design Arena: data viz12851215GLM 5.2
Design Arena: 3D12881217GLM 5.2
Design Arena: all code categories12881271GLM 5.2
Design Arena: SVG12141253GPT-6 Luna
Design Arena: ASCII art11901156GLM 5.2
LiveBench designNot measured82.5%Only GPT-6 Luna measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index192
General benchmarks for GLM 5.2 and GPT-6 Luna
BenchmarkGLM 5.2GPT-6 LunaLeader
Vals IndexNot measured52.3%Only GPT-6 Luna measured
LiveBench data analysisNot measured73.4%Only GPT-6 Luna measured
Public Benefits Bench (Vals AI)Not measured57.6%Only GPT-6 Luna measured
SAGE (Vals AI)Not measured48.1%Only GPT-6 Luna measured
MedScribe (Vals AI)83.5%83.7%GPT-6 Luna
IFBench73.3%Not measuredOnly GLM 5.2 measured
Long context reasoning (AA-LCR)78.3%83.3%GPT-6 Luna
DTBench93.6%90.1%GLM 5.2
LMCA45.8%44.5%GLM 5.2
Surface Evolver Bench55.6%Not measuredOnly GLM 5.2 measured
Furniture assemblyNot measured44.2%Only GPT-6 Luna measured
LMArena Text14701389GLM 5.2
LMArena Text: instruction following14661408GLM 5.2
LMArena Text: creative writing14631363GLM 5.2
LMArena VisionNot measured1216Only GPT-6 Luna measured
LMArena Text: English14751393GLM 5.2
LMArena Text: non-English14591381GLM 5.2
LMArena Text: Chinese15221427GLM 5.2
LMArena Text: German14701376GLM 5.2
LMArena Text: Japanese14501369GLM 5.2
LMArena Text: Korean14401359GLM 5.2
LMArena Text: French14791408GLM 5.2
LMArena Text: Spanish14781391GLM 5.2
LMArena Text: Russian14681392GLM 5.2
LMArena Text: Polish14561383GLM 5.2
LMArena Text: multi-turn14691392GLM 5.2
LMArena Text: longer queries14801408GLM 5.2
LMArena Text: writing and language14631384GLM 5.2
LMArena Text: entertainment and media14501364GLM 5.2
LMArena Vision: EnglishNot measured1204Only GPT-6 Luna measured
LMArena Vision: ChineseNot measured1266Only GPT-6 Luna measured
LMArena Vision: reading textNot measured1225Only GPT-6 Luna measured
LMArena Vision: creative writingNot measured1205Only GPT-6 Luna 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 5.2 and GPT-6 Luna
BenchmarkGLM 5.2GPT-6 LunaLeader
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.0035Fits in one request
GPT-6 Luna$0.0003Fits in one request

GPT-6 Luna costs less

Repository review

50K input + 3K output tokens

GLM 5.2$0.023Fits in one request
GPT-6 Luna$0.0065Fits in one request

GPT-6 Luna costs less

Agent loop

200K input + 10K output tokens

GLM 5.2$0.077Fits in one request
GPT-6 Luna$0.025Fits in one request

GPT-6 Luna 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 Luna
SpecificationZ.ai GLM 5.2OpenAI GPT-6 Luna
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedJune 16, 2026September 22, 2026
Context window1.05M1.05M
Input $/Mtok$0.0341$0.10
Output $/Mtok$7.00$0.50
Coding index57.771.4
Independent measurements behind it12
Cost per solved task$0.86Not computable
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick GPT-6 Luna for coding: it scores 71.4 on the Vibe Coding Index against 57.7 for GLM 5.2. Pick GLM 5.2 when what matters is LMArena WebDev or LMArena Text: coding, where it leads.

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

GLM 5.2 costs $0.0341 per million input tokens and $7.00 per million output tokens; GPT-6 Luna costs $0.10 and $0.50. Cost per solved task is known for GLM 5.2 only.

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

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

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

72 benchmarks have a result for both models as of October 21, 2026. GLM 5.2's coding index rests on 1 independent benchmark and GPT-6 Luna's on 2. Where only one model has a result, the page says so instead of naming a winner.

Compare next