POST /v1/messagesGLM-5.2
glm-5.2GLM-5.2 is Z.ai’s flagship foundation model for long-horizon engineering tasks. It emphasizes a usable 1M-token context window for project-scale code and system context, more stable execution on long tasks, and better adherence to engineering standards. It is positioned for full development workflows, from requirements and repository analysis to implementation, testing, and multi-platform deployment, where large context and sustained agent behavior matter.
Total Context
1Mtokens
Max Output
131.1Ktokens
Released
Jun 13, 2026
Modalities
GLM-5.2 Price
| Input Price | Output Price | Cache Read |
|---|---|---|
| $1.1429/M | $4/M | $0.2857/M |
GLM-5.2 API
GLM-5.2 FAQ
GLM-5.2: capabilities, use cases, limits, and TokenHub guidance.
What is GLM-5.2 built for?+
GLM-5.2 is a Z.AI model for flagship long-horizon engineering and coding.
When is GLM-5.2 most useful?+
Best for iterative engineering delivery, repository-scale development and long-context analysis, especially when long-horizon task completion is the priority.
What distinguishes GLM-5.2?+
Key strength: project-scale engineering context and stable long-task execution.
What should I watch for?+
Long autonomous runs can consume substantial time and tokens. For simpler work, consider GLM-5.
How do I check availability?+
Use the exact ID shown by TokenHub; follow your account docs and verify current features.
Media and Discussions
Selected public videos and posts related to this model.
X (Twitter)
Reddit
YouTube