Z.ai
GLM-5.2
GLM-5.2 can work through long engineering tasks using source text and results from tools. A million-token context keeps earlier decisions within reach.
Model interface
API model ID
dashscope/glm-5.2- Input
- Chat messages
- Output
- Text
- Endpoint
POST /v1/chat/completions
Best for
- Plan a refactor across several services
- Revise a debugging plan after reading test output
Technical details
Read the model documentation- API model ID
dashscope/glm-5.2- Provider
- Z.ai
- Modality
- Text
- Input
- Chat messages
- Output
- Text
- Endpoint
POST /v1/chat/completions- API constraints
- While thinking is on, tool_choice cannot force a tool: use auto or none.
Request parameters
messagesmax_completion_tokensstreamtemperaturetools
Additional parameters
enable_thinkingmax_tokensparallel_tool_callspresence_penaltyrepetition_penaltyseedstopstream_optionsthinking_budgettool_choicetop_ktop_p
Pricing
| Billable unit and options | Rate (USD) |
|---|---|
| Per 1M input tokens | $1.68 |
| Per 1M output tokens | $5.28 |
| Per 1M cached input tokens | $0.336 |
Catalogue rates on 21 Nov 2026. Prices exclude VAT.
View in pricing catalogue