GLM-5

Model details

GLM-5

Model
zai-org/GLM-5
Provider
huggingface
API
openai-completions
Base URL
https://router.huggingface.co/v1
Input
text
Reasoning
Yes
Context window
202,752
Max tokens
131,072
Cost / million input
$1
Cost / million output
$3.2
Cost / million cache read
$0.2
Cost / million cache write
$0
Model config JSON
{
  "providers": {
    "huggingface": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "zai-org/GLM-5",
          "name": "GLM-5",
          "reasoning": true,
          "input": [
            "text"
          ],
          "contextWindow": 202752,
          "maxTokens": 131072,
          "cost": {
            "input": 1,
            "output": 3.2,
            "cacheRead": 0.2,
            "cacheWrite": 0
          },
          "compat": {
            "supportsDeveloperRole": false
          }
        }
      ],
      "api": "openai-completions",
      "baseUrl": "https://router.huggingface.co/v1"
    }
  }
}