GLM-5.4

Z.ai's current flagship (Loop Transformer architecture), 1M context, 128K output; takes text, image, video and file input. $1.40/$4.40 with $0.26 cache reads on Z.ai's price list (2026-12-02).

Z.ai · more Z.ai models · all models

Pricing and specs

Model IDroutexor/glm-5.4
ProviderZ.ai
Input, per 1M tokens$1.40
Output, per 1M tokens$4.40
Cached input, per 1M tokens$0.26
Price sourceProvider list price, checked 2026-12-02.
Context window1M tokens
Max output128K tokens
CapabilitiesStreaming, Tools, Vision, JSON

Your provider bills these tokens on your account. A listing is not a promise that your key has access to this model.

Call it

curl https://api.routexor.com/v1/chat/completions \
  -H "Authorization: Bearer $ROUTEXOR_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{"model":"routexor/glm-5.4","messages":[{"role":"user","content":"Say hello briefly."}],"max_tokens":64}'

Add your Z.ai key in the dashboard first. This call is billed by Z.ai. See the docs for which request paths are supported.