GLM 4.6

Compared with GLM-4.5, this generation brings several key improvements: Longer context window: The context window has been expanded from 128K to 200K tokens, enabling the model to handle more complex.

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

Pricing and specs

Model IDroutexor/glm-4.6
ProviderZ.ai
Input, per 1M tokens$0.50
Output, per 1M tokens$2
Cached input, per 1M tokens$0.10
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 window203K 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-4.6","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.