GLM 5.2 via the Tokenator API

What the model is for

GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering, and complex multi-step automation.

Specification

Full nameGLM 5.2
API IDglm-5.2
Model vendorZ-AI
TypeText model (chat / completions)
Context window1M tokens
Max output128K tokens
Image inputno
Tokenator usage multiplier2× – 3×
Input modalitiestext
Aliasescursor-glm-5.2
Supported API formats/v1/chat/completions /v1/responses /v1/messages
Upstream providers3
Current statusavailable
Data updated2026-08-04

Benchmarks

Intelligence index51.1
Coding index68.8
Agentic index43.1

Artificial Analysis data loaded into the catalog for this model.

Upstream providers

ProviderMultiplier
Z.AI Partner #1
Z.AI Partner #22.2×
AiPartners Ltd

A request goes to the first available provider by priority; if it fails, Tokenator switches to the next one.

Example request

curl
curl https://api.tokenator.top/v1/chat/completions \
  -H "Authorization: Bearer sk-your-tokenator-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.2",
    "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, OpenClaw.

FAQ about GLM 5.2

What is the API ID of GLM 5.2?

glm-5.2 — put this into the model field of your request.

What context window does GLM 5.2 have?

1M tokens; max output is 128K tokens.

How many tokens will a request cost?

(input + output) × 2× – 3×. 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.