GLM-5.2 · orcarouter
GLM-5.2 is Z.ai (Zhipu AI)'s flagship model for the era of long-horizon tasks. It pairs a truly usable 1M-token context window with up to 128K output tokens, letting it hold project-level engineering context, execute long-running tasks more reliably, follow engineering standards more consistently, and carry a task from requirements through to multi-platform deployment in a single run. It is a text-in / text-out model with hybrid reasoning controlled by reasoning_effort (high / max; deep reasoning by default) and native tool calling. Built coding-first as the latest in the GLM-5 line, GLM-5.2 launched on the GLM Coding Plan with standalone API access and MIT-licensed open weights following shortly after. It targets repo-scale agentic coding, autonomous multi-step engineering workflows, and complex long-horizon delivery.
Вход, $/1M $1.40
Выход, $/1M $4.40
Чтение из кэша $0.26
Запись в кэш —
Контекст 1 000 000
Макс. выход 131 072
Принимает текст
Последняя проверка 04.11.2026 12:26:37 UTC
Источник страница провайдера
Уведомления о ценах
API
API, совместимый с OpenAI: подходят официальные SDK OpenAI с этим адресом. YOUR_API_KEY замените на свой ключ от провайдера.
| Адрес API | |
|---|---|
| Эндпоинт | |
| Модель (id в API) | |
curl
curl https://api.orcarouter.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "z-ai/glm-5.2", "messages": [{"role": "user", "content": "Hello!"}], "max_tokens": 256}'Python
import requests
r = requests.post(
"https://api.orcarouter.ai/v1/chat/completions",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "z-ai/glm-5.2",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
},
)
print(r.json())JavaScript
const r = await fetch("https://api.orcarouter.ai/v1/chat/completions", {
method: "POST",
headers: {Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
body: JSON.stringify({
"model": "z-ai/glm-5.2",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
}),
});
console.log(await r.json());Запрос (JSON)
{
"model": "z-ai/glm-5.2",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
}Ответ (JSON)
{
"id": "chatcmpl-...",
"object": "chat.completion",
"model": "z-ai/glm-5.2",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hi! How can I help?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}Адрес взят из списка моделей провайдера - сверьте с его документацией.
Source: AI Rate Card, https://airatecard.com/ru/c/offer%3Aorcarouter%7Cz-ai/glm-5.2, prices checked 2026-11-04; seller's page: https://orcarouter.ai/models/z-ai/glm-5.2
Технические данные
ID: offer:orcarouter|z-ai/glm-5.2