- Model
z-ai/glm-5.1- Provider
openrouter- API
openai-completions- Base URL
https://openrouter.ai/api/v1- Input
- text
- Reasoning
- Yes
- Context window
- 202,752
- Max tokens
- 65,535
- Cost / million input
- $1.05
- Cost / million output
- $3.5
- Cost / million cache read
- $0.525
- Cost / million cache write
- $0
Model config JSON
{
"providers": {
"openrouter": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "z-ai/glm-5.1",
"name": "Z.ai: GLM 5.1",
"reasoning": true,
"input": [
"text"
],
"contextWindow": 202752,
"maxTokens": 65535,
"cost": {
"input": 1.0499999999999998,
"output": 3.5,
"cacheRead": 0.5249999999999999,
"cacheWrite": 0
}
}
],
"api": "openai-completions",
"baseUrl": "https://openrouter.ai/api/v1"
}
}
}