Z.ai: GLM 4.7

Models

Model details

Z.ai: GLM 4.7

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