智谱
glm-5.2
Zhipu's GLM-5.2 flagship, with a 1M-token context window, 128K output and selectable thinking modes, aimed at reliable long-horizon task execution and large-context engineering work.
Usage billing
Official price vs Nbility
Per 1M tokens, read live from the gateway. Nbility shows its lowest public group.
智谱 list price
Input$8.00Output$28.00
Nbility · china group
Input1.60Output5.60
Group prices
Every available group is listed with its effective input and output price.
| Group | Ratio | Input | Output | Cache read price |
|---|---|---|---|---|
| Base price | x1 | 8.00/1M | 28.00/1M | 2.00/1M |
| china | x0.2 | 1.60/1M | 5.60/1M | 0.40/1M |
| china-官方key | x0.35 | 2.80/1M | 9.80/1M | 0.70/1M |
| china-大厂 | x0.65 | 5.20/1M | 18.20/1M | 1.30/1M |
Quick start
Replace YOUR_API_KEY with a key from your account.
curl https://api.nbility.ai/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"glm-5.2","messages":[{"role":"user","content":"Hello"}]}'Compatible endpoints
openai
POST /v1/chat/completionsopenai-response
POST /v1/responsesopenai-response-compact
POST /v1/responses/compactanthropic
POST /v1/messagesgemini
POST /v1beta/models/{model}:generateContentopenai-alpha-search
POST /v1/alpha/search