/v1/chat/completionsGLM-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 |
How do I use GLM-5.2 through the API?
/v1/messages/v1beta/models/{model}:generateContentGLM-5.2 Benchmark
51.1
/100
Artificial Analysis Intelligence Index
Artificial Analysis broad capability aggregate
Index score
68.8
/100
Artificial Analysis Coding Index
Artificial Analysis software task aggregate
Index score
Knowledge & Reasoning
GPQA
Advanced science problem solving
89.5%
HLE
Broad expert-level exam set
40.1%
Coding & Engineering
SciCode
Scientific coding challenges
50.5%
Terminal-Bench Hard
Hard terminal task execution
50.8%
Instruction Following & Agent Tasks
IFBench
Prompt constraint adherence
73.3%
AA-LCR
Long-context reasoning
71.3%
τ²-Bench
Agent workflow tasks
99.1%
Metrics sourced from Artificial Analysis
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