GLM 4.5 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.
| Vendor | Zhipu GLM |
| Type | chat |
| Price | $0.81 per 1M input tokens · $2.97 per 1M output tokens |
| Context window | 128K tokens |
| Live test | Passed our live test in the last 7 days · 2 supply routes, automatic failover |
| Latency (short request) | Median ~3s (5+ calls in the last 7 days) |
| Model ID (use this in your request) | z-ai/glm-4.5 |
How to call GLM 4.5
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-4.5", "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-4.5",
messages=[{"role": "user", "content": "Hello"}],
)
print(r.choices[0].message.content)Similar models — price comparison
| Model | Price |
|---|---|
| GLM 5.2 | $0.8276 per 1M input tokens · $2.6 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 |
| DeepSeek V4 Pro | $1.29 per 1M input tokens · $2.58 per 1M output tokens |
| Kimi K2.6 | $0.808 per 1M input tokens · $3.4 per 1M output tokens |
More models from Zhipu GLM
| Model | Price |
|---|---|
| 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.8672 per 1M input tokens · $3.9 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 4.5 API cost?
On 666 AI, GLM 4.5 costs $0.81 per 1M input tokens · $2.97 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-4.5.
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.