Skip to content

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 IDdashscope/glm-5.2
Input
Chat messages
Output
Text
Endpoint
POST /v1/chat/completions

Best for

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

  • messages
  • max_completion_tokens
  • stream
  • temperature
  • tools

Additional parameters

  • enable_thinking
  • max_tokens
  • parallel_tool_calls
  • presence_penalty
  • repetition_penalty
  • seed
  • stop
  • stream_options
  • thinking_budget
  • tool_choice
  • top_k
  • top_p

Pricing

Billable unit and optionsRate (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