Zhipu AI, operating its hosted API as Z.AI, released GLM-5.2 as a 753-billion-parameter Mixture-of-Experts model under the MIT license, with weights published on Hugging Face. Its hosted API costs less per token than the closed models compared on this page. Z.AI also reports scores ahead of GPT-5.5 and Claude Opus 4.7 on more than one named coding test, but those provider-run comparisons do not establish overall capability or production performance.
The catch isn't the license or the price. It's the size. At 753B total parameters, this isn't a model you run on a gaming GPU, MIT license or not — plan on a serious multi-GPU server if you want to self-host it, and the hosted API is the realistic path for most teams.
A sourcing note before the numbers do any work: the pricing and context figures come from Z.AI's own pricing and model documentation. The parameter count and license come from the official Hugging Face model card under the zai-org organization. The benchmark figures below are Z.AI's own provider-reported scores from the same model card and release notes — not an independent benchr test, and not third-party verification. Treat them as a vendor claim with a named benchmark, which is a much stronger evidence tier than an unnamed marketing number, but still one company's own run.
What Z.AI actually claims, and against whom
Z.AI's release notes and Hugging Face card list a specific, named set of results: SWE-bench Pro at 62.1 (up from GLM-5.1's 58.4), Terminal-Bench 2.1 (Terminus-2 harness) at 81.0, GPQA-Diamond at 91.2, AIME 2026 at 99.2, and Humanity's Last Exam at 40.5 text-only or 54.7 with tool use. Z.AI frames the release as its "highest-ranked open-source model" across the suites it tested, and says it outperforms GPT-5.5 and Claude Opus 4.7 on multiple benchmarks — while landing about a percentage point behind Claude Opus 4.8 on its own FrontierSWE comparison.
| Benchmark | GLM-5.2 score | Context |
|---|---|---|
| SWE-bench Pro | 62.1 | Up from GLM-5.1's 58.4 |
| Terminal-Bench 2.1 (Terminus-2) | 81.0 | Anthropic's own Opus 4.8 scores 85.0 on the same test, per Z.AI's comparison |
| GPQA-Diamond | 91.2 | Graduate-level science reasoning |
| AIME 2026 | 99.2 | Competition math; this tier of score is now common among reasoning-tuned models |
| Humanity's Last Exam | 40.5 / 54.7 | Text-only / with tool use |
In Z.AI's Terminal-Bench 2.1 comparison, GLM-5.2 scores 81.0 and Opus 4.8 scores 85.0. The four-point difference applies to that provider-reported benchmark and does not quantify an overall capability gap or predict production performance.
Compare price and measured task performance
At $1.40 input and $4.40 output per million tokens, GLM-5.2 costs a fraction of GPT-5.5's $5/$30 or Claude Opus 4.8's $5/$25 — roughly a 20x-plus difference on output tokens against Opus 4.8. Cached input at $0.26 per million reduces the listed rate for repeated context. A procurement comparison should combine those rates with task pass rate, retries, latency, review effort, and hosting costs rather than treating a per-token difference as compensation for a benchmark gap.
DeepSeek-V4-Pro runs $1.32/$3.96 at peak and $0.66/$1.98 off-peak since August 16, 2026, while Alibaba's open-weight Qwen3.6-27B is free to self-host. Their published benchmark sets are not identical to GLM-5.2's, so the figures do not establish which option is stronger for a coding workload. Use the open-weight tier roundup to build a shortlist, then compare the models on the same tasks and full deployment cost.
MIT license and hardware requirements
The Hugging Face model card lists the weights under the MIT License. Review the current license text for the planned commercial use, modification, and redistribution. License terms do not reduce the hardware requirement: at 753B total parameters in a Mixture-of-Experts architecture, this is not a laptop or single-GPU model. Hardware in the 8xH100 range is typical for this size class, and Z.AI's documentation does not specify a lighter self-hosted configuration.
If the deployment cannot provision and operate that hardware, include the hosted API at api.z.ai in the cost comparison. Evaluate its rate against the infrastructure, operations, latency, and utilization costs of self-hosting or fine-tuning.
The verdict
GLM-5.2 earns a place in the coding-model conversation on the strength of its own numbers: real benchmark gains over its GLM-5.1 predecessor, a genuine (if not category-leading) showing against GPT-5.5 and Opus 4.7, and pricing that undercuts every closed frontier competitor by a wide margin. The gap to Claude Opus 4.8 on Terminal-Bench 2.1 is real, and every score here is Z.AI's own benchmark run rather than an independent one — read the comparison set, not just the headline claim.
Go with GLM-5.2 if coding and agent work is the job and budget matters, and you're comfortable with a hosted API rather than self-hosting a 753B model. When this review ran, Claude Opus 4.8 was the pick if you needed the top score on Terminal-Bench regardless of cost. For a wider field comparison, the best free coding model piece and the coding assistants shootout both sit next to this review.
Frequently asked
Is GLM-5.2 really open-weight?
Yes. Zhipu AI (Z.AI) published the weights on Hugging Face under the zai-org organization and lists the MIT License. Review the current license text against the intended commercial use, modification, or redistribution.
How much does GLM-5.2 cost?
The hosted API runs $1.40 per million input tokens and $4.40 per million output tokens, with cached input at $0.26 per million, per Z.AI's official pricing page. Self-hosting is free of licensing cost but requires substantial multi-GPU hardware given the model's 753B parameter count.
Does GLM-5.2 beat GPT-5.5 or Claude?
Z.AI's own provider-reported benchmarks claim wins over GPT-5.5 and Claude Opus 4.7 on several coding and reasoning tests, but GLM-5.2 trails Claude Opus 4.8 by about a point on Z.AI's own FrontierSWE comparison and by four points on Terminal-Bench 2.1 (81.0 vs. 85.0). These are Z.AI's own benchmark numbers, not independently verified.
Can I run GLM-5.2 on my own hardware?
The published weights can be self-hosted under the listed MIT License, but a 753-billion-parameter model requires multi-GPU infrastructure rather than a single consumer card. Compare that infrastructure and operating cost with the hosted API at api.z.ai.
Changelog
- 2026-10-15 — Removed a legacy numeric rating that lacked a linked assessment rubric and recorded evaluation. No new model evaluation was performed for this correction.
- September 11, 2026 — Added a September 2026 note: GLM-5.3 replaced GLM-5.2 at the same $1.40 / $4.40, and GLM-5.3-Flash is the cheap tier. Dated the "current Anthropic flagship" and Opus 4.8 recommendation lines to the review period.
- August 8, 2026 — Published. Pricing and context window verified against Z.AI's official docs; license and parameter count verified against the official Hugging Face model card; benchmark figures sourced to Z.AI's own provider-reported release notes and model card, not an independent test.
References
- Z.AI, "GLM-5.2 model guide," docs.z.ai/guides/llm/glm-5.2, accessed August 8, 2026. Source for context window, max output, and benchmark claims.
- Z.AI, "Pricing," docs.z.ai/guides/overview/pricing, accessed August 8, 2026. Source for per-token pricing.
- Z.AI, "Release notes," docs.z.ai/release-notes/new-released, accessed August 8, 2026. Source for the release date.
- Zhipu AI, "GLM-5.2 model card," huggingface.co/zai-org/GLM-5.2, accessed August 8, 2026. Source for license, parameter count, architecture, and the full benchmark table.