Enter opens the highlighted result. Esc closes.

GLM 5 vs GPT-6 Luna

GPT-6 Luna leads GLM 5 on coding, 57.3 to 41.7 on the Vibe Coding Index, and GPT-6 Luna costs 6.4x less per output token ($0.50 vs $3.20 per million). Updated October 22, 2026; 51 benchmarks have a result for both.

GLM 5Z.ai
Coding
41.7
Overall
54.3
Output $/M
$3.20
31
GPT-6 LunaOpenAI
Coding
57.3
Overall
59.7
Output $/M
$0.50
20
vs boards won of 51 shared

GLM 5 or GPT-6 Luna: which to pick

Pick GPT-6 Luna for coding: it scores 57.3 on the Vibe Coding Index against 41.7 for GLM 5.

Pick GLM 5 for work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.

Shared results
51
GLM 5 only
25
GPT-6 Luna only
52
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 41.7 from 3 benchmarks, GPT-6 Luna 57.3 from 5 benchmarks.
Widest category
Coding, 23.6 points apart on average over 7 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): GLM 5 23.4% against GPT-6 Luna 81.7%, 58.3 points apart on a 0 to 100 scale.
Output price
GLM 5 $3.20 against GPT-6 Luna $0.50 per million output tokens, 6.4x apart.
Context window
GLM 5 takes 205K 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 5BarsGPT-6 LunaTies
Coding25
Intelligence02
Agentic work11
Reasoning34
Math21
Knowledge40
Web design26
General171
All shared boards3120
CodingLike-for-likeSix of these boards feed the Vibe Coding Index25
Coding benchmarks for GLM 5 and GPT-6 Luna
BenchmarkGLM 5GPT-6 LunaLeader
SWE-bench Verified72.8%Not measuredOnly GLM 5 measured
SWE-bench Multilingual69.7%Not measuredOnly GLM 5 measured
LiveBench codingNot measured84.5%Only GPT-6 Luna measured
LMArena WebDev14351578GPT-6 Luna
LiveCodeBench (Vals AI)81.9%Not measuredOnly GLM 5 measured
SWE-bench Verified (Vals AI)71.4%Not measuredOnly GLM 5 measured
Terminal-Bench 4 (Vals AI)Not measured13.6%Only GPT-6 Luna measured
Vibe Code Bench (Vals AI)23.4%81.7%GPT-6 Luna
Code migration (Vals AI)Not measured42.5%Only GPT-6 Luna measured
ProgramBench (Vals AI)Not measured0.5%Only GPT-6 Luna measured
IOI (Vals AI)Not measured55.6%Only GPT-6 Luna measured
Terminal-Bench 2.1 (Vals AI)Not measured73.0%Only GPT-6 Luna measured
SWE-bench Multimodal (Vals AI)Not measured37.5%Only GPT-6 Luna measured
CyberBench (Vals AI)Not measured76.3%Only GPT-6 Luna measured
SciCodeNot measured54.6%Only GPT-6 Luna measured
Terminal-Bench Hard (Artificial Analysis run)43.2%Not measuredOnly GLM 5 measured
Terminal-Bench52.4%Not measuredOnly GLM 5 measured
FrontierCodeNot measured42.4%Only GPT-6 Luna measured
WeirdML48.2%Not measuredOnly GLM 5 measured
ALE-Bench765.61576.9GPT-6 Luna
LMArena Text: coding14611437GLM 5
LMArena Text: software and IT14601423GLM 5
LMArena WebDev: React14241573GPT-6 Luna
LMArena WebDev: HTML14501595GPT-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 and GPT-6 Luna
BenchmarkGLM 5GPT-6 LunaLeader
AA Intelligence Index27.938.1GPT-6 Luna
Epoch Capabilities Index145.8156.8GPT-6 Luna
Agentic workLike-for-likePublic boards, shown as published, kept out of the index11
Agentic work benchmarks for GLM 5 and GPT-6 Luna
BenchmarkGLM 5GPT-6 LunaLeader
Design Arena: agents building web appsNot measured1191Only GPT-6 Luna measured
Design Arena: agents building full-stack apps11231158GPT-6 Luna
Design Arena: agents building mobile apps11361134GLM 5
Design Arena: agents building Android apps1147Not measuredOnly GLM 5 measured
Design Arena: agents building Godot games1144Not measuredOnly GLM 5 measured
Design Arena: HTML slides1098Not measuredOnly GLM 5 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)Not measured2.7%Only GPT-6 Luna measured
Finance Agent (Vals AI)Not measured49.9%Only GPT-6 Luna measured
Tax Agent Bench (Vals AI)Not measured19.9%Only GPT-6 Luna measured
Legal Research Bench (Vals AI)Not measured30.3%Only GPT-6 Luna measured
Harvey's Legal Agent Benchmark (Vals AI)Not measured4.2%Only GPT-6 Luna measured
Excel Modeling Benchmark (Vals AI)Not measured68.5%Only GPT-6 Luna measured
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 Telecom98.2%Not measuredOnly GLM 5 measured
APEX-AgentsNot measured44.3%Only GPT-6 Luna measured
SpireClimbNot measured0.0%Only GPT-6 Luna measured
Vending-Bench 2$4,432Not measuredOnly GLM 5 measured
Neither model has a result on the other 19 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index34
Reasoning benchmarks for GLM 5 and GPT-6 Luna
BenchmarkGLM 5GPT-6 LunaLeader
GPQA Diamond83.3%Not measuredOnly GLM 5 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)82.0%Not measuredOnly GLM 5 measured
Humanity's Last Exam (Artificial Analysis run)29.3%38.5%GPT-6 Luna
GPQA Diamond (Epoch AI run)87.8%90.5%GPT-6 Luna
ARC-AGI44.7%86.7%GPT-6 Luna
ARC-AGI-24.9%59.3%GPT-6 Luna
SimpleBench53.2%Not measuredOnly GLM 5 measured
Chess puzzlesNot measured36.0%Only GPT-6 Luna measured
Mystery game puzzlesNot measured7.0%Only GPT-6 Luna measured
LMArena Text: hard prompts14521410GLM 5
LMArena Text: expert14541442GLM 5
LMArena Text: hard prompts in English14601410GLM 5
LMArena Vision: diagramsNot measured1245Only GPT-6 Luna measured
LMArena Vision: homeworkNot measured1261Only GPT-6 Luna measured
Kagi LLM Benchmark75.0%Not measuredOnly GLM 5 measured
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index21
Math benchmarks for GLM 5 and GPT-6 Luna
BenchmarkGLM 5GPT-6 LunaLeader
AIME91.7%Not measuredOnly GLM 5 measured
OTIS Mock AIME80.0%98.9%GPT-6 Luna
FrontierMath, tiers 1 to 3Not measured78.9%Only GPT-6 Luna measured
FrontierMath, tier 4Not measured56.1%Only GPT-6 Luna measured
ProofBenchNot measured64.0%Only GPT-6 Luna measured
LMArena Text: math14401409GLM 5
LMArena Text: mathematical work14511427GLM 5
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index40
Knowledge benchmarks for GLM 5 and GPT-6 Luna
BenchmarkGLM 5GPT-6 LunaLeader
MMLU Pro86.0%Not measuredOnly GLM 5 measured
LegalBench (Vals AI)84.1%Not measuredOnly GLM 5 measured
CaseLaw (Vals AI)52.5%Not measuredOnly GLM 5 measured
CorpFin (Vals AI)62.9%Not measuredOnly GLM 5 measured
TaxEval (Vals AI)70.0%Not measuredOnly GLM 5 measured
MedQA (Vals AI)94.3%Not measuredOnly GLM 5 measured
MedCode (Vals AI)Not measured44.7%Only GPT-6 Luna measured
SimpleQA VerifiedNot measured41.4%Only GPT-6 Luna measured
LMArena Text: science14601386GLM 5
LMArena Text: medicine and healthcare14551352GLM 5
LMArena Text: legal and government14531400GLM 5
LMArena Text: business and finance14301388GLM 5
FACTS Benchmark SuiteNot measured63.3%Only GPT-6 Luna measured
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index26
Web design benchmarks for GLM 5 and GPT-6 Luna
BenchmarkGLM 5GPT-6 LunaLeader
Design Arena: websites12471271GPT-6 Luna
Design Arena: UI components12271295GPT-6 Luna
Design Arena: game dev12341257GPT-6 Luna
Design Arena: data viz12281216GLM 5
Design Arena: 3D12281218GLM 5
Design Arena: all code categories12461270GPT-6 Luna
Design Arena: SVG11681252GPT-6 Luna
Design Arena: ASCII art11471153GPT-6 Luna
LiveBench designNot measured82.5%Only GPT-6 Luna measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index171
General benchmarks for GLM 5 and GPT-6 Luna
BenchmarkGLM 5GPT-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)Not measured83.7%Only GPT-6 Luna measured
IFBench72.3%Not measuredOnly GLM 5 measured
Long context reasoning (AA-LCR)75.7%83.3%GPT-6 Luna
DTBenchNot measured90.1%Only GPT-6 Luna measured
LMCANot measured44.5%Only GPT-6 Luna measured
CL-bench18.7%Not measuredOnly GLM 5 measured
Furniture assemblyNot measured44.2%Only GPT-6 Luna measured
LMArena Text14461389GLM 5
LMArena Text: instruction following14281408GLM 5
LMArena Text: creative writing14381363GLM 5
LMArena VisionNot measured1216Only GPT-6 Luna measured
LMArena Text: English14581393GLM 5
LMArena Text: non-English14301381GLM 5
LMArena Text: Chinese15111427GLM 5
LMArena Text: German14471376GLM 5
LMArena Text: Japanese14161369GLM 5
LMArena Text: Korean14231359GLM 5
LMArena Text: French14561408GLM 5
LMArena Text: Spanish14541391GLM 5
LMArena Text: Russian14361392GLM 5
LMArena Text: Polish14341383GLM 5
LMArena Text: multi-turn14561392GLM 5
LMArena Text: longer queries14461408GLM 5
LMArena Text: writing and language14371384GLM 5
LMArena Text: entertainment and media14261364GLM 5
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 and GPT-6 Luna
BenchmarkGLM 5GPT-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$0.0026Fits 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$0.060Fits 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$0.232Exceeds the context window
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 and GPT-6 Luna
SpecificationZ.ai GLM 5OpenAI GPT-6 Luna
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedFebruary 11, 2026September 22, 2026
Context window205K1.05M
Input $/Mtok$1.00$0.10
Output $/Mtok$3.20$0.50
Coding index41.757.3
Independent measurements behind it35
Cost per solved task$0.63Not computable
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick GPT-6 Luna for coding: it scores 57.3 on the Vibe Coding Index against 41.7 for GLM 5. Pick GLM 5 for work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.

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

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

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

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

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

51 benchmarks have a result for both models as of October 22, 2026. GLM 5'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-vs-gpt-6-luna" title="GLM 5 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-vs-gpt-6-luna">LLMBenchmark.ai, GLM 5 vs GPT-6 Luna</a></p>