Enter opens the highlighted result. Esc closes.

GLM 5 vs GPT-5.1

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

GLM 5Z.ai
Coding
41.7
Overall
54.3
Output $/M
$3.20
35
GPT-5.1OpenAI
Coding
40.4
Overall
55.0
Output $/M
$10.00
32
vs boards won of 68 shared, 1 tied

GLM 5 or GPT-5.1: which to pick

GLM 5 and GPT-5.1 are level for coding, 41.7 against 40.4 on the Vibe Coding Index, so price and context decide.

Pick GPT-5.1 for a larger context window (400K against 205K tokens) and work measured by LiveCodeBench (Vals AI) or Vibe Code Bench (Vals AI), where it leads. Pick GLM 5 for output tokens 3.1x cheaper ($3.20 vs $10.00 per million) and a lower cost per solved task ($0.63 against $1.02).

Shared results
68
GLM 5 only
8
GPT-5.1 only
33
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-5.1 40.4 from 3 benchmarks.
Widest category
Agentic work, 17.4 points apart on average over 2 shared benchmarks.
Widest single gap
ARC-AGI: GLM 5 44.7% against GPT-5.1 72.8%, 28.2 points apart on a 0 to 100 scale.
Output price
GLM 5 $3.20 against GPT-5.1 $10.00 per million output tokens, 3.1x apart.
Context window
GLM 5 takes 205K tokens, GPT-5.1 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-5.1Ties
Coding84
Intelligence11
Agentic work20
Reasoning271 tie
Math13
Knowledge19
Web design80
General128
All shared boards35321 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index84
Coding benchmarks for GLM 5 and GPT-5.1
BenchmarkGLM 5GPT-5.1Leader
SWE-bench Verified72.8%66.0%GLM 5
SWE-bench Multilingual69.7%Not measuredOnly GLM 5 measured
LMArena WebDev14351396GLM 5
AA Coding IndexNot measured49.4Only GPT-5.1 measured
LiveCodeBench (Vals AI)81.9%86.5%GPT-5.1
SWE-bench Verified (Vals AI)71.4%69.8%GLM 5
Vibe Code Bench (Vals AI)23.4%24.6%GPT-5.1
LiveCodeBench (Artificial Analysis run)Not measured86.8%Only GPT-5.1 measured
Terminal-Bench Hard (Artificial Analysis run)43.2%45.5%GPT-5.1
Terminal-Bench52.4%47.6%GLM 5
GSO-BenchNot measured13.7%Only GPT-5.1 measured
WeirdML48.2%60.8%GPT-5.1
ALE-Bench765.6Not measuredOnly GLM 5 measured
LMArena Text: coding14611453GLM 5
LMArena Text: software and IT14601454GLM 5
LMArena WebDev: React14241307GLM 5
LMArena WebDev: HTML14501405GLM 5
LMArena WebDev: from an imageNot measured1421Only GPT-5.1 measured
Neither model has a result on the other 21 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
Intelligence benchmarks for GLM 5 and GPT-5.1
BenchmarkGLM 5GPT-5.1Leader
AA Intelligence Index27.924.7GLM 5
Epoch Capabilities Index145.8149.8GPT-5.1
Agentic workLike-for-likePublic boards, shown as published, kept out of the index20
Agentic work benchmarks for GLM 5 and GPT-5.1
BenchmarkGLM 5GPT-5.1Leader
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 apps1147Not measuredOnly GLM 5 measured
Design Arena: agents building Godot games1144Not measuredOnly GLM 5 measured
Design Arena: HTML slides1098Not measuredOnly GLM 5 measured
τ²-Bench Telecom98.2%81.9%GLM 5
DeepResearch BenchNot measured42.8%Only GPT-5.1 measured
Vending-Bench 2$4,432$1,473GLM 5
Neither model has a result on the other 33 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index27
Reasoning benchmarks for GLM 5 and GPT-5.1
BenchmarkGLM 5GPT-5.1Leader
GPQA Diamond83.3%86.6%GPT-5.1
MMMU Pro (Vals AI)Not measured83.2%Only GPT-5.1 measured
GPQA Diamond (Artificial Analysis run)82.0%87.3%GPT-5.1
Humanity's Last Exam (Artificial Analysis run)29.3%28.5%GLM 5
GPQA Diamond (Epoch AI run)87.8%87.6%GLM 5
ARC-AGI44.7%72.8%GPT-5.1
ARC-AGI-24.9%17.6%GPT-5.1
SimpleBench53.2%53.2%Tie
Chess puzzlesNot measured42.0%Only GPT-5.1 measured
Mystery game puzzlesNot measured19.0%Only GPT-5.1 measured
VPCTNot measured58.7%Only GPT-5.1 measured
LMArena Text: hard prompts14521457GPT-5.1
LMArena Text: expert14541470GPT-5.1
LMArena Text: hard prompts in English14601462GPT-5.1
LMArena Vision: diagramsNot measured1264Only GPT-5.1 measured
LMArena Vision: homeworkNot measured1272Only GPT-5.1 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 index13
Math benchmarks for GLM 5 and GPT-5.1
BenchmarkGLM 5GPT-5.1Leader
AIME91.7%93.3%GPT-5.1
MGSM (Vals AI)Not measured93.0%Only GPT-5.1 measured
AA Math IndexNot measured94.0Only GPT-5.1 measured
AIME 2025 (Artificial Analysis run)Not measured94.0%Only GPT-5.1 measured
OTIS Mock AIME80.0%88.6%GPT-5.1
LMArena Text: math14401446GPT-5.1
LMArena Text: mathematical work14511449GLM 5
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index19
Knowledge benchmarks for GLM 5 and GPT-5.1
BenchmarkGLM 5GPT-5.1Leader
MMLU Pro86.0%86.4%GPT-5.1
LegalBench (Vals AI)84.1%85.7%GPT-5.1
CaseLaw (Vals AI)52.5%73.4%GPT-5.1
CorpFin (Vals AI)62.9%63.8%GPT-5.1
TaxEval (Vals AI)70.0%74.9%GPT-5.1
MortgageTax (Vals AI)Not measured61.4%Only GPT-5.1 measured
MedQA (Vals AI)94.3%96.4%GPT-5.1
MedCode (Vals AI)Not measured52.7%Only GPT-5.1 measured
MMLU Pro (Artificial Analysis run)Not measured87.0%Only GPT-5.1 measured
SimpleQA VerifiedNot measured48.0%Only GPT-5.1 measured
LMArena Text: science14601459GLM 5
LMArena Text: medicine and healthcare14551456GPT-5.1
LMArena Text: legal and government14531459GPT-5.1
LMArena Text: business and finance14301431GPT-5.1
FACTS Benchmark SuiteNot measured45.0%Only GPT-5.1 measured
Neither model has a result on the other 3 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index80
Web design benchmarks for GLM 5 and GPT-5.1
BenchmarkGLM 5GPT-5.1Leader
Design Arena: websites12471187GLM 5
Design Arena: UI components12271163GLM 5
Design Arena: game dev12341178GLM 5
Design Arena: data viz12281204GLM 5
Design Arena: 3D12281060GLM 5
Design Arena: all code categories12461170GLM 5
Design Arena: SVG11681149GLM 5
Design Arena: ASCII art11471119GLM 5
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index128
General benchmarks for GLM 5 and GPT-5.1
BenchmarkGLM 5GPT-5.1Leader
SAGE (Vals AI)Not measured43.2%Only GPT-5.1 measured
MedScribe (Vals AI)Not measured88.1%Only GPT-5.1 measured
IFBench72.3%72.9%GPT-5.1
Long context reasoning (AA-LCR)75.7%80.0%GPT-5.1
DTBenchNot measured90.1%Only GPT-5.1 measured
LMCANot measured43.9%Only GPT-5.1 measured
CL-bench18.7%23.7%GPT-5.1
CL-bench LifeNot measured17.3%Only GPT-5.1 measured
LMArena Text14461443GLM 5
LMArena Text: instruction following14281443GPT-5.1
LMArena Text: creative writing14381427GLM 5
LMArena VisionNot measured1250Only GPT-5.1 measured
LMArena Text: English14581451GLM 5
LMArena Text: non-English14301431GPT-5.1
LMArena Text: Chinese15111495GLM 5
LMArena Text: German14471438GLM 5
LMArena Text: Japanese14161453GPT-5.1
LMArena Text: Korean14231401GLM 5
LMArena Text: French14561450GLM 5
LMArena Text: Spanish14541433GLM 5
LMArena Text: Russian14361435GLM 5
LMArena Text: Polish14341440GPT-5.1
LMArena Text: multi-turn14561450GLM 5
LMArena Text: longer queries14461448GPT-5.1
LMArena Text: writing and language14371428GLM 5
LMArena Text: entertainment and media14261415GLM 5
LMArena Vision: EnglishNot measured1252Only GPT-5.1 measured
LMArena Vision: ChineseNot measured1270Only GPT-5.1 measured
LMArena Vision: reading textNot measured1255Only GPT-5.1 measured
LMArena Vision: humorNot measured1263Only GPT-5.1 measured
LMArena Vision: captioningNot measured1252Only GPT-5.1 measured
LMArena Vision: recognizing thingsNot measured1232Only GPT-5.1 measured
LMArena Vision: creative writingNot measured1266Only GPT-5.1 measured
LMArena DocumentNot measured1403Only GPT-5.1 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.1
BenchmarkGLM 5GPT-5.1Leader
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.1$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.1$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.1$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.1
SpecificationZ.ai GLM 5OpenAI GPT-5.1
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedFebruary 11, 2026November 13, 2025
Context window205K400K
Input $/Mtok$1.00$1.25
Output $/Mtok$3.20$10.00
Coding index41.740.4
Independent measurements behind it33
Cost per solved task$0.63$1.02
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5 better than GPT-5.1 for coding?

GLM 5 and GPT-5.1 are level for coding, 41.7 against 40.4 on the Vibe Coding Index, so price and context decide. Pick GPT-5.1 for a larger context window (400K against 205K tokens) and work measured by LiveCodeBench (Vals AI) or Vibe Code Bench (Vals AI), where it leads. Pick GLM 5 for output tokens 3.1x cheaper ($3.20 vs $10.00 per million) and a lower cost per solved task ($0.63 against $1.02).

Which is cheaper, GLM 5 or GPT-5.1?

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

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

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

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

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