GLM glm-5.1 API
Uma variante de modelo exposta pela API de IA unificada da RunAPI.
# Base URL
https://runapi.ai
# Endpoints
POST /v1/chat/completions
curl https://runapi.ai/v1/chat/completions \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.1",
"messages": [
{
"role": "user",
"content": "Read this multi-file repository, find the failing integration test, and propose a patch with an explanation of the root cause."
}
]
}'
from openai import OpenAI
client = OpenAI(
base_url="https://runapi.ai/v1",
api_key="your-runapi-key"
)
response = client.chat.completions.create(
model="glm-5.1",
messages=[{"role": "user", "content": "Read this multi-file repository, find the failing integration test, and propose a patch with an explanation of the root cause."}]
)
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://runapi.ai/v1",
apiKey: "your-runapi-key"
});
const response = await client.chat.completions.create({
model: "glm-5.1",
messages: [{ role: "user", content: "Read this multi-file repository, find the failing integration test, and propose a patch with an explanation of the root cause." }]
});
GLM glm-5.1 está disponível com a mesma autenticação RunAPI, fluxo de model skill e preços por uso.
- API key unificada
- Setup do model skill
- Referência de ID de modelo
- Gerações com falha não são cobradas
PREÇOS
FICHA TÉCNICA
| ID do modelo | glm-5.1 |
| Provedor | Z.ai |
| Modalidade | text |
| Tipo de tarefa | synchronous |
| Cobrança | 1K tokens |
| Endpoint | /v1/chat/completions |
| Comercial | Sim |
| Status | Operacional |
Model skill — glm-5.1
Instale o skill uma vez, depois use o ID do variant desta página durante o desenvolvimento.
| Endpoint | Protocol |
|---|---|
| /v1/chat/completions | OpenAI compatible |
Como usar glm-5.1
Escolha o modelo
Selecione o modelo e a variante que combinam com o fluxo do seu app.
Envie o ID do modelo
Use este ID de variante no corpo da requisição.
Execute a tarefa
Envie a requisição e armazene o task ID retornado.
Colete a saída
Consulte ou receba o callback quando a tarefa terminar.
Comparativo de glm-5.1
754B / 40B active; 58.4% SWE-bench Pro — top open-weight score
355B / 32B active; 128K context; flagship open-weight MoE baseline
754B / 40B active; 58.4% SWE-bench Pro — top open-weight score
Lighter GLM-4.5 tier for fast, lower-cost everyday work
754B / 40B active; 58.4% SWE-bench Pro — top open-weight score
200K context; first GLM on Cambricon chips; sharper code generation
Onde usar esta variante
Chat
Use LLMs para chat e raciocínio.
Código
Gere e revise trabalho de implementação.
Automação
Conecte modelos a tarefas backend.
Perguntas frequentes sobre glm-5.1
Como seleciono glm-5.1?
Envie o ID de modelo mostrado no quickstart.
O preço é por uso?
Sim. O preço é medido por chamada ou unidade.