GLM 5.1

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work

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

Pricing and specs

Model IDroutexor/glm-5.1
ProviderZ.ai
Input, per 1M tokens$1.40
Output, per 1M tokens$4.40
Cached input, per 1M tokens$0.26
Price sourceReference price from OpenRouter's listing, not the provider's own page. A direct call on your key can cost a different amount.
Context window205K tokens
Max output131K tokens
CapabilitiesStreaming, Tools, 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.1","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.