Enter opens the highlighted result. Esc closes.

GLM 5.2 vs GPT-6 Luna

GLM 5.2 leads GPT-6 Luna on coding, 59.7 to 51.1 on the Vibe Coding Index, and GPT-6 Luna costs 8.8x less per output token ($0.50 vs $4.40 per million). Updated December 6, 2026; 78 benchmarks have a result for both.

GLM 5.2Z.ai
Coding
59.7
Overall
65.2
Output $/M
$4.40
50
GPT-6 LunaOpenAI
Coding
51.1
Overall
55.2
Output $/M
$0.50
27
vs boards won of 78 shared, 1 tied

GLM 5.2 or GPT-6 Luna: which to pick

Pick GLM 5.2 for coding: it scores 59.7 on the Vibe Coding Index against 51.1 for GPT-6 Luna, though on 3 benchmarks against 5.

Pick GPT-6 Luna for output tokens 8.8x cheaper ($0.50 vs $4.40 per million) and a larger context window (1.05M against 1.05M tokens).

Shared results
78
GLM 5.2 only
33
GPT-6 Luna only
40
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-6 Luna 51.1 from 5 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 $4.40 against GPT-6 Luna $0.50 per million output tokens, 8.8x 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
Coding581 tie
Intelligence01
Agentic work73
Reasoning64
Math24
Knowledge52
Web design62
General193
All shared boards50271 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index58
Coding benchmarks for GLM 5.2 and GPT-6 Luna
BenchmarkGLM 5.2GPT-6 LunaLeader
LiveBench codingNot measured70.8%Only GPT-6 Luna measured
LMArena WebDev16081578GLM 5.2
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)Not measured65.3%Only GPT-6 Luna measured
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
Terminal-Bench 4.0 (Artificial Analysis run)1.0%12.6%GPT-6 Luna
FrontierCode 2.0Not measured25.2%Only GPT-6 Luna measured
FrontierCode24.5%42.4%GPT-6 Luna
WeirdML70.1%Not measuredOnly GLM 5.2 measured
MirrorCode36.7%26.7%GLM 5.2
ALE-Bench1047.01576.9GPT-6 Luna
LMArena Text: coding14881434GLM 5.2
LMArena Text: software and IT14871422GLM 5.2
LMArena WebDev: React16211577GLM 5.2
LMArena WebDev: HTML15671590GPT-6 Luna
LMArena WebDev: from an imageNot measured1568Only GPT-6 Luna measured
SWE Atlas: Codebase QnA48.1%Not measuredOnly GLM 5.2 measured
SWE Atlas: Refactoring42.4%Not measuredOnly GLM 5.2 measured
SWE Atlas: Test Writing41.5%Not measuredOnly GLM 5.2 measured
GameBench 249.955.8GPT-6 Luna
Terminal-Bench 3.04.6%Not measuredOnly GLM 5.2 measured
Terminal-Bench 4.0Not measured16.4%Only GPT-6 Luna measured
CursorBench 4.0Not measured32.8%Only GPT-6 Luna measured
ProgramBench0.0%Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 18 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for GLM 5.2 and GPT-6 Luna
BenchmarkGLM 5.2GPT-6 LunaLeader
AA Intelligence IndexNot measured28.0Only GPT-6 Luna measured
Epoch Capabilities Index153.0156.4GPT-6 Luna
Agentic workLike-for-likePublic boards, shown as published, kept out of the index73
Agentic work benchmarks for GLM 5.2 and GPT-6 Luna
BenchmarkGLM 5.2GPT-6 LunaLeader
Design Arena: agents building web apps11841131GLM 5.2
Design Arena: agents building full-stack apps12881211GLM 5.2
Design Arena: agents building mobile apps11521114GLM 5.2
Design Arena: agents building Android apps11621160GLM 5.2
Design Arena: agents building Godot games1142Not measuredOnly GLM 5.2 measured
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: spreadsheets1123953GLM 5.2
LiveBench researchNot measured48.5%Only GPT-6 Luna measured
LiveBench browserNot measured70.3%Only GPT-6 Luna measured
LiveBench long agenticNot measured24.7%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
PostTrainBench30.4%Not measuredOnly GLM 5.2 measured
SpireClimbNot measured0.0%Only GPT-6 Luna measured
Vending-Bench 2$8,314Not measuredOnly GLM 5.2 measured
LMArena SearchNot measured1157Only GPT-6 Luna measured
MCP Atlas77.8%Not measuredOnly GLM 5.2 measured
Toolathlon-Verified59.9%Not measuredOnly GLM 5.2 measured
τ³-Banking37.1%Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 14 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index64
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
HLE-Diamond (Artificial Analysis run)17.7%22.2%GPT-6 Luna
CritPt v2, hard subset (Artificial Analysis run)Not measured42.5%Only GPT-6 Luna measured
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 prompts14811409GLM 5.2
LMArena Text: expert14881436GLM 5.2
LMArena Text: hard prompts in English14811407GLM 5.2
LMArena Vision: diagramsNot measured1236Only GPT-6 Luna measured
LMArena Vision: homeworkNot measured1260Only GPT-6 Luna measured
Kagi LLM Benchmark62.6%Not measuredOnly GLM 5.2 measured
GoBenchNot measured1119Only GPT-6 Luna measured
Neither model has a result on the other 5 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: math14851411GLM 5.2
LMArena Text: mathematical work14901425GLM 5.2
MathArena21.1%Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index52
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
AA-Omniscience0.6-8.3GLM 5.2
SimpleQA Verified34.2%41.4%GPT-6 Luna
LMArena Text: science14891387GLM 5.2
LMArena Text: medicine and healthcare14761354GLM 5.2
LMArena Text: legal and government14901392GLM 5.2
LMArena Text: business and finance14501382GLM 5.2
FACTS Benchmark SuiteNot measured64.8%Only GPT-6 Luna measured
Neither model has a result on the other 9 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: websites13231315GLM 5.2
Design Arena: UI components12711282GPT-6 Luna
Design Arena: game dev12341223GLM 5.2
Design Arena: data viz12751204GLM 5.2
Design Arena: 3D12471162GLM 5.2
Design Arena: all code categories13281310GLM 5.2
Design Arena: SVG12451291GPT-6 Luna
Design Arena: ASCII art11741139GLM 5.2
LiveBench designNot measured76.1%Only GPT-6 Luna measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index193
General benchmarks for GLM 5.2 and GPT-6 Luna
BenchmarkGLM 5.2GPT-6 LunaLeader
Vals IndexNot measured50.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 measured83.4%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
GDPval-AA13831446GPT-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 Text14701391GLM 5.2
LMArena Text: instruction following14671404GLM 5.2
LMArena Text: creative writing14601361GLM 5.2
LMArena VisionNot measured1211Only GPT-6 Luna measured
LMArena Text: English14751392GLM 5.2
LMArena Text: non-English14581382GLM 5.2
LMArena Text: Chinese15231421GLM 5.2
LMArena Text: German14671381GLM 5.2
LMArena Text: Japanese14521364GLM 5.2
LMArena Text: Korean14301348GLM 5.2
LMArena Text: French14771403GLM 5.2
LMArena Text: Spanish14801396GLM 5.2
LMArena Text: Russian14661391GLM 5.2
LMArena Text: Polish14591381GLM 5.2
LMArena Text: multi-turn14701396GLM 5.2
LMArena Text: longer queries14791404GLM 5.2
LMArena Text: writing and language14621383GLM 5.2
LMArena Text: entertainment and media14481360GLM 5.2
LMArena Vision: EnglishNot measured1208Only GPT-6 Luna measured
LMArena Vision: ChineseNot measured1266Only GPT-6 Luna measured
LMArena Vision: reading textNot measured1220Only GPT-6 Luna measured
LMArena Vision: humorNot measured1181Only GPT-6 Luna measured
LMArena Vision: creative writingNot measured1196Only GPT-6 Luna measured
EQ-Bench 41208Not measuredOnly GLM 5.2 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.0036Fits 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.083Fits 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.324Fits 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$1.40$0.10
Output $/Mtok$4.40$0.50
Coding index59.751.1
Independent measurements behind it35
Cost per solved task$0.86Not computable
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick GLM 5.2 for coding: it scores 59.7 on the Vibe Coding Index against 51.1 for GPT-6 Luna, though on 3 benchmarks against 5. Pick GPT-6 Luna for output tokens 8.8x cheaper ($0.50 vs $4.40 per million) and a larger context window (1.05M against 1.05M tokens).

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

GLM 5.2 costs $1.40 per million input tokens and $4.40 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?

78 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-6 Luna'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-luna" title="GLM 5.2 vs GPT-6 Luna, 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-luna">LLMBenchmark.ai, GLM 5.2 vs GPT-6 Luna</a></p>