Enter opens the highlighted result. Esc closes.

GLM 5.2 vs GPT-5.6 Luna

GLM 5.2 leads GPT-5.6 Luna on coding, 61.1 to 58.0 on the Vibe Coding Index, and GPT-5.6 Luna costs 3.7x less per output token ($1.20 vs $4.40 per million). Updated October 22, 2026; 84 benchmarks have a result for both.

GLM 5.2Z.ai
Coding
61.1
Overall
62.5
Output $/M
$4.40
51
GPT-5.6 LunaOpenAI
Coding
58.0
Overall
61.6
Output $/M
$1.20
33
vs boards won of 84 shared

GLM 5.2 or GPT-5.6 Luna: which to pick

Pick GLM 5.2 for coding: it scores 61.1 on the Vibe Coding Index against 58.0 for GPT-5.6 Luna, though on 4 benchmarks against 6.

Pick GPT-5.6 Luna for output tokens 3.7x cheaper ($1.20 vs $4.40 per million) and a lower cost per solved task ($0.04 against $0.86).

Shared results
84
GLM 5.2 only
14
GPT-5.6 Luna only
35
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-5.6 Luna 58.0 from 6 benchmarks.
Widest category
Math, 16.5 points apart on average over 6 shared benchmarks.
Widest single gap
ARC-AGI-2: GLM 5.2 22.8% against GPT-5.6 Luna 59.5%, 36.8 points apart on a 0 to 100 scale.
Output price
GLM 5.2 $4.40 against GPT-5.6 Luna $1.20 per million output tokens, 3.7x apart.
Context window
GLM 5.2 takes 1.05M tokens, GPT-5.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-5.6 LunaTies
Coding79
Intelligence02
Agentic work25
Reasoning76
Math24
Knowledge73
Web design80
General184
All shared boards5133
CodingLike-for-likeSix of these boards feed the Vibe Coding Index79
Coding benchmarks for GLM 5.2 and GPT-5.6 Luna
BenchmarkGLM 5.2GPT-5.6 LunaLeader
LiveBench codingNot measured73.6%Only GPT-5.6 Luna measured
LMArena WebDev16041518GLM 5.2
AA Coding Index68.871.4GPT-5.6 Luna
LiveCodeBench (Vals AI)69.5%Not measuredOnly GLM 5.2 measured
SWE-bench Verified (Vals AI)82.8%93.0%GPT-5.6 Luna
Terminal-Bench 4 (Vals AI)Not measured11.6%Only GPT-5.6 Luna measured
Vibe Code Bench (Vals AI)64.0%77.1%GPT-5.6 Luna
Code migration (Vals AI)37.9%44.5%GPT-5.6 Luna
ProgramBench (Vals AI)0.5%0.0%GLM 5.2
IOI (Vals AI)Not measured61.8%Only GPT-5.6 Luna measured
Terminal-Bench 2.1 (Vals AI)67.8%79.0%GPT-5.6 Luna
Vibe Code Bench 1-100 (Vals AI)Not measured22.6%Only GPT-5.6 Luna measured
SkillsBench (Vals AI)45.1%60.5%GPT-5.6 Luna
CyberBench (Vals AI)Not measured73.6%Only GPT-5.6 Luna measured
SciCode51.2%53.6%GPT-5.6 Luna
Terminal-Bench Hard (Artificial Analysis run)50.8%Not measuredOnly GLM 5.2 measured
FrontierCode24.5%39.8%GPT-5.6 Luna
WeirdML70.1%60.9%GLM 5.2
ALE-Bench1047.01667.4GPT-5.6 Luna
LMArena Text: coding14871466GLM 5.2
LMArena Text: software and IT14861463GLM 5.2
LMArena WebDev: React16171508GLM 5.2
LMArena WebDev: HTML15651520GLM 5.2
LMArena WebDev: from an imageNot measured1517Only GPT-5.6 Luna measured
SciCodeNot measured6.2%Only GPT-5.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-5.6 Luna
BenchmarkGLM 5.2GPT-5.6 LunaLeader
AA Intelligence Index33.737.3GPT-5.6 Luna
Epoch Capabilities Index151.9156.5GPT-5.6 Luna
Agentic workLike-for-likePublic boards, shown as published, kept out of the index25
Agentic work benchmarks for GLM 5.2 and GPT-5.6 Luna
BenchmarkGLM 5.2GPT-5.6 LunaLeader
AA Agentic Index38.442.1GPT-5.6 Luna
Design Arena: agents building web apps1222Not measuredOnly GLM 5.2 measured
Design Arena: agents building full-stack apps1241Not measuredOnly GLM 5.2 measured
Design Arena: agents building mobile apps1159Not measuredOnly GLM 5.2 measured
Design Arena: agents building Android apps1178Not 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 slides1125Not measuredOnly GLM 5.2 measured
Design Arena: PowerPoint slides1170Not measuredOnly GLM 5.2 measured
LiveBench researchNot measured51.0%Only GPT-5.6 Luna measured
LiveBench browserNot measured68.0%Only GPT-5.6 Luna measured
LiveBench long agenticNot measured30.4%Only GPT-5.6 Luna measured
SREBench (Vals AI)0.0%1.5%GPT-5.6 Luna
Finance Agent (Vals AI)49.7%55.0%GPT-5.6 Luna
Tax Agent Bench (Vals AI)Not measured24.8%Only GPT-5.6 Luna measured
Legal Research Bench (Vals AI)31.3%36.5%GPT-5.6 Luna
Excel Modeling Benchmark (Vals AI)61.5%67.1%GPT-5.6 Luna
BioMysteryBench (Vals AI)Not measured61.5%Only GPT-5.6 Luna measured
Terminal-Bench-Science (Vals AI)Not measured0.0%Only GPT-5.6 Luna measured
Vals Science IndexNot measured25.3%Only GPT-5.6 Luna measured
τ²-Bench Telecom99.1%Not measuredOnly GLM 5.2 measured
APEX-Agents45.2%43.0%GLM 5.2
BALROGNot measured45.6%Only GPT-5.6 Luna measured
PostTrainBench31.7%Not measuredOnly GLM 5.2 measured
Vending-Bench 2$8,314$4,095GLM 5.2
Neither model has a result on the other 16 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index76
Reasoning benchmarks for GLM 5.2 and GPT-5.6 Luna
BenchmarkGLM 5.2GPT-5.6 LunaLeader
GPQA Diamond85.6%91.7%GPT-5.6 Luna
LiveBench reasoningNot measured85.6%Only GPT-5.6 Luna measured
MysteryMechanism (Vals AI)Not measured14.4%Only GPT-5.6 Luna measured
MMMU Pro (Vals AI)Not measured85.0%Only GPT-5.6 Luna measured
GPQA Diamond (Artificial Analysis run)89.5%91.1%GPT-5.6 Luna
Humanity's Last Exam (Artificial Analysis run)41.1%39.5%GLM 5.2
GPQA Diamond (Epoch AI run)91.9%91.6%GLM 5.2
ARC-AGI77.0%88.0%GPT-5.6 Luna
ARC-AGI-222.8%59.5%GPT-5.6 Luna
SimpleBench58.8%46.8%GLM 5.2
Chess puzzles22.0%43.0%GPT-5.6 Luna
Mystery game puzzles19.0%21.0%GPT-5.6 Luna
EBR-bench9.5%Not measuredOnly GLM 5.2 measured
LMArena Text: hard prompts14811451GLM 5.2
LMArena Text: expert14871478GLM 5.2
LMArena Text: hard prompts in English14811460GLM 5.2
LMArena Vision: diagramsNot measured1273Only GPT-5.6 Luna measured
LMArena Vision: homeworkNot measured1282Only GPT-5.6 Luna measured
Kagi LLM Benchmark62.6%49.1%GLM 5.2
Neither model has a result on the other 3 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index24
Math benchmarks for GLM 5.2 and GPT-5.6 Luna
BenchmarkGLM 5.2GPT-5.6 LunaLeader
OTIS Mock AIME86.4%98.3%GPT-5.6 Luna
FrontierMath, tiers 1 to 359.2%82.1%GPT-5.6 Luna
FrontierMath, tier 429.3%61.0%GPT-5.6 Luna
ProofBench35.0%60.0%GPT-5.6 Luna
LMArena Text: math14831459GLM 5.2
LMArena Text: mathematical work14891470GLM 5.2
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index73
Knowledge benchmarks for GLM 5.2 and GPT-5.6 Luna
BenchmarkGLM 5.2GPT-5.6 LunaLeader
MMLU Pro86.7%86.0%GLM 5.2
LegalBench (Vals AI)84.1%84.0%GLM 5.2
CorpFin (Vals AI)66.1%64.2%GLM 5.2
TaxEval (Vals AI)73.3%76.2%GPT-5.6 Luna
MortgageTax (Vals AI)Not measured67.3%Only GPT-5.6 Luna measured
MedCode (Vals AI)40.8%42.4%GPT-5.6 Luna
SimpleQA Verified34.2%41.0%GPT-5.6 Luna
LMArena Text: science14891433GLM 5.2
LMArena Text: medicine and healthcare14751399GLM 5.2
LMArena Text: legal and government14861446GLM 5.2
LMArena Text: business and finance14511439GLM 5.2
FACTS Benchmark SuiteNot measured35.0%Only GPT-5.6 Luna measured
Neither model has a result on the other 6 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index80
Web design benchmarks for GLM 5.2 and GPT-5.6 Luna
BenchmarkGLM 5.2GPT-5.6 LunaLeader
Design Arena: websites12851255GLM 5.2
Design Arena: UI components12941248GLM 5.2
Design Arena: game dev12681194GLM 5.2
Design Arena: data viz12851211GLM 5.2
Design Arena: 3D12871121GLM 5.2
Design Arena: all code categories12871231GLM 5.2
Design Arena: SVG12131194GLM 5.2
Design Arena: ASCII art11911142GLM 5.2
LiveBench designNot measured76.0%Only GPT-5.6 Luna measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index184
General benchmarks for GLM 5.2 and GPT-5.6 Luna
BenchmarkGLM 5.2GPT-5.6 LunaLeader
LiveBench data analysisNot measured78.0%Only GPT-5.6 Luna measured
Public Benefits Bench (Vals AI)Not measured61.2%Only GPT-5.6 Luna measured
SAGE (Vals AI)Not measured44.2%Only GPT-5.6 Luna measured
MedScribe (Vals AI)83.5%84.4%GPT-5.6 Luna
Vals Multimodal IndexNot measured69.1%Only GPT-5.6 Luna measured
IFBench73.3%Not measuredOnly GLM 5.2 measured
Long context reasoning (AA-LCR)78.3%83.7%GPT-5.6 Luna
DTBench93.6%89.1%GLM 5.2
LMCA45.8%48.5%GPT-5.6 Luna
Surface Evolver Bench55.6%61.9%GPT-5.6 Luna
Furniture assemblyNot measured42.5%Only GPT-5.6 Luna measured
LMArena Text14701431GLM 5.2
LMArena Text: instruction following14661437GLM 5.2
LMArena Text: creative writing14631396GLM 5.2
LMArena VisionNot measured1257Only GPT-5.6 Luna measured
LMArena Text: English14751441GLM 5.2
LMArena Text: non-English14591417GLM 5.2
LMArena Text: Chinese15221470GLM 5.2
LMArena Text: German14701455GLM 5.2
LMArena Text: Japanese14501415GLM 5.2
LMArena Text: Korean14401415GLM 5.2
LMArena Text: French14791458GLM 5.2
LMArena Text: Spanish14781446GLM 5.2
LMArena Text: Russian14681427GLM 5.2
LMArena Text: Polish14561405GLM 5.2
LMArena Text: multi-turn14691434GLM 5.2
LMArena Text: longer queries14801436GLM 5.2
LMArena Text: writing and language14631419GLM 5.2
LMArena Text: entertainment and media14501402GLM 5.2
LMArena Vision: EnglishNot measured1263Only GPT-5.6 Luna measured
LMArena Vision: ChineseNot measured1294Only GPT-5.6 Luna measured
LMArena Vision: reading textNot measured1264Only GPT-5.6 Luna measured
LMArena Vision: humorNot measured1190Only GPT-5.6 Luna measured
LMArena Vision: creative writingNot measured1257Only GPT-5.6 Luna measured
LMArena DocumentNot measured1457Only GPT-5.6 Luna measured
Neither model has a result on the other 11 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-5.6 Luna
BenchmarkGLM 5.2GPT-5.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-5.6 Luna$0.0008Fits in one request

GPT-5.6 Luna costs less

Repository review

50K input + 3K output tokens

GLM 5.2$0.083Fits in one request
GPT-5.6 Luna$0.014Fits in one request

GPT-5.6 Luna costs less

Agent loop

200K input + 10K output tokens

GLM 5.2$0.324Fits in one request
GPT-5.6 Luna$0.052Fits in one request

GPT-5.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-5.6 Luna
SpecificationZ.ai GLM 5.2OpenAI GPT-5.6 Luna
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedJune 16, 2026July 9, 2026
Context window1.05M1.05M
Input $/Mtok$1.40$0.20
Output $/Mtok$4.40$1.20
Coding index61.158.0
Independent measurements behind it46
Cost per solved task$0.86$0.04
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick GLM 5.2 for coding: it scores 61.1 on the Vibe Coding Index against 58.0 for GPT-5.6 Luna, though on 4 benchmarks against 6. Pick GPT-5.6 Luna for output tokens 3.7x cheaper ($1.20 vs $4.40 per million) and a lower cost per solved task ($0.04 against $0.86).

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

GLM 5.2 costs $1.40 per million input tokens and $4.40 per million output tokens; GPT-5.6 Luna costs $0.20 and $1.20. Per solved SWE-bench Verified task, GLM 5.2 costs $0.86 and GPT-5.6 Luna $0.04.

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

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

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

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