Developers wanting an open-weights coding model with a 1M-token context get one under MIT, or a Coding Plan from $18 a month.
Kenning's take
What it does
GLM 5.2 is a text model from Z.ai aimed at long coding and agent tasks, with a 1 million token context window and up to 128K tokens of output. It adds effort levels so users can trade quality against speed and cost. It is available through the Z.ai API, the GLM Coding Plan, and as MIT-licensed open weights.
- 1M-token context window
- 128K maximum output tokens
- Selectable thinking effort levels
- Function calling and structured output
- MIT open-source licence
Who it suits. Developers who want an open-weights model for coding agents and long software tasks.
Key facts
- Category
- AI models
- Made by
- Z.ai (Zhipu AI)
- Based in
- China
- Released
- 16 June 2026
- How to get it
- Z.ai API (model glm-5.2), GLM Coding Plan subscription, or self-hosted from open weights on Hugging Face
- Works on
- API, open weights (Hugging Face)
- In the UK
- Yes
- API price
- $1.40 per million input tokens, $4.40 per million output tokens
Pricing
| Plan | Price | Billed |
|---|---|---|
| GLM Coding Plan | $from 18 | month |
FAQ
When was GLM 5.2 released?
Z.ai listed GLM 5.2 in its release notes on 16 June 2026.
Is GLM 5.2 free?
The model weights are free to download under the MIT licence. The hosted API costs $1.40 per million input tokens and $4.40 per million output tokens.
How big is GLM 5.2's context window?
1 million tokens, with up to 128K tokens of output.
Facts from the maker's own pages and the sources listed. Checked 2026-10-11.
Similar tools

ACE-Step 1.5
Open-source music generation model that writes full songs with lyrics and runs on ordinary consumer GPUs.
AlphaGenome Atlas
Google DeepMind database of AI-predicted effects for every possible single-letter change in human DNA.

Amazon Nova 2
Amazon's second family of Nova AI models, covering reasoning, speech conversation and combined text-and-image generation.

Cisco Antares
Cisco's small open-weight models that find where known security vulnerabilities sit in a codebase, running locally.