- Model
z-ai/glm-5- Provider
openrouter- API
openai-completions- Base URL
https://openrouter.ai/api/v1- Input
- text
- Reasoning
- Yes
- Context window
- 202,752
- Max tokens
- 16,384
- Cost / million input
- $0.6
- Cost / million output
- $1.9
- Cost / million cache read
- $0.119
- Cost / million cache write
- $0
Model config JSON
{
"providers": {
"openrouter": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "z-ai/glm-5",
"name": "Z.ai: GLM 5",
"reasoning": true,
"input": [
"text"
],
"contextWindow": 202752,
"maxTokens": 16384,
"cost": {
"input": 0.6,
"output": 1.9,
"cacheRead": 0.119,
"cacheWrite": 0
}
}
],
"api": "openai-completions",
"baseUrl": "https://openrouter.ai/api/v1"
}
}
}