GLM 5

Model details

GLM 5

Model
zai/glm-5
Provider
vercel-ai-gateway
API
anthropic-messages
Base URL
https://ai-gateway.vercel.sh
Input
text
Reasoning
Yes
Context window
202,800
Max tokens
131,100
Cost / million input
$1
Cost / million output
$3.2
Cost / million cache read
$0.2
Cost / million cache write
$0
Model config JSON
{
  "providers": {
    "vercel-ai-gateway": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "zai/glm-5",
          "name": "GLM 5",
          "reasoning": true,
          "input": [
            "text"
          ],
          "contextWindow": 202800,
          "maxTokens": 131100,
          "cost": {
            "input": 1,
            "output": 3.1999999999999997,
            "cacheRead": 0.19999999999999998,
            "cacheWrite": 0
          }
        }
      ],
      "api": "anthropic-messages",
      "baseUrl": "https://ai-gateway.vercel.sh"
    }
  }
}