GLM 5.1
Use this model through the Rawrter OpenAI-compatible API. Requests are routed through available nodes with account-level usage tracking.
Modalities
Input Price / 1M
$0.97
Output Price / 1M
$3.04
Cache Price / 1M
$0.18
Provider
Z.ai
Context
202K
About GLM 5.1
GLM 5.1 is a general-purpose language model for reasoning, coding, and high-quality text generation.
API
Copy a ready config for your client — the base URL and this model's id (glm-5.1) are already filled in. Paste your API key and you're set.
from openai import OpenAI
client = OpenAI(
base_url="https://api.openrussiarouter.com/v1",
api_key="<YOUR_API_KEY>",
)
response = client.chat.completions.create(
model="glm-5.1",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.openrussiarouter.com/v1",
apiKey: "<YOUR_API_KEY>",
});
const response = await client.chat.completions.create({
model: "glm-5.1",
messages: [{ role: "user", content: "Hello" }],
});
console.log(response.choices[0].message.content);
{
"providers": {
"openrussiarouter": {
"baseURL": "https://api.openrussiarouter.com/v1",
"apiKey": "<YOUR_API_KEY>",
"compat": {
"supportsDeveloperRole": false,
"supportsReasoningEffort": false
}
}
},
"models": {
"glm-5.1": {
"provider": "openrussiarouter",
"id": "glm-5.1",
"contextWindow": 202752
}
}
}
curl https://api.openrussiarouter.com/v1/chat/completions \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.1",
"messages": [{ "role": "user", "content": "Hello" }]
}'