GLM glm-5.1 API
Eine Modellvariante über RunAPIs einheitliche KI-API.
# 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 ist über dieselbe RunAPI-Authentifizierung, denselben Model-Skill-Workflow und nutzungsbasierte Preise verfügbar.
- Einheitlicher API Key
- Model-Skill-Setup
- Modell-ID-Referenz
- Fehlgeschlagene Generierungen werden nicht berechnet
PREISE
DATENBLATT
| Modell-ID | glm-5.1 |
| Anbieter | Z.ai |
| Modalität | text |
| Task-Typ | synchronous |
| Abrechnung | 1K tokens |
| Endpoint | /v1/chat/completions |
| Kommerziell | Ja |
| Status | Betriebsbereit |
Modell-Skill — glm-5.1
Installiere den Skill einmal und verwende dann die Varianten-ID von dieser Seite beim Entwickeln.
| Endpoint | Protocol |
|---|---|
| /v1/chat/completions | OpenAI compatible |
glm-5.1 verwenden
Modell wählen
Wähle Modell und Variante passend zu deinem App-Workflow.
Modell-ID übergeben
Nutze diese Varianten-ID im Request Body.
Task ausführen
Sende den Request und speichere die zurückgegebene Task ID.
Ausgabe abrufen
Frage ab oder empfange den Callback, wenn der Task fertig ist.
Vergleich von 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
Einsatzbereiche dieser Variante
Chat
Nutze LLMs für Chat und Reasoning.
Code
Generiere und prüfe Implementierungsarbeit.
Automatisierung
Verbinde Modelle mit Backend-Tasks.
Häufige Fragen zu glm-5.1
Wie wähle ich glm-5.1 aus?
Übergib die im Quickstart angezeigte Modell-ID.
Sind die Preise nutzungsbasiert?
Ja. Preise werden pro Aufruf oder Einheit gemessen.