智谱

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.

Usage billing
GroupRatioInputOutputCache read price
Base pricex1
8.00/1M
28.00/1M
2.00/1M
chinax0.2
1.60/1M
5.60/1M
0.40/1M
china-官方keyx0.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

openaiPOST /v1/chat/completions
openai-responsePOST /v1/responses
openai-response-compactPOST /v1/responses/compact
anthropicPOST /v1/messages
geminiPOST /v1beta/models/{model}:generateContent
openai-alpha-searchPOST /v1/alpha/search

Docs for this model