The Orchestrator › Models › Z.ai

Z.ai: GLM 5.2

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,...

Specifications

ProviderZ.ai
Model IDz-ai/glm-5.2
Context window1.0M tokens (1,048,576)
Modalitiestext → text
TokenizerOther
Router sourcesOpenRouter, TrustedRouter, Vercel AI Gateway, Cloudflare
Released2026-06-16
Tracked since2026-11-14
Popularity#25 by usage · peak 5.8% spend share in an OpenRouter category
ReasoningOn by default

Pricing (per million tokens)

VariantSourceAPI IDInputOutputContext
standardOpenRouterz-ai/glm-5.2$0.007$6.801.0M
batchOpenRouterz-ai/glm-5.2:batch$0.322$0.9891.0M
standardTrustedRouterz-ai/glm-5.2$0.359$1.581.0M
standardVercel AI Gatewayz-ai/glm-5.2$1.40$4.401M
standardCloudflarez-ai/glm-5.2$1.40$4.40—

Recorded price history

DateInput / 1MOutput / 1MContext
2026-11-14$1.40$4.40—
2026-11-14$1.40$4.401M
2026-11-14$0.359$1.581.0M
2026-11-14$0.007$6.801.0M

Capabilities

Agentic tool useStructured outputsReasoning mode1M+ context windowControllable reasoningNo content storage (attested)Zero data retention

Trust flags come from TrustedRouter's per-provider attestations.

Supported parameters

frequency_penalty, include_reasoning, logit_bias, logprobs, max_tokens, min_p, parallel_tool_calls, presence_penalty, reasoning, reasoning_effort, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_logprobs, top_p