GLM-5

z-ai/glm-5

GLM-5 is Z-AI's general-purpose foundation model for reasoning, coding, and agentic workloads, with a 128K context window and 32K output, supporting thinking mode, function calling, and structured outputs.

Upstream Providers
ZDR only
z-ai-byok
In$0Out$0
No ZDRTools
opencode-zen-byok
In$0.60Out$2.20
No ZDRTools
opencode-go-byok
In$1.40Out$4.40
CachedNo ZDRTools
API Details
Uptime & Health
No uptime data yet

These providers haven't been health-probed for this model yet. The router still routes around upstreams that fail live requests — uptime fills in once probe history accrues.

Code samples
POST /api/v1/chat/completions
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5",
    "messages": [
      {"role": "user", "content": "Say hi in 3 words."}
    ]
  }'
No API key yetSet ANYROUTER_API_KEY Dashboard → Keys
Request example
{
  "model": "z-ai/glm-5",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}

Change sort, ZDR, effort, or pin a provider to add routing params.