TokenRoute
Get started
Back to models

Z.ai: GLM 4.5

z-ai/glm-4.5

GLM-4.5 is our latest flagship foundation model, purpose-built for agent-based applications. It leverages a Mixture-of-Experts (MoE) architecture and supports a context length of up to 128k tokens. GLM-4.5 delivers significantly...

Pricing

Input$0.4200 /M
Output$1.54 /M
Cache read$0.0770 /M

Specs

Context length131.1K tokens
Max output98.3K tokens
Inputtext
Outputtext

Quickstart

Point the OpenAI SDK at https://tokenroute.app/api/v1 and use a TokenRoute API key.

bash
curl https://tokenroute.app/api/v1/chat/completions \
  -H "Authorization: Bearer $TOKENROUTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-4.5",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Supported parameters

include_reasoning
max_tokens
reasoning
response_format
temperature
tool_choice
tools
top_k
top_p
Z.ai: GLM 4.5 API, pricing and context length | TokenRoute