glm-5.2
Provided by Zhipu · Text model
Parameters
| Context window | 1.0M tokens |
|---|
| Max output | 944K tokens |
|---|
| Input modalities | text |
|---|
| Output modalities | text |
|---|
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"}'