Skip to content
FAQ

China's GLM-5.2 Beats GPT-5.5 on Coding Benchmarks at One-Sixth the Cost

Z.ai's open-weight GLM-5.2, a 753-billion-parameter mixture-of-experts model released June 17, outperforms OpenAI's GPT-5.5 on SWE-bench Pro (62.1 vs 58.6) and long-horizon coding tasks, while charging just $4.40 per million output tokens—roughly one-sixth of GPT-5.5's price. With an MIT license and weights freely downloadable from Hugging Face, GLM-5.2 reshapes the calculus for developers locked out of premium closed-source models.

5 min read

When Anthropic’s Fable 5 went offline on June 12 due to US export controls, it left a significant gap at the frontier of AI performance. Z.ai, the Beijing-based company formerly known as Zhipu AI, has just demonstrated how quickly that gap can be filled—and from an unexpected direction.

Released June 17, 2026, The weights are MIT-licensed and downloadable from Hugging Face and ModelScope, with no regional restrictions.

Architecture: Scale With Efficiency

GLM-5.2 is a 753-billion-parameter mixture-of-experts (MoE) model, but only about 40 billion parameters activate for any given input. This sparse activation architecture—similar in principle to Mistral’s Mixtral family and more recently Google’s Gemini Ultra—means GLM-5.2 achieves the raw capacity of a dense 753B model while running inference at the speed and cost of a much smaller one.

The model extends its predecessor GLM-5 with two architectural innovations Z.ai calls IndexShare and multi-token prediction. IndexShare reuses the same attention indexer across every four sparse attention layers, cutting per-token compute by 2.9 times at a one-million-token context; multi-token prediction lets the model predict several tokens at once rather than one, speeding up decoding. The full context window stretches to one million tokens, making it competitive with the largest context offerings from OpenAI and Anthropic.

The Benchmark Case

The headline number is SWE-bench Pro, the gold standard for real-world software engineering tasks drawn from verified GitHub pull requests. GLM-5.2 scores 62.1—up from its predecessor GLM-5.1’s 58.4 and decisively ahead of GPT-5.5’s 58.6. For context, Claude Opus 4.8 scores 69.2 on SWE-bench Pro, so GLM-5.2 trails it by about seven points.

On FrontierSWE Dominance—a benchmark designed to measure long-horizon engineering tasks that take hours rather than minutes—GLM-5.2 scored 74.4%, edging past GPT-5.5 at 72.6% and sitting just below Claude Opus 4.8’s 75.1%. The pattern repeats on PostTrainBench, where GLM-5.2 outperforms GPT-5.5 and ranks second behind Opus 4.8, and on SWE-Marathon, where GLM-5.2 trails Opus 4.8 but remains second only to the Opus series. All three are long-horizon coding benchmarks.

Perhaps most striking is GLM-5.2’s first-place finish on Design Arena, the crowdsourced HTML and web design leaderboard. With an Elo score of around 1,360, it placed above Claude Fable 5 and the Opus 4.6 and 4.7 models. Design Arena measures outputs that human raters prefer rather than automated pass/fail criteria, suggesting GLM-5.2’s quality improvements extend beyond pure programming correctness to aesthetic and structural judgment in code generation.

On the Artificial Analysis Intelligence Index v4.1—a composite benchmark aggregating performance across reasoning, coding, and knowledge tasks—GLM-5.2 scores 51, placing it ahead of MiniMax-M3 (44), DeepSeek V4 Pro (44), and Kimi K2.6 (43) among open-weight models.

The Cost Equation

For many developers, the benchmark story is secondary to the pricing story. GLM-5.2’s API endpoint, served through Z.ai’s Anthropic-compatible API, charges $1.40 per million input tokens and $4.40 per million output tokens. GPT-5.5’s output tokens cost approximately $30 per million—roughly 6.8 times more expensive.

The practical implication is substantial. A coding agent running at 10 million output tokens per day would cost roughly $44 on GLM-5.2’s API versus $300 on GPT-5.5. For startups or individual developers whose workloads previously required premium models, GLM-5.2 changes the economics of AI-assisted development meaningfully.

The model also offers two effort levels: High sacrifices only a few points of performance while roughly halving token output, while Max pushes to peak intelligence at the cost of more output tokens. This mirrors the tiered inference approach adopted by OpenAI’s o-series and Anthropic’s extended thinking mode.

Open Weights, Open Questions

The MIT license on GLM-5.2’s weights is, in the context of 2026’s increasingly restricted AI landscape, notable. With Anthropic’s Fable 5 and Mythos 5 still offline due to US Commerce Department export controls, and OpenAI restricting access in several jurisdictions, GLM-5.2 represents one of the few frontier-adjacent models that organizations can download, self-host, and deploy without vendor dependency.

Self-hosting at full precision requires roughly 1.5 terabytes of GPU memory; the reference deployment uses eight NVIDIA H200 GPUs, and FP8 precision cuts the weight footprint to about 744 GB. That places fully sovereign deployment out of reach for most development teams and a large share of mid-sized enterprises.

The data sovereignty question is more complex for teams using Z.ai’s hosted API. As a Chinese company operating under PRC jurisdiction, Z.ai’s data handling practices are subject to Chinese law, including potential government access provisions. Security-conscious organizations—particularly those in defense, healthcare, or finance—have flagged this as a material concern for API usage, even as the open weights enable on-premises alternatives.

Competitive Context: China’s Open-Source Offensive

GLM-5.2 arrives as part of a sustained pattern from Chinese AI labs that began in earnest with DeepSeek-R1 in early 2025. The strategy has been remarkably consistent: match or exceed US closed-source frontier performance with open-weight models, price aggressively via API, and publish weights under permissive licenses. Kimi K2.6, MiniMax-M3, and now GLM-5.2 have each taken turns occupying the “best open-weight” position on key benchmarks within weeks of each other.

The result is a competitive dynamic that US AI companies didn’t fully anticipate: open-source Chinese models are effectively setting a price ceiling on what closed-source US models can charge for comparable coding performance. When GLM-5.2 solves software engineering tasks at 1/6th the cost of GPT-5.5 and licenses the underlying weights for free, it makes premium pricing harder to justify for any developer task that doesn’t explicitly require frontier-only capabilities.

For the broader AI industry, the more significant question is what GLM-5.2 signals about the pace of Chinese AI development. Z.ai’s model reaches near-Opus-4.8 performance on several coding dimensions—a model Anthropic released only two months ago and positioned as its most capable reasoning system. The gap between US closed-source frontier and Chinese open-weight is narrowing faster than most competitive forecasts anticipated.

What Comes Next

Z.ai has indicated through public communications that Anthropic’s publicly available research on chain-of-thought and tool-use scaling informed some of GLM-5.2’s training approach. Whether deliberate or coincidental, the alignment between GLM-5.2’s capabilities and the techniques Anthropic publicly documented suggests that open publication of AI research—a longstanding norm in the field—may increasingly benefit competitors as much as collaborators.

For developers making model choices in the second half of 2026, GLM-5.2 has established a new baseline expectation: open-weight, MIT-licensed, frontier-competitive, and dramatically cheaper than the closed-source alternatives. The next question is whether GPT-5.6—rumored for a late-June launch—can re-establish a meaningful performance gap that justifies its price premium.

Correction (November 15, 2026): 10 sentences were corrected or removed to match the sources listed on this page.

GLM-5.2 Zhipu AI Z.ai open-source AI China AI coding benchmarks GPT-5.5 open weights
Share

Related Stories

MiniMax M3 Beats GPT-5.5 on Coding at 5% of the Compute Cost

Chinese AI lab MiniMax released M3 on June 1, an open-weight multimodal model that outperforms both GPT-5.5 and Gemini 3.1 Pro on the SWE-Bench Pro coding benchmark while running at just 1/20th the per-token compute of its predecessor. With a 1-million-token context window and native multimodality built from pretraining, M3 is the most credible open-weight challenge to frontier closed models yet.

5 min read

Moonshot AI Releases Kimi K2.7 Code: 1-Trillion-Parameter Open-Source Coding Agent

Moonshot AI dropped Kimi K2.7 Code on June 12, a 1-trillion-parameter Mixture-of-Experts coding model that cuts reasoning token usage by 30% versus its predecessor and posts a 21.8% gain on Kimi Code Bench v2. Available on Hugging Face under a Modified MIT license, it stakes a position in the increasingly competitive open-source coding agent market.

4 min read