GLM-5 vs GPT-5.2

Benchmarks, API pricing and specs, head to head. Data updated 2026-06-10.

GLM-5

Z.ai (Zhipu) · Feb 2026

Z.ai's 744B open-weights MoE — within ~4 points of Opus 4.6 on SWE-bench Verified at $1/$3.20 per million tokens.

GPT-5.2

OpenAI · Dec 2025

The December 2025 GPT-5 refresh: stronger coding and agentic skills than GPT-5.1 at a moderate price, now the value pick in OpenAI's lineup.

The verdict

GPT-5.2 wins 1 of the 1 benchmarks these models share, against 0 for GLM-5. On price the gap is dramatic: GLM-5 works out roughly 3.1x cheaper per blended million tokens. GPT-5.2 also takes 400K of context versus 200K for GLM-5. And GLM-5 is open-weights (MIT), so it can be self-hosted — a structural advantage if data control or vendor independence matters.

Benchmark head-to-head 01

SWE-bench Verified
~77.8%~77.9%
GLM-5GPT-5.2

Specs & pricing

GLM-5GPT-5.2
modhub Index
Input price / 1M$1$1.75
Output price / 1M$3.2$14
Context window200K400K
Max output128K128K
Open weightsyes (MIT)no
Reasoning modelyesyes
Multimodal inputtexttext, image
Knowledge cutoffDec 2025Aug 2025
ReleasedFeb 2026Dec 2025
Example monthly cost*$14.80$38.50

* 10M input + 1.5M output tokens per month at list prices, no caching. Green = better value on that row.

Frequently asked questions

Which is better, GLM-5 or GPT-5.2?
GPT-5.2 wins 1 of the 1 benchmarks these models share, against 0 for GLM-5. On price the gap is dramatic: GLM-5 works out roughly 3.1x cheaper per blended million tokens. GPT-5.2 also takes 400K of context versus 200K for GLM-5. And GLM-5 is open-weights (MIT), so it can be self-hosted — a structural advantage if data control or vendor independence matters.
Which is cheaper, GLM-5 or GPT-5.2?
GLM-5 costs $1/$3.2 per million input/output tokens, while GPT-5.2 costs $1.75/$14. For a typical workload of 10M input and 1.5M output tokens per month, that's $14.80 versus $38.50.
Which model is better for coding, GLM-5 or GPT-5.2?
On SWE-bench Verified — the standard agentic-coding benchmark — GPT-5.2 scores ~77.9% versus ~77.8% for GLM-5, making GPT-5.2 the stronger pick for coding agents.

More comparisons