LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

GLM 5.1 vs GPT-6 Luna

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

GLM 5.1Z.ai
Coding
44.0
Overall
26.1
Output $/M
$4.40
35
GPT-6 LunaOpenAI
Coding
71.4
Overall
38.1
Output $/M
$0.50
29
vs boards won of 64 shared

Decision reading

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

Pick GLM 5.1 when what matters is LMArena Text: coding or LMArena Text: software and IT, where it leads.

Shared results
64
GLM 5.1 only
25
GPT-6 Luna only
38
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.1 44.0 from 1 benchmark, GPT-6 Luna 71.4 from 2 benchmarks.
Widest category
Math, 21.5 points apart on average over 5 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): GLM 5.1 31.5% against GPT-6 Luna 81.7%, 50.2 points apart on a 0 to 100 scale.
Output price
GLM 5.1 $4.40 against GPT-6 Luna $0.50 per million output tokens, 8.8x apart.
Context window
GLM 5.1 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 5.1BarsGPT-6 LunaTies
Coding29
Intelligence02
Agentic work24
Reasoning33
Math23
Knowledge42
Web design44
General182
All shared boards3529
CodingLike-for-likeFour of these boards feed the Vibe Coding Index29
Coding benchmarks for GLM 5.1 and GPT-6 Luna
BenchmarkGLM 5.1GPT-6 LunaLeader
LiveBench codingNot measured84.5%Only GPT-6 Luna measured
LMArena WebDev15081578GPT-6 Luna
AA Coding Index55.8Not measuredOnly GLM 5.1 measured
LiveCodeBench (Vals AI)81.4%Not measuredOnly GLM 5.1 measured
SWE-bench Verified (Vals AI)76.4%Not measuredOnly GLM 5.1 measured
Terminal-Bench 4 (Vals AI)Not measured13.6%Only GPT-6 Luna measured
Vibe Code Bench (Vals AI)31.5%81.7%GPT-6 Luna
Code migration (Vals AI)25.8%42.5%GPT-6 Luna
ProgramBench (Vals AI)0.0%0.5%GPT-6 Luna
IOI (Vals AI)Not measured55.6%Only GPT-6 Luna measured
Terminal-Bench 2.1 (Vals AI)56.9%73.0%GPT-6 Luna
SWE-bench Multimodal (Vals AI)Not measured37.5%Only GPT-6 Luna measured
CyberBench (Vals AI)Not measured76.3%Only GPT-6 Luna measured
SciCode44.8%54.6%GPT-6 Luna
Terminal-Bench Hard (Artificial Analysis run)43.2%Not measuredOnly GLM 5.1 measured
FrontierCodeNot measured42.4%Only GPT-6 Luna measured
WeirdML57.1%Not measuredOnly GLM 5.1 measured
ALE-Bench887.11576.9GPT-6 Luna
LMArena Text: coding14851437GLM 5.1
LMArena Text: software and IT14841423GLM 5.1
LMArena WebDev: React15051573GPT-6 Luna
LMArena WebDev: HTML15081595GPT-6 Luna
LMArena WebDev: from an imageNot measured1571Only GPT-6 Luna measured
Neither model has a result on the other 15 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for GLM 5.1 and GPT-6 Luna
BenchmarkGLM 5.1GPT-6 LunaLeader
AA Intelligence Index26.138.1GPT-6 Luna
Epoch Capabilities Index149.8156.8GPT-6 Luna
Agentic workLike-for-likePublic boards, shown as published, kept out of the index24
Agentic work benchmarks for GLM 5.1 and GPT-6 Luna
BenchmarkGLM 5.1GPT-6 LunaLeader
AA Agentic Index23.9Not measuredOnly GLM 5.1 measured
Design Arena: agents building web apps11751189GPT-6 Luna
Design Arena: agents building full-stack apps11671158GLM 5.1
Design Arena: agents building mobile apps11621133GLM 5.1
Design Arena: agents building Android apps1186Not measuredOnly GLM 5.1 measured
Design Arena: agents building Godot games1053Not measuredOnly GLM 5.1 measured
Design Arena: agents building games1164Not measuredOnly GLM 5.1 measured
Design Arena: HTML slides1170Not measuredOnly GLM 5.1 measured
Design Arena: PowerPoint slides1189Not measuredOnly GLM 5.1 measured
Design Arena: spreadsheets1315Not measuredOnly GLM 5.1 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)44.8%49.9%GPT-6 Luna
Tax Agent Bench (Vals AI)Not measured19.9%Only GPT-6 Luna measured
Legal Research Bench (Vals AI)27.9%30.3%GPT-6 Luna
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 Telecom97.7%Not measuredOnly GLM 5.1 measured
APEX-Agents40.9%44.3%GPT-6 Luna
SpireClimbNot measured0.0%Only GPT-6 Luna measured
Vending-Bench 2$5,634Not measuredOnly GLM 5.1 measured
Neither model has a result on the other 13 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index33
Reasoning benchmarks for GLM 5.1 and GPT-6 Luna
BenchmarkGLM 5.1GPT-6 LunaLeader
GPQA Diamond84.5%Not measuredOnly GLM 5.1 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)86.8%Not measuredOnly GLM 5.1 measured
Humanity's Last Exam (Artificial Analysis run)30.1%38.5%GPT-6 Luna
GPQA Diamond (Epoch AI run)89.9%90.5%GPT-6 Luna
ARC-AGINot measured86.7%Only GPT-6 Luna measured
ARC-AGI-2Not measured59.3%Only GPT-6 Luna measured
SimpleBench55.1%Not measuredOnly GLM 5.1 measured
Chess puzzles20.0%36.0%GPT-6 Luna
Mystery game puzzlesNot measured7.0%Only GPT-6 Luna measured
LMArena Text: hard prompts14731410GLM 5.1
LMArena Text: expert14781442GLM 5.1
LMArena Text: hard prompts in English14821410GLM 5.1
LMArena Vision: diagramsNot measured1245Only GPT-6 Luna measured
LMArena Vision: homeworkNot measured1261Only 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 index23
Math benchmarks for GLM 5.1 and GPT-6 Luna
BenchmarkGLM 5.1GPT-6 LunaLeader
AIME91.9%Not measuredOnly GLM 5.1 measured
OTIS Mock AIME93.3%98.9%GPT-6 Luna
FrontierMath, tiers 1 to 336.8%78.9%GPT-6 Luna
FrontierMath, tier 4Not measured56.1%Only GPT-6 Luna measured
ProofBench22.2%64.0%GPT-6 Luna
LMArena Text: math14731409GLM 5.1
LMArena Text: mathematical work14701427GLM 5.1
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index42
Knowledge benchmarks for GLM 5.1 and GPT-6 Luna
BenchmarkGLM 5.1GPT-6 LunaLeader
MMLU Pro86.9%Not measuredOnly GLM 5.1 measured
LegalBench (Vals AI)84.4%Not measuredOnly GLM 5.1 measured
CaseLaw (Vals AI)51.5%Not measuredOnly GLM 5.1 measured
CorpFin (Vals AI)64.5%Not measuredOnly GLM 5.1 measured
TaxEval (Vals AI)71.2%Not measuredOnly GLM 5.1 measured
MedCode (Vals AI)41.6%44.7%GPT-6 Luna
SimpleQA Verified34.0%41.4%GPT-6 Luna
LMArena Text: science14781386GLM 5.1
LMArena Text: medicine and healthcare14741352GLM 5.1
LMArena Text: legal and government14651400GLM 5.1
LMArena Text: business and finance14521388GLM 5.1
Neither model has a result on the other 6 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index44
Web design benchmarks for GLM 5.1 and GPT-6 Luna
BenchmarkGLM 5.1GPT-6 LunaLeader
Design Arena: websites12901272GLM 5.1
Design Arena: UI components12921297GPT-6 Luna
Design Arena: game dev12651259GLM 5.1
Design Arena: data viz13661215GLM 5.1
Design Arena: 3D13361217GLM 5.1
Design Arena: all code categories12681271GPT-6 Luna
Design Arena: SVG12171253GPT-6 Luna
Design Arena: ASCII art11421156GPT-6 Luna
LiveBench designNot measured82.5%Only GPT-6 Luna measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index182
General benchmarks for GLM 5.1 and GPT-6 Luna
BenchmarkGLM 5.1GPT-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)61.8%57.6%GLM 5.1
SAGE (Vals AI)Not measured48.1%Only GPT-6 Luna measured
MedScribe (Vals AI)72.3%83.7%GPT-6 Luna
IFBench76.3%Not measuredOnly GLM 5.1 measured
Long context reasoning (AA-LCR)73.7%83.3%GPT-6 Luna
DTBenchNot measured90.1%Only GPT-6 Luna measured
LMCANot measured44.5%Only GPT-6 Luna measured
Furniture assemblyNot measured44.2%Only GPT-6 Luna measured
ExploitBench18.1%Not measuredOnly GLM 5.1 measured
LMArena Text14631389GLM 5.1
LMArena Text: instruction following14531408GLM 5.1
LMArena Text: creative writing14531363GLM 5.1
LMArena VisionNot measured1216Only GPT-6 Luna measured
LMArena Text: English14761393GLM 5.1
LMArena Text: non-English14481381GLM 5.1
LMArena Text: Chinese15151427GLM 5.1
LMArena Text: German14671376GLM 5.1
LMArena Text: Japanese14351369GLM 5.1
LMArena Text: Korean14241359GLM 5.1
LMArena Text: French14701408GLM 5.1
LMArena Text: Spanish14681391GLM 5.1
LMArena Text: Russian14541392GLM 5.1
LMArena Text: Polish14491383GLM 5.1
LMArena Text: multi-turn14731392GLM 5.1
LMArena Text: longer queries14671408GLM 5.1
LMArena Text: writing and language14541384GLM 5.1
LMArena Text: entertainment and media14421364GLM 5.1
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.1 and GPT-6 Luna
BenchmarkGLM 5.1GPT-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.1$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.1$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.1$0.324Exceeds 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.1 and GPT-6 Luna
SpecificationZ.ai GLM 5.1OpenAI GPT-6 Luna
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedApril 7, 2026September 22, 2026
Context window205K1.05M
Input $/Mtok$1.40$0.10
Output $/Mtok$4.40$0.50
Coding index44.071.4
Independent measurements behind it12
Cost per solved task$0.60Not computable
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick GPT-6 Luna for coding: it scores 71.4 on the Vibe Coding Index against 44.0 for GLM 5.1. Pick GLM 5.1 when what matters is LMArena Text: coding or LMArena Text: software and IT, where it leads.

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

GLM 5.1 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.1 only.

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

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

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

64 benchmarks have a result for both models as of October 21, 2026. GLM 5.1'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