Enter opens the highlighted result. Esc closes.

GLM 5.1 vs GPT-5

GLM 5.1 leads GPT-5 on coding, 49.2 to 38.8 on the Vibe Coding Index, and GLM 5.1 costs 2.3x less per output token ($4.40 vs $10.00 per million). Updated October 22, 2026; 68 benchmarks have a result for both.

GLM 5.1Z.ai
Coding
49.2
Overall
57.5
Output $/M
$4.40
52
GPT-5OpenAI
Coding
38.8
Overall
51.5
Output $/M
$10.00
15
vs boards won of 68 shared, 1 tied

GLM 5.1 or GPT-5: which to pick

Pick GLM 5.1 for coding: it scores 49.2 on the Vibe Coding Index against 38.8 for GPT-5.

Pick GPT-5 for a lower cost per solved task ($0.39 against $0.60) and a larger context window (400K against 205K tokens).

Shared results
68
GLM 5.1 only
21
GPT-5 only
45
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.1 49.2 from 3 benchmarks, GPT-5 38.8 from 3 benchmarks.
Widest category
Web design, 13.4 points apart on average over 8 shared benchmarks.
Widest single gap
Design Arena: 3D: GLM 5.1 1336 against GPT-5 1055, 35.1 points apart on a 0 to 100 scale.
Output price
GLM 5.1 $4.40 against GPT-5 $10.00 per million output tokens, 2.3x apart.
Context window
GLM 5.1 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 5.1BarsGPT-5Ties
Coding92
Intelligence11
Agentic work10
Reasoning63
Math42
Knowledge65
Web design701 tie
General182
All shared boards52151 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index92
Coding benchmarks for GLM 5.1 and GPT-5
BenchmarkGLM 5.1GPT-5Leader
Aider polyglotNot measured88.0%Only GPT-5 measured
SWE-bench VerifiedNot measured74.4%Only GPT-5 measured
LMArena WebDev15081418GLM 5.1
AA Coding Index55.837.8GLM 5.1
LiveCodeBench (Vals AI)81.4%85.9%GPT-5
SWE-bench Verified (Vals AI)76.4%69.0%GLM 5.1
Vibe Code Bench (Vals AI)31.5%20.1%GLM 5.1
Code migration (Vals AI)25.8%Not measuredOnly GLM 5.1 measured
ProgramBench (Vals AI)0.0%Not measuredOnly GLM 5.1 measured
Terminal-Bench 2.1 (Vals AI)56.9%Not measuredOnly GLM 5.1 measured
LiveCodeBench (Artificial Analysis run)Not measured84.6%Only GPT-5 measured
SciCode44.8%Not measuredOnly GLM 5.1 measured
Terminal-Bench Hard (Artificial Analysis run)43.2%37.9%GLM 5.1
Terminal-BenchNot measured49.6%Only GPT-5 measured
GSO-BenchNot measured6.9%Only GPT-5 measured
WeirdML57.1%60.7%GPT-5
ALE-Bench887.1807.6GLM 5.1
LMArena Text: coding14851436GLM 5.1
LMArena Text: software and IT14841420GLM 5.1
LMArena WebDev: React1505Not measuredOnly GLM 5.1 measured
LMArena WebDev: HTML15081427GLM 5.1
SciCodeNot measured0.0%Only GPT-5 measured
Neither model has a result on the other 17 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
Intelligence benchmarks for GLM 5.1 and GPT-5
BenchmarkGLM 5.1GPT-5Leader
AA Intelligence Index26.123.0GLM 5.1
Epoch Capabilities Index149.8150.0GPT-5
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GLM 5.1 and GPT-5
BenchmarkGLM 5.1GPT-5Leader
AA Agentic Index23.9Not measuredOnly GLM 5.1 measured
Design Arena: agents building web apps1175Not measuredOnly GLM 5.1 measured
Design Arena: agents building full-stack apps1167Not measuredOnly GLM 5.1 measured
Design Arena: agents building mobile apps1162Not measuredOnly GLM 5.1 measured
Design Arena: agents building Android apps1182Not 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 slides1120Not measuredOnly GLM 5.1 measured
Design Arena: PowerPoint slides1163Not measuredOnly GLM 5.1 measured
Design Arena: spreadsheets1315Not measuredOnly GLM 5.1 measured
Finance Agent (Vals AI)44.8%Not measuredOnly GLM 5.1 measured
Legal Research Bench (Vals AI)27.9%Not measuredOnly GLM 5.1 measured
τ²-Bench Telecom97.7%86.5%GLM 5.1
APEX-Agents40.9%Not measuredOnly GLM 5.1 measured
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$5,634Not measuredOnly GLM 5.1 measured
BrowseComp-PlusNot measured80.0%Only GPT-5 measured
Neither model has a result on the other 20 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index63
Reasoning benchmarks for GLM 5.1 and GPT-5
BenchmarkGLM 5.1GPT-5Leader
GPQA Diamond84.5%85.6%GPT-5
MMMU Pro (Vals AI)Not measured81.5%Only GPT-5 measured
GPQA Diamond (Artificial Analysis run)86.8%85.4%GLM 5.1
Humanity's Last Exam (Artificial Analysis run)30.1%28.5%GLM 5.1
GPQA Diamond (Epoch AI run)89.9%86.2%GLM 5.1
ARC-AGINot measured65.7%Only GPT-5 measured
ARC-AGI-2Not measured9.9%Only GPT-5 measured
SimpleBench55.1%56.7%GPT-5
Chess puzzles20.0%36.0%GPT-5
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 prompts14731415GLM 5.1
LMArena Text: expert14781419GLM 5.1
LMArena Text: hard prompts in English14821419GLM 5.1
LMArena Vision: diagramsNot measured1252Only GPT-5 measured
LMArena Vision: homeworkNot measured1278Only GPT-5 measured
Kagi LLM BenchmarkNot measured72.7%Only 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 index42
Math benchmarks for GLM 5.1 and GPT-5
BenchmarkGLM 5.1GPT-5Leader
AIME91.9%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 AIME93.3%91.4%GLM 5.1
FrontierMath, tiers 1 to 336.8%55.4%GPT-5
FrontierMath, tier 4Not measured22.0%Only GPT-5 measured
ProofBench22.2%18.0%GLM 5.1
MATH level 5Not measured98.1%Only GPT-5 measured
LMArena Text: math14731407GLM 5.1
LMArena Text: mathematical work14701405GLM 5.1
Neither model has a result on the other 1 board here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index65
Knowledge benchmarks for GLM 5.1 and GPT-5
BenchmarkGLM 5.1GPT-5Leader
MMLU Pro86.9%86.5%GLM 5.1
LegalBench (Vals AI)84.4%86.0%GPT-5
CaseLaw (Vals AI)51.5%66.5%GPT-5
CorpFin (Vals AI)64.5%61.1%GLM 5.1
TaxEval (Vals AI)71.2%73.4%GPT-5
MortgageTax (Vals AI)Not measured65.5%Only GPT-5 measured
MedQA (Vals AI)Not measured96.3%Only GPT-5 measured
MedCode (Vals AI)41.6%49.6%GPT-5
MMLU Pro (Artificial Analysis run)Not measured87.1%Only GPT-5 measured
SimpleQA Verified34.0%50.1%GPT-5
GeoBenchNot measured81.0%Only GPT-5 measured
LMArena Text: science14781416GLM 5.1
LMArena Text: medicine and healthcare14741413GLM 5.1
LMArena Text: legal and government14651431GLM 5.1
LMArena Text: business and finance14521400GLM 5.1
FACTS Benchmark SuiteNot measured56.5%Only GPT-5 measured
Neither model has a result on the other 2 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index70
Web design benchmarks for GLM 5.1 and GPT-5
BenchmarkGLM 5.1GPT-5Leader
Design Arena: websites12901184GLM 5.1
Design Arena: UI components12921177GLM 5.1
Design Arena: game dev12651185GLM 5.1
Design Arena: data viz13661221GLM 5.1
Design Arena: 3D13361055GLM 5.1
Design Arena: all code categories12681167GLM 5.1
Design Arena: SVG12181188GLM 5.1
Design Arena: ASCII art11411141Tie
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index182
General benchmarks for GLM 5.1 and GPT-5
BenchmarkGLM 5.1GPT-5Leader
Public Benefits Bench (Vals AI)61.8%Not measuredOnly GLM 5.1 measured
SAGE (Vals AI)Not measured43.7%Only GPT-5 measured
MedScribe (Vals AI)72.3%83.7%GPT-5
IFBench76.3%73.1%GLM 5.1
Long context reasoning (AA-LCR)73.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
ExploitBench18.1%Not measuredOnly GLM 5.1 measured
LMArena Text14631406GLM 5.1
LMArena Text: instruction following14531388GLM 5.1
LMArena Text: creative writing14531365GLM 5.1
LMArena VisionNot measured1232Only GPT-5 measured
LMArena Text: English14761409GLM 5.1
LMArena Text: non-English14481397GLM 5.1
LMArena Text: Chinese15151422GLM 5.1
LMArena Text: German14671416GLM 5.1
LMArena Text: Japanese14351409GLM 5.1
LMArena Text: Korean14241360GLM 5.1
LMArena Text: French14701409GLM 5.1
LMArena Text: Spanish14681399GLM 5.1
LMArena Text: Russian14541407GLM 5.1
LMArena Text: Polish14491431GLM 5.1
LMArena Text: multi-turn14731426GLM 5.1
LMArena Text: longer queries14671399GLM 5.1
LMArena Text: writing and language14541384GLM 5.1
LMArena Text: entertainment and media14421379GLM 5.1
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 11 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-5
BenchmarkGLM 5.1GPT-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.1$0.0036Fits in one request
GPT-5$0.0063Fits in one request

GLM 5.1 costs less

Repository review

50K input + 3K output tokens

GLM 5.1$0.083Fits in one request
GPT-5$0.092Fits in one request

GLM 5.1 costs less

Agent loop

200K input + 10K output tokens

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

GLM 5.1 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-5
SpecificationZ.ai GLM 5.1OpenAI GPT-5
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedApril 7, 2026August 7, 2025
Context window205K400K
Input $/Mtok$1.40$1.25
Output $/Mtok$4.40$10.00
Coding index49.238.8
Independent measurements behind it33
Cost per solved task$0.60$0.39
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.1 better than GPT-5 for coding?

Pick GLM 5.1 for coding: it scores 49.2 on the Vibe Coding Index against 38.8 for GPT-5. Pick GPT-5 for a lower cost per solved task ($0.39 against $0.60) and a larger context window (400K against 205K tokens).

Which is cheaper, GLM 5.1 or GPT-5?

GLM 5.1 costs $1.40 per million input tokens and $4.40 per million output tokens; GPT-5 costs $1.25 and $10.00. Per solved SWE-bench Verified task, GLM 5.1 costs $0.60 and GPT-5 $0.39.

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

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

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

68 benchmarks have a result for both models as of October 22, 2026. GLM 5.1's coding index rests on 3 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-1-vs-gpt-5" title="GLM 5.1 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-1-vs-gpt-5">LLMBenchmark.ai, GLM 5.1 vs GPT-5</a></p>