GLM 5.4 via the Tokenator API
What the model is for
Z.ai's next-generation flagship multimodal model designed for coding, complex problem-solving, and agentic workflows. Supports image understanding, advanced reasoning, and tool calling. Копировать
Specification
| Full name | GLM 5.4 |
| API ID | glm-5.4 |
| Model vendor | Z-AI |
| Type | Text model (chat / completions) |
| Context window | 1M tokens |
| Max output | 131.1K tokens |
| Image input | yes |
| Tokenator usage multiplier | 4× |
| Output token multiplier | 12× |
| Badge | NEW |
| Input modalities | text, image |
| Aliases | cursor-glm-5.4 |
| Supported API formats | /v1/chat/completions /v1/responses /v1/messages |
| Upstream providers | 1 |
| Current status | available |
| Data updated | 2026-11-23 |
Upstream providers
| Provider | Multiplier | Output token multiplier |
|---|---|---|
| AiPartners Ltd | 4× | 12× |
A request goes to the first available provider by priority; if it fails, Tokenator switches to the next one.
Example request
curl https://api.tokenator.top/v1/chat/completions \ -H "Authorization: Bearer sk-your-tokenator-key" \ -H "Content-Type: application/json" \ -d '{ "model": "glm-5.4", "messages": [{"role": "user", "content": "Hello"}] }'
Compatible tools
The model can be used in any tool that accepts a custom base URL: Claude Code, Codex CLI, OpenCode, Cursor, Cline, Kilo Code, Cherry Studio, DeepSeek Harness, Hermes, Pi, OpenClaw.
See also
FAQ about GLM 5.4
What is the API ID of GLM 5.4?
glm-5.4 — put this into the model field of your request.
What context window does GLM 5.4 have?
1M tokens; max output is 131.1K tokens.
How many tokens will a request cost?
(input × 4×) + (output × 12×). See the documentation for details.
Which tools support this model?
Any tool that accepts a custom base URL: Claude Code, Codex CLI, OpenCode, Cursor, Cline, Kilo Code. Setup guides are in the integrations section.