Enter opens the highlighted result. Esc closes.

GLM 5.1 vs GPT-5.1

GLM 5.1 leads GPT-5.1 on coding, 49.2 to 40.4 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; 67 benchmarks have a result for both.

GLM 5.1Z.ai
Coding
49.2
Overall
57.5
Output $/M
$4.40
52
GPT-5.1OpenAI
Coding
40.4
Overall
55.0
Output $/M
$10.00
15
vs boards won of 67 shared

GLM 5.1 or GPT-5.1: which to pick

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

Pick GPT-5.1 for a larger context window (400K against 205K tokens) and work measured by LiveCodeBench (Vals AI) or Terminal-Bench Hard (Artificial Analysis run), where it leads.

Shared results
67
GLM 5.1 only
22
GPT-5.1 only
34
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.1 40.4 from 3 benchmarks.
Widest category
Agentic work, 20.9 points apart on average over 2 shared benchmarks.
Widest single gap
Design Arena: 3D: GLM 5.1 1336 against GPT-5.1 1060, 34.5 points apart on a 0 to 100 scale.
Output price
GLM 5.1 $4.40 against GPT-5.1 $10.00 per million output tokens, 2.3x apart.
Context window
GLM 5.1 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 5.1BarsGPT-5.1Ties
Coding83
Intelligence20
Agentic work20
Reasoning63
Math31
Knowledge65
Web design80
General173
All shared boards5215
CodingLike-for-likeSix of these boards feed the Vibe Coding Index83
Coding benchmarks for GLM 5.1 and GPT-5.1
BenchmarkGLM 5.1GPT-5.1Leader
SWE-bench VerifiedNot measured66.0%Only GPT-5.1 measured
LMArena WebDev15081396GLM 5.1
AA Coding Index55.849.4GLM 5.1
LiveCodeBench (Vals AI)81.4%86.5%GPT-5.1
SWE-bench Verified (Vals AI)76.4%69.8%GLM 5.1
Vibe Code Bench (Vals AI)31.5%24.6%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 measured86.8%Only GPT-5.1 measured
SciCode44.8%Not measuredOnly GLM 5.1 measured
Terminal-Bench Hard (Artificial Analysis run)43.2%45.5%GPT-5.1
Terminal-BenchNot measured47.6%Only GPT-5.1 measured
GSO-BenchNot measured13.7%Only GPT-5.1 measured
WeirdML57.1%60.8%GPT-5.1
ALE-Bench887.1Not measuredOnly GLM 5.1 measured
LMArena Text: coding14851453GLM 5.1
LMArena Text: software and IT14841454GLM 5.1
LMArena WebDev: React15051307GLM 5.1
LMArena WebDev: HTML15081405GLM 5.1
LMArena WebDev: from an imageNot measured1421Only GPT-5.1 measured
Neither model has a result on the other 18 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GLM 5.1 and GPT-5.1
BenchmarkGLM 5.1GPT-5.1Leader
AA Intelligence Index26.124.7GLM 5.1
Epoch Capabilities Index149.8149.8GLM 5.1
Agentic workLike-for-likePublic boards, shown as published, kept out of the index20
Agentic work benchmarks for GLM 5.1 and GPT-5.1
BenchmarkGLM 5.1GPT-5.1Leader
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%81.9%GLM 5.1
APEX-Agents40.9%Not measuredOnly GLM 5.1 measured
DeepResearch BenchNot measured42.8%Only GPT-5.1 measured
Vending-Bench 2$5,634$1,473GLM 5.1
Neither model has a result on the other 25 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index63
Reasoning benchmarks for GLM 5.1 and GPT-5.1
BenchmarkGLM 5.1GPT-5.1Leader
GPQA Diamond84.5%86.6%GPT-5.1
MMMU Pro (Vals AI)Not measured83.2%Only GPT-5.1 measured
GPQA Diamond (Artificial Analysis run)86.8%87.3%GPT-5.1
Humanity's Last Exam (Artificial Analysis run)30.1%28.5%GLM 5.1
GPQA Diamond (Epoch AI run)89.9%87.6%GLM 5.1
ARC-AGINot measured72.8%Only GPT-5.1 measured
ARC-AGI-2Not measured17.6%Only GPT-5.1 measured
SimpleBench55.1%53.2%GLM 5.1
Chess puzzles20.0%42.0%GPT-5.1
Mystery game puzzlesNot measured19.0%Only GPT-5.1 measured
VPCTNot measured58.7%Only GPT-5.1 measured
LMArena Text: hard prompts14731457GLM 5.1
LMArena Text: expert14781470GLM 5.1
LMArena Text: hard prompts in English14821462GLM 5.1
LMArena Vision: diagramsNot measured1264Only GPT-5.1 measured
LMArena Vision: homeworkNot measured1272Only GPT-5.1 measured
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index31
Math benchmarks for GLM 5.1 and GPT-5.1
BenchmarkGLM 5.1GPT-5.1Leader
AIME91.9%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 AIME93.3%88.6%GLM 5.1
FrontierMath, tiers 1 to 336.8%Not measuredOnly GLM 5.1 measured
ProofBench22.2%Not measuredOnly GLM 5.1 measured
LMArena Text: math14731446GLM 5.1
LMArena Text: mathematical work14701449GLM 5.1
Neither model has a result on the other 4 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index65
Knowledge benchmarks for GLM 5.1 and GPT-5.1
BenchmarkGLM 5.1GPT-5.1Leader
MMLU Pro86.9%86.4%GLM 5.1
LegalBench (Vals AI)84.4%85.7%GPT-5.1
CaseLaw (Vals AI)51.5%73.4%GPT-5.1
CorpFin (Vals AI)64.5%63.8%GLM 5.1
TaxEval (Vals AI)71.2%74.9%GPT-5.1
MortgageTax (Vals AI)Not measured61.4%Only GPT-5.1 measured
MedQA (Vals AI)Not measured96.4%Only GPT-5.1 measured
MedCode (Vals AI)41.6%52.7%GPT-5.1
MMLU Pro (Artificial Analysis run)Not measured87.0%Only GPT-5.1 measured
SimpleQA Verified34.0%48.0%GPT-5.1
LMArena Text: science14781459GLM 5.1
LMArena Text: medicine and healthcare14741456GLM 5.1
LMArena Text: legal and government14651459GLM 5.1
LMArena Text: business and finance14521431GLM 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.1 and GPT-5.1
BenchmarkGLM 5.1GPT-5.1Leader
Design Arena: websites12901187GLM 5.1
Design Arena: UI components12921163GLM 5.1
Design Arena: game dev12651178GLM 5.1
Design Arena: data viz13661204GLM 5.1
Design Arena: 3D13361060GLM 5.1
Design Arena: all code categories12681170GLM 5.1
Design Arena: SVG12181149GLM 5.1
Design Arena: ASCII art11411119GLM 5.1
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index173
General benchmarks for GLM 5.1 and GPT-5.1
BenchmarkGLM 5.1GPT-5.1Leader
Public Benefits Bench (Vals AI)61.8%Not measuredOnly GLM 5.1 measured
SAGE (Vals AI)Not measured43.2%Only GPT-5.1 measured
MedScribe (Vals AI)72.3%88.1%GPT-5.1
IFBench76.3%72.9%GLM 5.1
Long context reasoning (AA-LCR)73.7%80.0%GPT-5.1
DTBenchNot measured90.1%Only GPT-5.1 measured
LMCANot measured43.9%Only GPT-5.1 measured
CL-benchNot measured23.7%Only GPT-5.1 measured
ExploitBench18.1%Not measuredOnly GLM 5.1 measured
CL-bench LifeNot measured17.3%Only GPT-5.1 measured
LMArena Text14631443GLM 5.1
LMArena Text: instruction following14531443GLM 5.1
LMArena Text: creative writing14531427GLM 5.1
LMArena VisionNot measured1250Only GPT-5.1 measured
LMArena Text: English14761451GLM 5.1
LMArena Text: non-English14481431GLM 5.1
LMArena Text: Chinese15151495GLM 5.1
LMArena Text: German14671438GLM 5.1
LMArena Text: Japanese14351453GPT-5.1
LMArena Text: Korean14241401GLM 5.1
LMArena Text: French14701450GLM 5.1
LMArena Text: Spanish14681433GLM 5.1
LMArena Text: Russian14541435GLM 5.1
LMArena Text: Polish14491440GLM 5.1
LMArena Text: multi-turn14731450GLM 5.1
LMArena Text: longer queries14671448GLM 5.1
LMArena Text: writing and language14541428GLM 5.1
LMArena Text: entertainment and media14421415GLM 5.1
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 10 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.1
BenchmarkGLM 5.1GPT-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.1$0.0036Fits in one request
GPT-5.1$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.1$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.1$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.1
SpecificationZ.ai GLM 5.1OpenAI GPT-5.1
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedApril 7, 2026November 13, 2025
Context window205K400K
Input $/Mtok$1.40$1.25
Output $/Mtok$4.40$10.00
Coding index49.240.4
Independent measurements behind it33
Cost per solved task$0.60$1.02
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.1 better than GPT-5.1 for coding?

Pick GLM 5.1 for coding: it scores 49.2 on the Vibe Coding Index against 40.4 for GPT-5.1. Pick GPT-5.1 for a larger context window (400K against 205K tokens) and work measured by LiveCodeBench (Vals AI) or Terminal-Bench Hard (Artificial Analysis run), where it leads.

Which is cheaper, GLM 5.1 or GPT-5.1?

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

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

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

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

67 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.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-1-vs-gpt-5-1" title="GLM 5.1 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-1-vs-gpt-5-1">LLMBenchmark.ai, GLM 5.1 vs GPT-5.1</a></p>