glm-5.2
NixAPI price, from
USD per 1M tokens · via group Self-Deployed-2 · Official list price $1.4 / $4.4Save 16%
About glm-5.2
GLM-5.2 is the flagship model built for the long-task era. It supports a truly usable 1M context capable of holding project-level engineering context, delivers more stable long-horizon task execution and more reliable adherence to engineering standards, and can complete the full development pipeline from requirements to multi-platform deployment in a single task.
Price by routing group
Pick a group in the console when you create a key. Status is live from the router. Live status by group →
| Group | Group status | Model status | Multiplier | Input | Output | Cache read | Cache write |
|---|---|---|---|---|---|---|---|
Self-Deployed-2 | … | ×0.845 | $1.183 | $3.718 | $0.2957 | — | |
Alibaba-2 | … | ×1.2675 | $1.774 | $5.577 | $0.4436 | — | |
Self-Deployed-3 | … | ×1.2675 | $1.774 | $5.577 | $0.4436 | — | |
Alibaba-3 | … | ×1.859 | $2.603 | $8.18 | $0.6506 | — | |
glm-1 | … | ×1.859 | $2.603 | $8.18 | $0.6506 | — |
USD per 1M tokens
Supported endpoints
Call glm-5.2 in one request
Works with the OpenAI SDK and any OpenAI-compatible client. Replace the key with your own.
curl https://api.nixapi.com/v1/chat/completions \
-H "Authorization: Bearer $NIXAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.2",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.nixapi.com/v1", api_key="sk-…")
resp = client.chat.completions.create(
model="glm-5.2",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({ baseURL: 'https://api.nixapi.com/v1', apiKey: process.env.NIXAPI_KEY });
const resp = await client.chat.completions.create({
model: "glm-5.2",
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(resp.choices[0].message.content);Questions about glm-5.2
How much does glm-5.2 cost on NixAPI?
From $1.183 per 1M input tokens and $3.718 per 1M output tokens in the Self-Deployed-2 group, about 16% below the official list price. Prices are pay-as-you-go in USD with no monthly minimum.
How do I call glm-5.2?
Point any OpenAI-compatible client at https://api.nixapi.com/v1, use your NixAPI key and set the model to "glm-5.2".
Which routing groups serve glm-5.2?
glm-5.2 is available in 5 routing groups: Self-Deployed-2, Alibaba-2, Self-Deployed-3, Alibaba-3, glm-1. The lowest price is in Self-Deployed-2.