Available now
Zhipu

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

TextReasoningTools131.1KCache1M
Input$1.70/ 1M
Output$5.95/ 1M
Context131.1K
Endpointsopenai, anthropic

Capabilities

ReasoningToolsCacheStructured

Modalities

Input
text
Output
text

Quick stats

Context window1M
Max output262.1K
TokenizerOther
Hugging Facezai-org/GLM-5.2

Performance

Loading performance data...

Supported parameters

ParameterAlwaysDefault
frequency_penalty-(do not send)
include_reasoning-
logit_bias--
max_tokens-
min_p--
presence_penalty-(do not send)
reasoning-
repetition_penalty-(do not send)
response_format--
seed--
stop--
structured_outputs--
temperature1
tool_choice--
tools-
top_k(do not send)
top_p0.95
§ 01

Pricing

Input price$1.70 · 1M tokens
Output price$5.95 · 1M tokens
Context window131.1K tokens
Compatible endpointsopenai, anthropic
VendorZhipu
§ 02

Call glm-5.2 from your code

Point any OpenAI-compatible SDK at UnoRouter and request the model by name. Replace YOUR_API_KEY with a real key from your dashboard.

bash
curl https://api.unorouter.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.2",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Sign in to auto-fill your API key

§ 03

Frequently asked questions

How much does glm-5.2 cost per 1M tokens?

Input is priced at $1.70 per 1M tokens, output at $5.95 per 1M tokens. Billing is per token, no rounding to batch sizes.

How do I access glm-5.2 via API?

Send requests to the UnoRouter /v1/chat/completions endpoint with model=glm-5.2. Any OpenAI-compatible client library works. Authentication uses a standard Bearer token.

What is the context window of glm-5.2?

glm-5.2 supports a context window of 131.1K tokens, shared between your prompt and the model's response.

§ 04

Similar models

Try glm-5.2 now

Create an API key and start making requests in under a minute.

View all models