glm-5.2

Provided by Zhipu · Text model

Parameters

Context window1.0M tokens
Max output944K tokens
Input modalitiestext
Output modalitiestext

Capabilities

Tool callingReasoningPrompt cachingStructured output

Official pricing

Input$1.195/M
Output$4.183/M
Cache read$0.299/M

Call example

curl -s https://open.bigmodel.cn/api/paas/v4/chat/completions -H "Authorization: Bearer $ZHIPU_API_KEY" -H "Content-Type: application/json" -d '{"model":"glm-5.2","messages":[{"role":"user","content":"你好"}],"thinking":{"type":"enabled"},"reasoning_effort":"max"}'