Models/z-ai

glm-5· Released Feb 11, 2026

z-ai/glm-5

GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading...

Input
From$0.90/M
Output
From$2.88/M
Context
Up to 205K
Max output
Up to 131K
Modalities
TextText

Input and output show the lowest price across upstreams, for reference. Your actual prices are listed per upstream below.

Upstreams & pricing
UpstreamContextMax outputInput $/1MOutput $/1MCached input $/1M
Zenlayer AI Gateway-openai_compat (Global)From price
205K131K
$0.90
$2.88
$0.18

Routed in real time — you pay the listed price of whichever upstream serves your call.

How to call
curlrequest.sh
curl https://api.tkex.ai/v1/chat/completions \
  -H "Authorization: Bearer $TX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5",
    "messages": [
      {"role": "user", "content": "Say hello in five words."}
    ]
  }'