GLM 5.2 API

Zhipu GLM's chat model. Call it on 666 AI with the same API key as every other model. Pay as you go; prices follow the upstream in real time and this page updates hourly.

VendorZhipu GLM
Typechat
Price$0.8276 per 1M input tokens · $2.6 per 1M output tokens
Context window128K tokens
Live testPassed our live test in the last 7 days · 7 supply routes, automatic failover
Latency (short request)Median ~1s (5+ calls in the last 7 days)
Model ID (use this in your request)z-ai/glm-5.2
Sign up free & get an API keyTry it in the chatSee all model prices

How to call GLM 5.2

The API is OpenAI-compatible. Replace YOUR-ENDPOINT with the endpoint shown on your API Key page after you sign up, and YOUR-KEY with your key.

curl https://YOUR-ENDPOINT/v1/chat/completions \
  -H "Authorization: Bearer YOUR-KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "z-ai/glm-5.2", "messages": [{"role": "user", "content": "Hello"}]}'
from openai import OpenAI
client = OpenAI(base_url="https://YOUR-ENDPOINT/v1", api_key="YOUR-KEY")
r = client.chat.completions.create(
    model="z-ai/glm-5.2",
    messages=[{"role": "user", "content": "Hello"}],
)
print(r.choices[0].message.content)

Similar models — price comparison

ModelPrice
Qwen3.6 Plus$0.4388 per 1M input tokens · $2.63 per 1M output tokens
DeepSeek V4 Pro$0.887 per 1M input tokens · $2.66 per 1M output tokens
GLM 4.5$0.81 per 1M input tokens · $2.97 per 1M output tokens
Ark Doubao Seed 2.0 Pro 260215$0.6307 per 1M input tokens · $3.15 per 1M output tokens
DeepSeek R1$0.7142 per 1M input tokens · $3.07 per 1M output tokens
DeepSeek R1 0528$0.7709 per 1M input tokens · $3.09 per 1M output tokens

More models from Zhipu GLM

ModelPrice
GLM 5.1$1.3 per 1M input tokens · $5.2 per 1M output tokens
GLM 5.3 Flash$0.1453 per 1M input tokens · $0.27 per 1M output tokens
GLM 4.6$0.4336 per 1M input tokens · $1.73 per 1M output tokens
GLM 4.7$0.4336 per 1M input tokens · $1.73 per 1M output tokens
GLM 5$0.945 per 1M input tokens · $3.02 per 1M output tokens
GLM 5 Turbo$1.08 per 1M input tokens · $4.77 per 1M output tokens
GLM 5v Turbo$1.08 per 1M input tokens · $4.77 per 1M output tokens
GLM Ocr$0.0135 per page

FAQ

How much does the GLM 5.2 API cost?

On 666 AI, GLM 5.2 costs $0.8276 per 1M input tokens · $2.6 per 1M output tokens. You pay only for what you use — no monthly fee. Prices follow the upstream in real time; this page updates every hour.

Can I use the official OpenAI SDK?

Yes. The API is OpenAI-compatible: in the OpenAI Python or Node.js SDK just change base_url and api_key, and set model to z-ai/glm-5.2.

How do I pay?

Bank card (including Google Pay / Apple Pay), USDT / ETH, or bank wire. Top up once and usage is deducted as you go.