About the Z-ai API
GLM models
GLM is a family of language models from Z.ai, also known as Zhipu AI. Z.ai publishes the weights of its models and focuses on software development, agents and code security. Models in the GLM-5 series are built as a mixture of experts and work with a long 1M-token context.
There are two current models:
- GLM-5.3 — Z.ai's flagship, released in mid-August 2026; for complex development, agents, code review and vulnerability hunting; accepts text;
- GLM-5.3 Flash — a model on a new 320B-parameter base, released on August 26; the first natively multimodal model in the GLM-5 series, accepting text, images and video.
What the models have in common
Both models have a 1M-token context window, with a single response of up to 128K tokens. Reasoning is always on, and its depth is set by the low, high or max level. Both models call tools and are built for agentic scenarios: terminal work, edits across a repository, multi-step tasks.
Which model to choose
| Task | Start with | Compare with |
|---|---|---|
| Complex development and coding agents | GLM-5.3 | GLM-5.3 Flash |
| Code review and vulnerability hunting | GLM-5.3 | — |
| Screenshots, images, video | GLM-5.3 Flash | — |
| High-volume and repetitive requests | GLM-5.3 Flash | GLM-5.3 |
| Office documents and financial analytics | GLM-5.3 Flash | GLM-5.3 |
GLM-5.3 is built on the same base as GLM-5.2 and is stronger above all in code and code security: 84.5 on CyberGym and 34.5% on Z.ai's internal Z.ai Code Bench versus 23.4% for GLM-5.2. GLM-5.3 Flash is trained on a new base that combines sparse and linear attention: it needs 3 times less compute for attention, and according to Z.ai it outperforms GLM-5.2 on coding and agentic tasks.
Open weights
The weights of both models are published on Hugging Face under the zai-org organization. GLM-5.3 Flash is released under the standard MIT license. GLM-5.3 has its own near-MIT license with one term: the largest commercial services that sell access to the model need a Z.ai safety review before launch. Everyone else can use, modify and run the models on their own servers.