Enter opens the highlighted result. Esc closes.

GLM 5.2 vs GPT-5

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

GLM 5.2Z.ai
Coding
61.1
Overall
62.5
Output $/M
$4.40
62
GPT-5OpenAI
Coding
38.8
Overall
51.5
Output $/M
$10.00
11
vs boards won of 74 shared, 1 tied

GLM 5.2 or GPT-5: which to pick

Pick GLM 5.2 for coding: it scores 61.1 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.86) and work measured by LiveCodeBench (Vals AI) or Chess puzzles, where it leads.

Shared results
74
GLM 5.2 only
24
GPT-5 only
39
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.2 61.1 from 4 benchmarks, GPT-5 38.8 from 3 benchmarks.
Widest category
Coding, 18.6 points apart on average over 11 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): GLM 5.2 64.0% against GPT-5 20.1%, 43.9 points apart on a 0 to 100 scale.
Output price
GLM 5.2 $4.40 against GPT-5 $10.00 per million output tokens, 2.3x apart.
Context window
GLM 5.2 takes 1.05M 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.2BarsGPT-5Ties
Coding101
Intelligence20
Agentic work10
Reasoning941 tie
Math51
Knowledge64
Web design80
General211
All shared boards62111 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index101
Coding benchmarks for GLM 5.2 and GPT-5
BenchmarkGLM 5.2GPT-5Leader
Aider polyglotNot measured88.0%Only GPT-5 measured
SWE-bench VerifiedNot measured74.4%Only GPT-5 measured
LMArena WebDev16041418GLM 5.2
AA Coding Index68.837.8GLM 5.2
LiveCodeBench (Vals AI)69.5%85.9%GPT-5
SWE-bench Verified (Vals AI)82.8%69.0%GLM 5.2
Vibe Code Bench (Vals AI)64.0%20.1%GLM 5.2
Code migration (Vals AI)37.9%Not measuredOnly GLM 5.2 measured
ProgramBench (Vals AI)0.5%Not measuredOnly GLM 5.2 measured
Terminal-Bench 2.1 (Vals AI)67.8%Not measuredOnly GLM 5.2 measured
SkillsBench (Vals AI)45.1%Not measuredOnly GLM 5.2 measured
LiveCodeBench (Artificial Analysis run)Not measured84.6%Only GPT-5 measured
SciCode51.2%Not measuredOnly GLM 5.2 measured
Terminal-Bench Hard (Artificial Analysis run)50.8%37.9%GLM 5.2
Terminal-BenchNot measured49.6%Only GPT-5 measured
FrontierCode24.5%Not measuredOnly GLM 5.2 measured
GSO-BenchNot measured6.9%Only GPT-5 measured
WeirdML70.1%60.7%GLM 5.2
ALE-Bench1047.0807.6GLM 5.2
LMArena Text: coding14871436GLM 5.2
LMArena Text: software and IT14861420GLM 5.2
LMArena WebDev: React1617Not measuredOnly GLM 5.2 measured
LMArena WebDev: HTML15651427GLM 5.2
SciCodeNot measured0.0%Only GPT-5 measured
Neither model has a result on the other 15 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GLM 5.2 and GPT-5
BenchmarkGLM 5.2GPT-5Leader
AA Intelligence Index33.723.0GLM 5.2
Epoch Capabilities Index151.9150.0GLM 5.2
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GLM 5.2 and GPT-5
BenchmarkGLM 5.2GPT-5Leader
AA Agentic Index38.4Not measuredOnly GLM 5.2 measured
Design Arena: agents building web apps1222Not measuredOnly GLM 5.2 measured
Design Arena: agents building full-stack apps1241Not measuredOnly GLM 5.2 measured
Design Arena: agents building mobile apps1159Not measuredOnly GLM 5.2 measured
Design Arena: agents building Android apps1178Not measuredOnly GLM 5.2 measured
Design Arena: agents building Godot games1142Not measuredOnly GLM 5.2 measured
Design Arena: agents building games1206Not measuredOnly GLM 5.2 measured
Design Arena: HTML slides1125Not measuredOnly GLM 5.2 measured
Design Arena: PowerPoint slides1170Not measuredOnly GLM 5.2 measured
SREBench (Vals AI)0.0%Not measuredOnly GLM 5.2 measured
Finance Agent (Vals AI)49.7%Not measuredOnly GLM 5.2 measured
Legal Research Bench (Vals AI)31.3%Not measuredOnly GLM 5.2 measured
Excel Modeling Benchmark (Vals AI)61.5%Not measuredOnly GLM 5.2 measured
τ²-Bench Telecom99.1%86.5%GLM 5.2
APEX-Agents45.2%Not measuredOnly GLM 5.2 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
PostTrainBench31.7%Not measuredOnly GLM 5.2 measured
Vending-Bench 2$8,314Not measuredOnly GLM 5.2 measured
BrowseComp-PlusNot measured80.0%Only GPT-5 measured
Neither model has a result on the other 18 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index94
Reasoning benchmarks for GLM 5.2 and GPT-5
BenchmarkGLM 5.2GPT-5Leader
GPQA Diamond85.6%85.6%Tie
MMMU Pro (Vals AI)Not measured81.5%Only GPT-5 measured
GPQA Diamond (Artificial Analysis run)89.5%85.4%GLM 5.2
Humanity's Last Exam (Artificial Analysis run)41.1%28.5%GLM 5.2
GPQA Diamond (Epoch AI run)91.9%86.2%GLM 5.2
ARC-AGI77.0%65.7%GLM 5.2
ARC-AGI-222.8%9.9%GLM 5.2
SimpleBench58.8%56.7%GLM 5.2
Chess puzzles22.0%36.0%GPT-5
Mystery game puzzles19.0%23.0%GPT-5
EBR-bench9.5%12.7%GPT-5
VPCTNot measured66.0%Only GPT-5 measured
LMArena Text: hard prompts14811415GLM 5.2
LMArena Text: expert14871419GLM 5.2
LMArena Text: hard prompts in English14811419GLM 5.2
LMArena Vision: diagramsNot measured1252Only GPT-5 measured
LMArena Vision: homeworkNot measured1278Only GPT-5 measured
Kagi LLM Benchmark62.6%72.7%GPT-5
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index51
Math benchmarks for GLM 5.2 and GPT-5
BenchmarkGLM 5.2GPT-5Leader
AIMENot measured93.4%Only GPT-5 measured
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 AIME86.4%91.4%GPT-5
FrontierMath, tiers 1 to 359.2%55.4%GLM 5.2
FrontierMath, tier 429.3%22.0%GLM 5.2
ProofBench35.0%18.0%GLM 5.2
MATH level 5Not measured98.1%Only GPT-5 measured
LMArena Text: math14831407GLM 5.2
LMArena Text: mathematical work14891405GLM 5.2
Neither model has a result on the other 1 board here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index64
Knowledge benchmarks for GLM 5.2 and GPT-5
BenchmarkGLM 5.2GPT-5Leader
MMLU Pro86.7%86.5%GLM 5.2
LegalBench (Vals AI)84.1%86.0%GPT-5
CaseLaw (Vals AI)Not measured66.5%Only GPT-5 measured
CorpFin (Vals AI)66.1%61.1%GLM 5.2
TaxEval (Vals AI)73.3%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)40.8%49.6%GPT-5
MMLU Pro (Artificial Analysis run)Not measured87.1%Only GPT-5 measured
SimpleQA Verified34.2%50.1%GPT-5
GeoBenchNot measured81.0%Only GPT-5 measured
LMArena Text: science14891416GLM 5.2
LMArena Text: medicine and healthcare14751413GLM 5.2
LMArena Text: legal and government14861431GLM 5.2
LMArena Text: business and finance14511400GLM 5.2
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 index80
Web design benchmarks for GLM 5.2 and GPT-5
BenchmarkGLM 5.2GPT-5Leader
Design Arena: websites12851184GLM 5.2
Design Arena: UI components12941177GLM 5.2
Design Arena: game dev12681185GLM 5.2
Design Arena: data viz12851221GLM 5.2
Design Arena: 3D12871055GLM 5.2
Design Arena: all code categories12871167GLM 5.2
Design Arena: SVG12131188GLM 5.2
Design Arena: ASCII art11911141GLM 5.2
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index211
General benchmarks for GLM 5.2 and GPT-5
BenchmarkGLM 5.2GPT-5Leader
SAGE (Vals AI)Not measured43.7%Only GPT-5 measured
MedScribe (Vals AI)83.5%83.7%GPT-5
IFBench73.3%73.1%GLM 5.2
Long context reasoning (AA-LCR)78.3%78.2%GLM 5.2
DTBench93.6%90.7%GLM 5.2
LMCA45.8%40.0%GLM 5.2
Fiction.LiveBenchNot measured97.2%Only GPT-5 measured
Creative writing (Lech Mazur)Not measured86.0%Only GPT-5 measured
Surface Evolver Bench55.6%Not measuredOnly GLM 5.2 measured
LMArena Text14701406GLM 5.2
LMArena Text: instruction following14661388GLM 5.2
LMArena Text: creative writing14631365GLM 5.2
LMArena VisionNot measured1232Only GPT-5 measured
LMArena Text: English14751409GLM 5.2
LMArena Text: non-English14591397GLM 5.2
LMArena Text: Chinese15221422GLM 5.2
LMArena Text: German14701416GLM 5.2
LMArena Text: Japanese14501409GLM 5.2
LMArena Text: Korean14401360GLM 5.2
LMArena Text: French14791409GLM 5.2
LMArena Text: Spanish14781399GLM 5.2
LMArena Text: Russian14681407GLM 5.2
LMArena Text: Polish14561431GLM 5.2
LMArena Text: multi-turn14691426GLM 5.2
LMArena Text: longer queries14801399GLM 5.2
LMArena Text: writing and language14631384GLM 5.2
LMArena Text: entertainment and media14501379GLM 5.2
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.2 and GPT-5
BenchmarkGLM 5.2GPT-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.2$0.0036Fits in one request
GPT-5$0.0063Fits in one request

GLM 5.2 costs less

Repository review

50K input + 3K output tokens

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

GLM 5.2 costs less

Agent loop

200K input + 10K output tokens

GLM 5.2$0.324Fits in one request
GPT-5$0.350Fits in one request

GLM 5.2 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.2 and GPT-5
SpecificationZ.ai GLM 5.2OpenAI GPT-5
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedJune 16, 2026August 7, 2025
Context window1.05M400K
Input $/Mtok$1.40$1.25
Output $/Mtok$4.40$10.00
Coding index61.138.8
Independent measurements behind it43
Cost per solved task$0.86$0.39
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.2 better than GPT-5 for coding?

Pick GLM 5.2 for coding: it scores 61.1 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.86) and work measured by LiveCodeBench (Vals AI) or Chess puzzles, where it leads.

Which is cheaper, GLM 5.2 or GPT-5?

GLM 5.2 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.2 costs $0.86 and GPT-5 $0.39.

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

GLM 5.2, with 1.05M tokens against 400K.

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

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