GLM-5 Review: GLM-5.2, 5.1 & 5 — Benchmarks, Pricing & Access
GLM-5 is the model that put Zhipu AI (Z.ai) on the frontier — and its newest version, GLM-5.2, is the top-ranked open-weights model on the independent Artificial Analysis Intelligence Index. It's MIT-licensed, has a 1M-token context window, and costs a fraction of the Western frontier. This review maps the fast-moving GLM-5 line (GLM-5 → 5.1 → 5.2), separates the independently-verified benchmarks from the vendor-reported ones, gives the real Z.ai pricing, models what it costs to run, and shows how to call it.
What GLM-5 is
GLM-5 is Zhipu AI / Z.ai's frontier-class model family, built around the thesis of its technical paper — "GLM-5: from Vibe Coding to Agentic Engineering" (arXiv 2602.15763). All three current versions are open-weights, MIT-licensed, text-only Mixture-of-Experts LLMs (~744-753B total parameters, ~40B active per token), available on Hugging Face under zai-org and via the Z.ai API. The newest, GLM-5.2, is the top-ranked open-weights model on the independent Artificial Analysis Intelligence Index — a genuine frontier-adjacent model at open-weights prices.
The version map (5 → 5.1 → 5.2)
| Version | Released | Context | Headline |
|---|---|---|---|
| GLM-5 | Feb 12, 2026 | 200K | Launched the family; DeepSeek Sparse Attention, async RL |
| GLM-5.1 | early April 2026 | 200K | Long-horizon agentic; vendor-claimed up-to-8-hour autonomous run |
| GLM-5.2 | June 16, 2026 | 1M | Current flagship; #1 open-weights on the Artificial Analysis Index |
The cadence is fast — three releases in four months — and all stay open-weights (MIT) with FP8 variants. GLM-5.1 shipped proprietary-first, then open-sourced around April 8; GLM-5.2's subscriber rollout began ~June 13 before the June 16 standalone API.
Benchmarks (verified vs vendor)
It's worth separating what's independently verified from what the vendor reports:
- Independent (Artificial Analysis): GLM-5.2 scored 51 on the Intelligence Index (v4.1) — #1 among open-weights models at release, and #4 overall (behind Claude Fable 5, Opus 4.8, and GPT-5.5). This is the strongest verified signal.
- Vendor-reported (Hugging Face model card): SWE-bench Pro 62.1, AIME 2026 99.2, GPQA-Diamond 91.2, Terminal-Bench 2.1 ~81-82.7. Strong numbers, but not independently reproduced.
- GLM-5.1: vendor-reported SWE-bench Pro 58.4 and an up-to-8-hour autonomous single-task claim.
The honest read: GLM-5.2 is a legitimately frontier-adjacent model — independently the best open-weights option — with vendor benchmarks that look frontier-competitive but should be treated as vendor framing until reproduced.
How GLM-5.2 did in our test
Beyond the leaderboards, we ran GLM-5.2 ourselves through our executed-code coding benchmark — nine tasks scored by running the generated code against hidden tests (see our methodology). It scored 9/9 — a clean sweep — competitive with the frontier on correctness. The cost story is more nuanced than the sticker price: GLM-5.2 reasons moderately, emitting ~560 reasoning tokens per task and averaging ~12 seconds per task. That put its real billed cost at about $1.99 per 1,000 tasks — below Claude Opus 4.8's $4.05, but well above lean coders like DeepSeek V4-Flash ($0.13) and Qwen3 Coder Next ($0.10).
Pricing
GLM's prices are a fraction of the Western frontier — GLM-5.2's combined per-token cost (~$5.80/1M) is roughly one-sixth of GPT-5.5's:
Z.ai API rates (per 1M tokens): GLM-5.2 $1.40 in / $4.40 out ($0.26 cached); GLM-5.1 $1.40 / $4.40; GLM-5 $1.00 / $3.20 ($0.20 cached). And because the weights are MIT-licensed, self-hosting is an option if you have the GPUs.
Note: those are Z.ai's own API rates. Through OpenRouter and gateways, GLM-5.2 is often cheaper — around $0.95 in / $3.00 out per 1M (GLM-5 ~$0.60 / $1.92) — so price it on the endpoint you'll actually call.
What GLM-5.2 costs to run
Modeled monthly cost across five workloads — GLM-5.2 sits well below the Western flagship, with GLM-5 cheaper and DeepSeek cheaper still:
| Monthly workload | GLM-5.2 | GLM-5 | GPT-5.5 | DeepSeek V3.2 |
|---|---|---|---|---|
| Support chatbot | $109 | $78.4 | $560 | $13.3 |
| RAG / knowledge base | $368 | $264 | $1,600 | $52.8 |
| Coding agent | $222 | $160 | $1,150 | $26.9 |
| Batch extraction | $245 | $176 | $990 | $37.2 |
| Content generation | $204 | $148 | $1,300 | $18.2 |
How to access it
Three ways: the Z.ai API, a gateway, or self-host. The API is OpenAI-SDK-compatible:
from openai import OpenAI
client = OpenAI(base_url="https://api.z.ai/api/paas/v4", api_key="$ZAI_API_KEY")
resp = client.chat.completions.create(
model="glm-5.2", # or glm-5.1, glm-5
messages=[{"role": "user", "content": "Plan and implement this feature..."}],
)
print(resp.choices[0].message.content)
Or reach GLM-5.2 through a gateway with one key alongside 300+ other models; or download the MIT weights from Hugging Face (zai-org/GLM-5.2) to self-host.
Who should use GLM-5.2
Open-weights + frontier
- You want the top open-weights model and can't use a closed flagship — GLM-5.2 leads the open Index.
Agentic coding
- Long-horizon coding/engineering at ~1/6 the frontier price; pair with the 1M context for big repos.
Self-host / data control
- MIT weights on Hugging Face — run it in your own infrastructure.
Even cheaper?
- If you don't need GLM-5.2's Index lead, DeepSeek/Qwen are cheaper per token — compare.
Call GLM-5.2 and 300+ models with one key
GLM-5.2, Claude Opus 4.7, GPT-5.4, DeepSeek V3.2 and more — one OpenAI-compatible endpoint, live price comparison, failover.
FAQ
What is GLM-5?
Zhipu/Z.ai's frontier-class open-weights MoE family (~744B/40B), MIT-licensed. GLM-5 launched Feb 12, 2026; GLM-5.1 in early April; GLM-5.2 (current flagship) June 16, 2026.
Is GLM-5.2 good?
Yes — 51 on the independent Artificial Analysis Index, #1 open-weights at release (#4 overall). Vendor-reported SWE-bench Pro 62.1, AIME 2026 99.2, GPQA-Diamond 91.2.
How much does GLM-5 cost?
Z.ai API per 1M: GLM-5.2 $1.40/$4.40 ($0.26 cached); GLM-5.1 same; GLM-5 $1.00/$3.20. ~1/6 of GPT-5.5's combined cost. MIT weights are free to self-host.
Is GLM-5 open source?
Yes — GLM-5/5.1/5.2 are open-weights under MIT on Hugging Face (zai-org), with FP8 variants. Self-host, fine-tune, ship commercially.
What is GLM-5.2's context window?
1M tokens (up from 200K on GLM-5/5.1), with output capped around 128-131K depending on mode.
How do I use the GLM-5 API?
OpenAI-SDK-compatible at https://api.z.ai/api/paas/v4 — set base URL + model id (e.g. glm-5.2). Or self-host, or use a gateway like DataLLM Lab.
Difference between GLM-5, 5.1, and 5.2?
GLM-5 launched the family (200K, sparse attention); GLM-5.1 pushed long-horizon agentic (8h claim); GLM-5.2 is the flagship — 1M context, top open-weights Index score, best coding numbers.
Is GLM-5.2 better than DeepSeek or GPT-5?
It leads open-weights on the independent Index and ranks #4 overall; GPT-5.5/Opus 4.8 are above it overall. Vs DeepSeek it scores higher but costs more per token. Test on your tasks.
DataLLM Lab