Enter opens the highlighted result. Esc closes.

GLM 4.6 vs GPT-5.1-Codex

GPT-5.1-Codex leads GLM 4.6 on coding, 15.3 to 8.8 on the Vibe Coding Index, and GLM 4.6 costs 4.5x less per output token ($2.20 vs $10.00 per million). Updated October 22, 2026; 25 benchmarks have a result for both.

GLM 4.6Z.ai
Coding
8.8
Overall
33.4
Output $/M
$2.20
6
GPT-5.1-CodexOpenAI
Coding
15.3
Overall
No data
Output $/M
$10.00
19
vs boards won of 25 shared

GLM 4.6 or GPT-5.1-Codex: which to pick

Pick GPT-5.1-Codex for coding: it scores 15.3 on the Vibe Coding Index against 8.8 for GLM 4.6.

Pick GLM 4.6 for output tokens 4.5x cheaper ($2.20 vs $10.00 per million) and work measured by SWE-bench Verified or LMArena WebDev, where it leads.

Shared results
25
GLM 4.6 only
44
GPT-5.1-Codex only
1
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 4.6 8.8 from 2 benchmarks, GPT-5.1-Codex 15.3 from 2 benchmarks.
Widest category
General, 21.0 points apart on average over 2 shared benchmarks.
Widest single gap
Terminal-Bench: GLM 4.6 24.5% against GPT-5.1-Codex 57.8%, 33.3 points apart on a 0 to 100 scale.
Output price
GLM 4.6 $2.20 against GPT-5.1-Codex $10.00 per million output tokens, 4.5x apart.
Context window
GLM 4.6 takes 205K tokens, GPT-5.1-Codex 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 4.6BarsGPT-5.1-CodexTies
Coding36
Intelligence01
Agentic work03
Reasoning02
Math02
Knowledge01
Web design32
General02
All shared boards619
CodingLike-for-likeSix of these boards feed the Vibe Coding Index36
Coding benchmarks for GLM 4.6 and GPT-5.1-Codex
BenchmarkGLM 4.6GPT-5.1-CodexLeader
SWE-bench Verified68.2%66.0%GLM 4.6
LMArena WebDev13411337GLM 4.6
AA Coding Index45.8Not measuredOnly GLM 4.6 measured
LiveCodeBench (Vals AI)81.0%85.5%GPT-5.1-Codex
Vibe Code Bench (Vals AI)3.1%13.1%GPT-5.1-Codex
LiveCodeBench (Artificial Analysis run)69.5%84.9%GPT-5.1-Codex
Terminal-Bench Hard (Artificial Analysis run)28.8%34.8%GPT-5.1-Codex
Terminal-Bench24.5%57.8%GPT-5.1-Codex
ALE-Bench340.81244.9GPT-5.1-Codex
LMArena Text: coding1449Not measuredOnly GLM 4.6 measured
LMArena Text: software and IT1455Not measuredOnly GLM 4.6 measured
LMArena WebDev: HTML13501346GLM 4.6
Neither model has a result on the other 27 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for GLM 4.6 and GPT-5.1-Codex
BenchmarkGLM 4.6GPT-5.1-CodexLeader
AA Intelligence Index18.523.7GPT-5.1-Codex
Neither model has a result on the other 1 board here
Agentic workLike-for-likePublic boards, shown as published, kept out of the index03
Agentic work benchmarks for GLM 4.6 and GPT-5.1-Codex
BenchmarkGLM 4.6GPT-5.1-CodexLeader
Design Arena: agents building web appsNot measured1018Only GPT-5.1-Codex measured
Design Arena: agents building full-stack apps10291086GPT-5.1-Codex
Design Arena: agents building mobile apps10961191GPT-5.1-Codex
Design Arena: agents building Android apps1084Not measuredOnly GLM 4.6 measured
Design Arena: agents building Godot games1180Not measuredOnly GLM 4.6 measured
τ²-Bench Telecom76.9%83.0%GPT-5.1-Codex
Berkeley Function Calling Leaderboard (BFCL)72.4%Not measuredOnly GLM 4.6 measured
BrowseComp-Plus48.2%Not measuredOnly GLM 4.6 measured
Neither model has a result on the other 33 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index02
Reasoning benchmarks for GLM 4.6 and GPT-5.1-Codex
BenchmarkGLM 4.6GPT-5.1-CodexLeader
GPQA Diamond74.5%Not measuredOnly GLM 4.6 measured
GPQA Diamond (Artificial Analysis run)78.0%86.0%GPT-5.1-Codex
Humanity's Last Exam (Artificial Analysis run)14.5%25.7%GPT-5.1-Codex
LMArena Text: hard prompts1440Not measuredOnly GLM 4.6 measured
LMArena Text: expert1432Not measuredOnly GLM 4.6 measured
LMArena Text: hard prompts in English1445Not measuredOnly GLM 4.6 measured
Kagi LLM Benchmark45.7%Not measuredOnly GLM 4.6 measured
Neither model has a result on the other 15 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index02
Math benchmarks for GLM 4.6 and GPT-5.1-Codex
BenchmarkGLM 4.6GPT-5.1-CodexLeader
AIME92.7%Not measuredOnly GLM 4.6 measured
MGSM (Vals AI)89.8%Not measuredOnly GLM 4.6 measured
AA Math Index86.095.7GPT-5.1-Codex
AIME 2025 (Artificial Analysis run)86.0%95.7%GPT-5.1-Codex
LMArena Text: math1432Not measuredOnly GLM 4.6 measured
LMArena Text: mathematical work1447Not measuredOnly GLM 4.6 measured
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index01
Knowledge benchmarks for GLM 4.6 and GPT-5.1-Codex
BenchmarkGLM 4.6GPT-5.1-CodexLeader
MMLU Pro82.2%Not measuredOnly GLM 4.6 measured
LegalBench (Vals AI)79.6%Not measuredOnly GLM 4.6 measured
CorpFin (Vals AI)56.8%Not measuredOnly GLM 4.6 measured
TaxEval (Vals AI)66.2%Not measuredOnly GLM 4.6 measured
MedQA (Vals AI)92.2%Not measuredOnly GLM 4.6 measured
MMLU Pro (Artificial Analysis run)82.9%86.0%GPT-5.1-Codex
LMArena Text: science1456Not measuredOnly GLM 4.6 measured
LMArena Text: medicine and healthcare1455Not measuredOnly GLM 4.6 measured
LMArena Text: legal and government1448Not measuredOnly GLM 4.6 measured
LMArena Text: business and finance1416Not measuredOnly GLM 4.6 measured
Neither model has a result on the other 8 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index32
Web design benchmarks for GLM 4.6 and GPT-5.1-Codex
BenchmarkGLM 4.6GPT-5.1-CodexLeader
Design Arena: websites11741161GLM 4.6
Design Arena: UI components11451234GPT-5.1-Codex
Design Arena: game dev11501137GLM 4.6
Design Arena: data viz11611213GPT-5.1-Codex
Design Arena: 3D1128Not measuredOnly GLM 4.6 measured
Design Arena: all code categories11651152GLM 4.6
Design Arena: SVG1108Not measuredOnly GLM 4.6 measured
Neither model has a result on the other 2 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index02
General benchmarks for GLM 4.6 and GPT-5.1-Codex
BenchmarkGLM 4.6GPT-5.1-CodexLeader
IFBench43.4%70.0%GPT-5.1-Codex
Long context reasoning (AA-LCR)54.0%69.3%GPT-5.1-Codex
LMArena Text1440Not measuredOnly GLM 4.6 measured
LMArena Text: instruction following1410Not measuredOnly GLM 4.6 measured
LMArena Text: creative writing1412Not measuredOnly GLM 4.6 measured
LMArena Text: English1449Not measuredOnly GLM 4.6 measured
LMArena Text: non-English1426Not measuredOnly GLM 4.6 measured
LMArena Text: Chinese1499Not measuredOnly GLM 4.6 measured
LMArena Text: German1447Not measuredOnly GLM 4.6 measured
LMArena Text: Japanese1393Not measuredOnly GLM 4.6 measured
LMArena Text: Korean1400Not measuredOnly GLM 4.6 measured
LMArena Text: French1459Not measuredOnly GLM 4.6 measured
LMArena Text: Spanish1436Not measuredOnly GLM 4.6 measured
LMArena Text: Russian1418Not measuredOnly GLM 4.6 measured
LMArena Text: Polish1447Not measuredOnly GLM 4.6 measured
LMArena Text: multi-turn1427Not measuredOnly GLM 4.6 measured
LMArena Text: longer queries1422Not measuredOnly GLM 4.6 measured
LMArena Text: writing and language1415Not measuredOnly GLM 4.6 measured
LMArena Text: entertainment and media1409Not measuredOnly GLM 4.6 measured
Neither model has a result on the other 27 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GLM 4.6 and GPT-5.1-Codex
BenchmarkGLM 4.6GPT-5.1-CodexLeader
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 4.6$0.0017Fits in one request
GPT-5.1-Codex$0.0063Fits in one request

GLM 4.6 costs less

Repository review

50K input + 3K output tokens

GLM 4.6$0.037Fits in one request
GPT-5.1-Codex$0.092Fits in one request

GLM 4.6 costs less

Agent loop

200K input + 10K output tokens

GLM 4.6$0.142Exceeds the context window
GPT-5.1-Codex$0.350Fits in one request

GLM 4.6 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 4.6 and GPT-5.1-Codex
SpecificationZ.ai GLM 4.6OpenAI GPT-5.1-Codex
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedSeptember 30, 2025November 13, 2025
Context window205K400K
Input $/Mtok$0.60$1.25
Output $/Mtok$2.20$10.00
Coding index8.815.3
Independent measurements behind it22
Cost per solved taskNot computable$0.892
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 4.6 better than GPT-5.1-Codex for coding?

Pick GPT-5.1-Codex for coding: it scores 15.3 on the Vibe Coding Index against 8.8 for GLM 4.6. Pick GLM 4.6 for output tokens 4.5x cheaper ($2.20 vs $10.00 per million) and work measured by SWE-bench Verified or LMArena WebDev, where it leads.

Which is cheaper, GLM 4.6 or GPT-5.1-Codex?

GLM 4.6 costs $0.60 per million input tokens and $2.20 per million output tokens; GPT-5.1-Codex costs $1.25 and $10.00. Cost per solved task is known for GPT-5.1-Codex only.

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

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

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

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