Zhipu AI
GLM 5.2 API
Built for reasoning, coding, and long-context agent tasks, improving over GLM-5.1 in context length, tool use, and complex multi-step workflows. Compared with Chinese flagship peers such as Qwen, DeepSeek, and Kimi, it fits enterprise automation, project-level code analysis, and knowledge work in Chinese.
- Reasoning
- Tool use
- Function calling
- Structured output
- Long context
glm-5.2USD
Pricing
Public list prices are shown in USD. Final charges may vary by account group and usage tier.
API
Code examples
curl --location --request POST 'https://api.tokenhot.ai/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "glm-5.2",
"messages": [
{
"role": "user",
"content": "What model are you"
}
]
}'Zhipu AI
Related models
FAQ
Frequently asked questions
What is GLM 5.2 best suited for?
GLM 5.2 is suited to the input, output, and capability types listed on this page. Test production workloads before choosing it for a critical system.
How is GLM 5.2 priced?
Pricing is shown in the pricing section above. Actual cost depends on usage volume, account group, and the request payload.
How can I call GLM 5.2?
Use the model ID shown above with one of the supported API protocols. Code examples are provided when usage data is available.
Get started