glm-5.1
Provided by Zhipu · Text model
Parameters
| Context window | 205K tokens |
|---|
| Max output | 131K tokens |
|---|
| Input modalities | text |
|---|
| Output modalities | text |
|---|
Capabilities
Tool callingReasoningPrompt cachingStructured output
Official pricing
| Input | $0.896/M |
|---|
| Output | $3.585/M |
|---|
| Cache read | $0.194/M |
|---|
Tiers
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.1","messages":[{"role":"user","content":"你好"}],"thinking":{"type":"enabled"}}'