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.
Entrada, $/1M $1.40
Saída, $/1M $4.40
Leitura de cache $0.26
Gravação de cache —
Contexto 1 000 000
Saída máx. 131 072
Aceita texto
Última verificação 04.11.2026 12:26:37 UTC
Fonte página do provedor
Alertas de preço
API
API compatível com OpenAI: os SDKs oficiais da OpenAI funcionam com esta URL base. Substitua YOUR_API_KEY pela sua chave do provedor.
| URL base da API | |
|---|---|
| Endpoint | |
| ID do modelo | |
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());Requisição (JSON)
{
"model": "z-ai/glm-5.2",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 256
}Resposta (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
}
}O endereço vem da lista de modelos do provedor; confira na documentação dele.
Source: AI Rate Card, https://airatecard.com/pt/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
Dados técnicos
ID: offer:orcarouter|z-ai/glm-5.2