- Model
z-ai/glm-5.2- Provider
openrouter- API
openai-completions- Base URL
https://openrouter.ai/api/v1- Input
- text
- Reasoning
- Yes
- Context window
- 1,048,576
- Max tokens
- 32,768
- Cost / million input
- $0.95
- Cost / million output
- $3
- Cost / million cache read
- $0.18
- Cost / million cache write
- $0
Model config JSON
{
"providers": {
"openrouter": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "z-ai/glm-5.2",
"name": "Z.ai: GLM 5.2",
"reasoning": true,
"input": [
"text"
],
"contextWindow": 1048576,
"maxTokens": 32768,
"cost": {
"input": 0.95,
"output": 3,
"cacheRead": 0.18,
"cacheWrite": 0
},
"compat": {
"supportsDeveloperRole": false,
"thinkingFormat": "openrouter"
}
}
],
"api": "openai-completions",
"baseUrl": "https://openrouter.ai/api/v1"
}
}
}