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 name | GLM 5.2 |
| API ID | glm-5.2 |
| Model vendor | Z-AI |
| Type | Text model (chat / completions) |
| Context window | 1M tokens |
| Max output | 128K tokens |
| Image input | no |
| Tokenator usage multiplier | 0.7× |
| Input modalities | text |
| Aliases | cursor-glm-5.2 |
| Supported API formats | /v1/chat/completions /v1/responses /v1/messages |
| Upstream providers | 1 |
| Current status | available |
| Data updated | 2026-11-11 |
Benchmarks
| Coding index | 46.5 |
| Vals Index (Vals AI) | 53.1% |
| Code Migration (Vals AI) | 37.9% |
| LiveCodeBench (Vals AI) | 69.5% |
| ProgramBench (Vals AI) | 0.5% |
| SkillsBench (Vals AI) | 45.1% |
| SWE-bench (Vals AI) | 82.8% |
| Terminal-Bench 2.1 (Vals AI) | 67.8% |
| Vibe Code Bench v1.1 (Vals AI) | 64% |
| GPQA Diamond (Vals AI) | 85.6% |
| MMLU Pro (Vals AI) | 86.7% |
| ProofBench v1 (Vals AI) | 35% |
| CorpFin v2 (Vals AI) | 66.1% |
| EMB (Vals AI) | 61.5% |
| Finance Agent (v2) (Vals AI) | 49.7% |
| TaxEval v2 (Vals AI) | 73.3% |
| Harvey's Legal Agent Benchmark v1 (Vals AI) | 7.1% |
| Legal Research Bench (Vals AI) | 31.3% |
| LegalBench (Vals AI) | 84.1% |
| MedCode (Vals AI) | 40.8% |
| MedScribe (Vals AI) | 83.5% |
| SRE Bench (Vals AI) | 0% |
Artificial Analysis and Vals AI data loaded into the catalog for this model.
Upstream providers
| Provider | Multiplier |
|---|---|
| AiPartners Ltd | 0.7× |
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.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, Cherry Studio, DeepSeek Harness, Hermes, Pi, OpenClaw.
See also
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 × 0.7×) + (output × 0.7×). 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.