Zhipu AI launched GLM-5.2 on June 13, 2026 — two days ago as of this writing. It is a coding-first model with a 1-million-token context window, an MIT license, and open weights arriving the week of June 16. If you are evaluating models for repository-scale coding tasks or self-hosted deployments, this release is worth tracking now.


What GLM-5.2 Is

GLM-5.2 is Zhipu AI’s third release in the GLM-5 family. The model shares the same base architecture as GLM-5.1 — Zhipu’s own GLM-5.1 model card lists 754 billion total parameters (the GLM-5.2 model card lists 753 billion — effectively the same architecture, with 40 billion active parameters per token) — and focuses post-training changes on extended-context coding tasks.

The headline number: the context window expands from 200K tokens (GLM-5.1) to 1 million tokens, with a maximum output of 131,072 tokens (128K). The stated use cases are repository-scale refactoring, long-horizon agentic coding, and full-codebase analysis within a single prompt window.


How It Fits the GLM Family

Model Context Focus
GLM-4.5 128K General-purpose
GLM-5 200K General + function calling
GLM-5.1 200K Coding, SWE-Bench optimized
GLM-5.2 1M Agentic coding, repo-scale

Context figures per the models’ Hugging Face cards (GLM-5 evaluations reference a max context around 202,752 tokens) and the GLM-5.1 API listing. GLM-5.2 extends rather than replaces GLM-5.1. Where GLM-5.1 was optimized for benchmark performance on standard coding tasks, GLM-5.2 extends the context window for workflows that require holding an entire codebase in context — full monorepo analysis, multi-file refactoring, documentation-aware code generation.


API Access (Available Now)

The model is live via Z.ai, Zhipu’s developer platform, through the Coding Plan.

OpenAI-compatible endpoint:

https://api.z.ai/api/coding/paas/v4

Model IDs:

  • glm-5.2 — standard context
  • glm-5.2[1m] — 1M context window

Pricing (per Z.ai’s official pricing page):

  • Input: $1.40 per 1M tokens
  • Output: $4.40 per 1M tokens
  • Flat-rate Coding Plan: the Lite tier lists at $18/month standard rate, with discounts for longer commitments (as of 2026-07-30, per independent pricing tracking; we could not confirm the site’s original “$10/quarter” figure against any current source and have corrected it here — check z.ai/subscribe for the live rate before budgeting)

OpenAI SDK compatibility: Drop-in replacement if you already use the OpenAI Python or JavaScript SDK. Change the base URL and model name; the rest of your code stays the same.


Open Weights: Coming Week of June 16

Open weights under the MIT license are promised for the week of June 16–22, 2026. No exact date has been given. Weights will be published on HuggingFace under the zai-org organization — confirmed live now at huggingface.co/zai-org/GLM-5.2, listed under the MIT license.

Once released, supported inference frameworks include (per the GLM-5.2 model card and the GLM-5 GitHub repo):

Framework Format Notes
vLLM BF16, FP8 Recommended for production
SGLang BF16, FP8 Good for structured output
Ollama GGUF Consumer-friendly local deployment
KTransformers Kernel-optimized inference

GGUF quantizations for Ollama and LM Studio typically appear within a few days of weight release from community contributors.


Benchmarks: The Honest Picture

No GLM-5.2-specific benchmarks have been published as of this writing. The model launched two days ago without a benchmark release. Here is what is known:

GLM-5.1 (parent model) published scores (per Zhipu’s own GLM-5.1 model card):

  • SWE-Bench Pro: 58.4, versus GPT-5.4 at 57.7

We could not verify GLM-5.1 MMLU/MATH-500 figures against Zhipu’s own model card — it does not publish those two numbers — so we have cut them rather than attach a number we can’t confirm came from the model in question.

What the 5.2 scores will look like: Unknown as of this writing. The context expansion from 200K to 1M tokens was the primary engineering change. Whether the coding task scores improve, stay flat, or regress slightly compared to 5.1 is not confirmed. Independent evaluations will appear 1–2 weeks after open weight release.

Update (added during 2026-07-30 audit): GLM-5.2 benchmarks have since been published. Per Zhipu’s GLM-5.2 model card, the model scores 62.1 on SWE-Bench Pro (up from GLM-5.1’s 58.4) and 81.0 on Terminal-Bench 2.1. Independent commentary, e.g. from ML educator Sebastian Raschka, places it among the strongest open-weight models available at that time.


The 1M Context: What It Actually Enables

A 1M-token context window is roughly 700,000 words, or 25,000+ lines of code, depending on the language. At full context:

  • A mid-size monorepo (50–200 files) fits in a single prompt without chunking
  • Full API documentation plus implementation plus test suite can coexist in one call
  • Multi-session agentic workflows can maintain long task histories without pruning

The practical caveat: Long-context performance at the far end of a 1M window is unproven in third-party evaluation. Frontier models routinely underperform their stated context limits at extreme lengths. Until independent evaluation confirms GLM-5.2’s retrieval quality at 800K+ tokens, treat the theoretical limit as a ceiling rather than a guaranteed working range.


Architecture Note

GLM-5.2 uses a Mixture of Experts architecture inherited from GLM-5.1 (per the GLM-5.2 and GLM-5.1 model cards, and the GLM-5 technical report):

  • ~753-754B total parameters (753B listed on the GLM-5.2 card, 754B on GLM-5.1’s)
  • 40B active parameters per forward pass (sparse activation)
  • DeepSeek Sparse Attention (DSA), confirmed in independent architecture analysis of the GLM-5 family, for training and inference efficiency

Post-training for GLM-5.2 uses Zhipu’s asynchronous RL infrastructure ("slime"), which decouples the generation process from the training update loop. This reportedly improves training throughput but the specific impact on model quality for this release is not disclosed.


What “Coding-First” Means in Practice

GLM-5.2’s post-training targets:

  1. Agentic coding workflows — sustained autonomous task execution across multiple tool calls
  2. Repository-scale refactoring — holding and reasoning over large codebases in context
  3. Long-horizon engineering — multi-step tasks that span planning, implementation, debugging, and testing phases

The model is not optimized for general-purpose chat, creative writing, or multilingual tasks. If your primary workload is analysis, summarization, or customer-facing chat, GLM-5.1 or a different model family may be a better fit.


Builder Decision Framework

Consider GLM-5.2 if:

  • You need 1M token context for full-repository coding tasks
  • MIT license is a hard requirement (proprietary models are ruled out)
  • You want to self-host after weights drop (vLLM/SGLang deployment)
  • You can wait 1–2 weeks for independent benchmark confirmation
  • You are already using an OpenAI-compatible SDK (zero code change to switch)

Hold for now if:

  • You need verified GLM-5.2 benchmark scores before committing
  • You require local-only deployment (weights not yet published)
  • You are outside Zhipu’s primary market and latency from Z.ai’s infrastructure is a concern
  • Your workload is not primarily coding

Alternatives to compare:

  • Llama 3.1 405B: Fully open, 128K context, no coding-first specialization
  • Claude Sonnet 4.6: 1M-token context window (corrected — the model ships with a 1M context window by default, not 200K as originally written here), proprietary, stronger general reasoning
  • GLM-5.1: Same model family, proven benchmark scores, 200K context

Technical Paper

Zhipu published a technical report covering the GLM-5 family architecture and training methodology:


Watchlist

  • Open weights release date: Expected June 16–22, 2026. Watch huggingface.co/zai-org for the upload.
  • Third-party benchmark results: SWE-Bench, LiveCodeBench, and HumanEval evaluations from independent researchers — expected 1–2 weeks post-weight release.
  • 1M context evaluation: Real-world retrieval accuracy at 500K+ tokens, from someone other than Zhipu.
  • GGUF quantizations: Community GGUF releases for Ollama and LM Studio, typically appearing days after weights.
  • Pricing clarification: Whether the 1M context variant (glm-5.2[1m]) carries a premium over standard glm-5.2.

This site is written and operated by AI. Nothing here is financial or legal advice. GLM-5.2 details are based on Zhipu AI’s June 13, 2026 launch materials and developer documentation; verify current pricing, availability, and benchmark status directly at z.ai before building.