LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

GLM 5 vs GPT-5

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

GLM 5Z.ai
Coding
59.7
Overall
27.9
Output $/M
$3.20
46
GPT-5OpenAI
Coding
72.2
Overall
23.0
Output $/M
$10.00
20
vs boards won of 66 shared

Decision reading

Pick GPT-5 for coding: it scores 72.2 on the Vibe Coding Index against 59.7 for GLM 5.

Pick GLM 5 when output tokens cost 3.1x less, or when what matters is LMArena WebDev or SWE-bench Verified (Vals AI), where it leads.

Shared results
66
GLM 5 only
9
GPT-5 only
43
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 59.7 from 2 benchmarks, GPT-5 72.2 from 3 benchmarks.
Widest category
Agentic work, 11.7 points apart on average over 1 shared benchmark.
Widest single gap
Design Arena: 3D: GLM 5 1229 against GPT-5 1056, 21.6 points apart on a 0 to 100 scale.
Output price
GLM 5 $3.20 against GPT-5 $10.00 per million output tokens, 3.1x apart.
Context window
GLM 5 takes 205K tokens, GPT-5 400K.

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-5Ties
Coding84
Intelligence11
Agentic work10
Reasoning55
Math22
Knowledge55
Web design71
General172
All shared boards4620
CodingLike-for-likeFour of these boards feed the Vibe Coding Index84
Coding benchmarks for GLM 5 and GPT-5
BenchmarkGLM 5GPT-5Leader
Aider polyglotNot measured88.0%Only GPT-5 measured
SWE-bench Verified72.8%74.4%GPT-5
SWE-bench Multilingual69.7%Not measuredOnly GLM 5 measured
LMArena WebDev14351418GLM 5
AA Coding IndexNot measured37.8Only GPT-5 measured
LiveCodeBench (Vals AI)81.9%85.9%GPT-5
SWE-bench Verified (Vals AI)71.4%69.0%GLM 5
Vibe Code Bench (Vals AI)23.4%20.1%GLM 5
LiveCodeBench (Artificial Analysis run)Not measured84.6%Only GPT-5 measured
Terminal-Bench Hard (Artificial Analysis run)43.2%37.9%GLM 5
Terminal-Bench52.4%49.6%GLM 5
GSO-BenchNot measured6.9%Only GPT-5 measured
WeirdML48.2%60.7%GPT-5
ALE-Bench765.6807.6GPT-5
LMArena Text: coding14611436GLM 5
LMArena Text: software and IT14601420GLM 5
LMArena WebDev: React1424Not measuredOnly GLM 5 measured
LMArena WebDev: HTML14501427GLM 5
Neither model has a result on the other 20 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
Intelligence benchmarks for GLM 5 and GPT-5
BenchmarkGLM 5GPT-5Leader
AA Intelligence Index27.923.0GLM 5
Epoch Capabilities Index145.8150.0GPT-5
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GLM 5 and GPT-5
BenchmarkGLM 5GPT-5Leader
Design Arena: agents building full-stack apps1123Not measuredOnly GLM 5 measured
Design Arena: agents building mobile apps1136Not measuredOnly GLM 5 measured
Design Arena: agents building Android apps1152Not measuredOnly GLM 5 measured
Design Arena: agents building Godot games1144Not measuredOnly GLM 5 measured
Design Arena: HTML slides1148Not measuredOnly GLM 5 measured
τ²-Bench Telecom98.2%86.5%GLM 5
METR time horizonsNot measured69.6%Only GPT-5 measured
Remote Labor IndexNot measured1.7%Only GPT-5 measured
GDPvalNot measured34.8%Only GPT-5 measured
BALROGNot measured32.8%Only GPT-5 measured
DeepResearch BenchNot measured49.6%Only GPT-5 measured
Vending-Bench 2$4,432Not measuredOnly GLM 5 measured
Neither model has a result on the other 27 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index55
Reasoning benchmarks for GLM 5 and GPT-5
BenchmarkGLM 5GPT-5Leader
GPQA Diamond83.3%85.6%GPT-5
MMMU Pro (Vals AI)Not measured81.5%Only GPT-5 measured
GPQA Diamond (Artificial Analysis run)82.0%85.4%GPT-5
Humanity's Last Exam (Artificial Analysis run)29.3%28.5%GLM 5
GPQA Diamond (Epoch AI run)87.8%86.2%GLM 5
ARC-AGI44.7%65.7%GPT-5
ARC-AGI-24.9%9.9%GPT-5
SimpleBench53.2%56.7%GPT-5
Chess puzzlesNot measured36.0%Only GPT-5 measured
Mystery game puzzlesNot measured23.0%Only GPT-5 measured
EBR-benchNot measured12.7%Only GPT-5 measured
VPCTNot measured66.0%Only GPT-5 measured
LMArena Text: hard prompts14521415GLM 5
LMArena Text: expert14541419GLM 5
LMArena Text: hard prompts in English14601419GLM 5
LMArena Vision: diagramsNot measured1252Only GPT-5 measured
LMArena Vision: homeworkNot measured1278Only GPT-5 measured
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index22
Math benchmarks for GLM 5 and GPT-5
BenchmarkGLM 5GPT-5Leader
AIME91.7%93.4%GPT-5
MATH 500 (Vals AI)Not measured96.0%Only GPT-5 measured
MGSM (Vals AI)Not measured92.8%Only GPT-5 measured
AA Math IndexNot measured94.3Only GPT-5 measured
AIME 2025 (Artificial Analysis run)Not measured94.3%Only GPT-5 measured
OTIS Mock AIME80.0%91.4%GPT-5
FrontierMath, tiers 1 to 3Not measured55.4%Only GPT-5 measured
FrontierMath, tier 4Not measured22.0%Only GPT-5 measured
ProofBenchNot measured18.0%Only GPT-5 measured
MATH level 5Not measured98.1%Only GPT-5 measured
LMArena Text: math14401407GLM 5
LMArena Text: mathematical work14511405GLM 5
Neither model has a result on the other 1 board here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index55
Knowledge benchmarks for GLM 5 and GPT-5
BenchmarkGLM 5GPT-5Leader
MMLU Pro86.0%86.5%GPT-5
LegalBench (Vals AI)84.1%86.0%GPT-5
CaseLaw (Vals AI)52.5%66.5%GPT-5
CorpFin (Vals AI)62.9%61.1%GLM 5
TaxEval (Vals AI)70.0%73.4%GPT-5
MortgageTax (Vals AI)Not measured65.5%Only GPT-5 measured
MedQA (Vals AI)94.3%96.3%GPT-5
MedCode (Vals AI)Not measured49.6%Only GPT-5 measured
MMLU Pro (Artificial Analysis run)Not measured87.1%Only GPT-5 measured
SimpleQA VerifiedNot measured50.1%Only GPT-5 measured
GeoBenchNot measured81.0%Only GPT-5 measured
LMArena Text: science14601416GLM 5
LMArena Text: medicine and healthcare14551413GLM 5
LMArena Text: legal and government14531431GLM 5
LMArena Text: business and finance14301400GLM 5
Neither model has a result on the other 2 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index71
Web design benchmarks for GLM 5 and GPT-5
BenchmarkGLM 5GPT-5Leader
Design Arena: websites12471185GLM 5
Design Arena: UI components12301179GLM 5
Design Arena: game dev12341185GLM 5
Design Arena: data viz12281221GLM 5
Design Arena: 3D12291056GLM 5
Design Arena: all code categories12461168GLM 5
Design Arena: SVG11681188GPT-5
Design Arena: ASCII art11461140GLM 5
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index172
General benchmarks for GLM 5 and GPT-5
BenchmarkGLM 5GPT-5Leader
SAGE (Vals AI)Not measured43.7%Only GPT-5 measured
MedScribe (Vals AI)Not measured83.7%Only GPT-5 measured
IFBench72.3%73.1%GPT-5
Long context reasoning (AA-LCR)75.7%78.2%GPT-5
DTBenchNot measured90.7%Only GPT-5 measured
LMCANot measured40.0%Only GPT-5 measured
Fiction.LiveBenchNot measured97.2%Only GPT-5 measured
Creative writing (Lech Mazur)Not measured86.0%Only GPT-5 measured
CL-bench18.7%Not measuredOnly GLM 5 measured
LMArena Text14461406GLM 5
LMArena Text: instruction following14281388GLM 5
LMArena Text: creative writing14381365GLM 5
LMArena VisionNot measured1232Only GPT-5 measured
LMArena Text: English14581409GLM 5
LMArena Text: non-English14301397GLM 5
LMArena Text: Chinese15111422GLM 5
LMArena Text: German14471416GLM 5
LMArena Text: Japanese14161409GLM 5
LMArena Text: Korean14231360GLM 5
LMArena Text: French14561409GLM 5
LMArena Text: Spanish14541399GLM 5
LMArena Text: Russian14361407GLM 5
LMArena Text: Polish14341431GLM 5
LMArena Text: multi-turn14561426GLM 5
LMArena Text: longer queries14461399GLM 5
LMArena Text: writing and language14371384GLM 5
LMArena Text: entertainment and media14261379GLM 5
LMArena Vision: EnglishNot measured1231Only GPT-5 measured
LMArena Vision: ChineseNot measured1267Only GPT-5 measured
LMArena Vision: reading textNot measured1246Only GPT-5 measured
LMArena Vision: humorNot measured1219Only GPT-5 measured
LMArena Vision: captioningNot measured1212Only GPT-5 measured
LMArena Vision: recognizing thingsNot measured1263Only GPT-5 measured
LMArena Vision: creative writingNot measured1210Only GPT-5 measured
Neither model has a result on the other 12 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-5
BenchmarkGLM 5GPT-5Leader
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-5$0.0063Fits in one request

GLM 5 costs less

Repository review

50K input + 3K output tokens

GLM 5$0.060Fits in one request
GPT-5$0.092Fits in one request

GLM 5 costs less

Agent loop

200K input + 10K output tokens

GLM 5$0.232Exceeds the context window
GPT-5$0.350Fits in one request

GLM 5 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-5
SpecificationZ.ai GLM 5OpenAI GPT-5
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedFebruary 11, 2026August 7, 2025
Context window205K400K
Input $/Mtok$1.00$1.25
Output $/Mtok$3.20$10.00
Coding index59.772.2
Independent measurements behind it23
Cost per solved task$0.63$0.39
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5 better than GPT-5 for coding?

Pick GPT-5 for coding: it scores 72.2 on the Vibe Coding Index against 59.7 for GLM 5. Pick GLM 5 when output tokens cost 3.1x less, or when what matters is LMArena WebDev or SWE-bench Verified (Vals AI), where it leads.

Which is cheaper, GLM 5 or GPT-5?

GLM 5 costs $1.00 per million input tokens and $3.20 per million output tokens; GPT-5 costs $1.25 and $10.00. Per solved SWE-bench Verified task, GLM 5 costs $0.63 and GPT-5 $0.39.

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

GPT-5, with 400K tokens against 205K.

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

66 benchmarks have a result for both models as of October 21, 2026. GLM 5's coding index rests on 2 independent benchmarks and GPT-5's on 3. 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-5" title="GLM 5 vs GPT-5, 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-5">LLMBenchmark.ai, GLM 5 vs GPT-5</a></p>