GLM glm-5 API
Variante de modelo disponible mediante la API de IA unificada de 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",
"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",
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",
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 está disponible con la misma autenticación RunAPI, flujo de model skill y precios por uso.
- API key unificada
- Setup del model skill
- Referencia de ID de modelo
- Las generaciones fallidas no se cobran
PRECIOS
FICHA TÉCNICA
| ID de modelo | glm-5 |
| Proveedor | Z.ai |
| Modalidad | text |
| Tipo de tarea | synchronous |
| Facturación | 1K tokens |
| Endpoint | /v1/chat/completions |
| Comercial | Sí |
| Estado | Operativo |
Habilidad de modelo — glm-5
Instala la habilidad una vez y luego usa el ID de variante de esta página mientras construyes.
| Endpoint | Protocol |
|---|---|
| /v1/chat/completions | OpenAI compatible |
Cómo usar glm-5
Elige modelo
Selecciona el modelo y la variante que encajan con el flujo de tu app.
Pasa el ID de modelo
Usa este ID de variante en el cuerpo de la petición.
Ejecuta la tarea
Envía la petición y guarda el task ID devuelto.
Recoge la salida
Consulta o recibe el callback cuando termine la tarea.
Comparativa de glm-5
744B / 40B active; 200K context; 77.8% SWE-bench Verified
355B / 32B active; 128K context; flagship open-weight MoE baseline
744B / 40B active; 200K context; 77.8% SWE-bench Verified
Lighter GLM-4.5 tier for fast, lower-cost everyday work
744B / 40B active; 200K context; 77.8% SWE-bench Verified
200K context; first GLM on Cambricon chips; sharper code generation
Dónde usar esta variante
Chat
Usa LLMs para chat y razonamiento.
Código
Genera y revisa trabajo de implementación.
Automatización
Conecta modelos a tareas backend.
Preguntas frecuentes sobre glm-5
¿Cómo selecciono glm-5?
Pasa el ID de modelo que aparece en el quickstart.
¿El precio es por uso?
Sí. El precio se mide por llamada o unidad.