Claude Fable 5.2 now costs less. Improvements to our serving architecture have lowered the cost of using the model, and the new rates are live.See new pricing
Zhipu

GLM-5.2

Save 20%Official

zhipu/glm-5.2

Zhipu GLM-5.2 — flagship 1M-context MoE for long-horizon coding.

Context window
1M
Max output
128K
Input modalities
Text
Output modalities
Text
Capabilities
Reasoning · Tool calling · Coding
RouteMux name
zhipu/glm-5.2

GLM-5.2 API pricing

Prices verified 2026-11-12

InputOfficial $1.4 / M tokens
$1.12/ M tokensSave 20%
OutputOfficial $4.4 / M tokens
$3.52/ M tokensSave 20%

Cache read $0.208/M · Cache write —/M

Estimate cost

Estimated cost$0.01472

Key capabilities

ReasoningTool callingCoding

Limited time10% extra Credits on your first top-up — up to 200 bonus Credits

Applies to your first top-up within 72 hours of signing up. Minimum $20, once per account.

Sign up and claimNo subscription. Pay for what you use.

Interface and protocols

Use any of these IDs to call this model via the API.

RouteMux namezhipu/glm-5.2

Replace the ROUTEMUX_KEY placeholder with your API key. Create one →

from openai import OpenAI

client = OpenAI(
    base_url="https://api.routemux.com/v1",
    api_key="<ROUTEMUX_KEY>",
)

completion = client.chat.completions.create(
    model="zhipu/glm-5.2",
    messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(completion.choices[0].message.content)
base_url: https://api.routemux.com/v1

Performance (last 30 days)

GLM-5.2 FAQ

›What is GLM-5.2?

Zhipu GLM-5.2 — flagship 1M-context MoE for long-horizon coding.

›How large is the context window of GLM-5.2?

GLM-5.2 supports a context window of up to 1M tokens, with up to 128K output tokens per request.

›How much does the GLM-5.2 API cost?

Through RouteMux, GLM-5.2 costs $1.12 for input and $3.52 for output (USD per 1M tokens), below the official list price.

›How do I call GLM-5.2 via API?

GLM-5.2 is OpenAI-compatible: point your base URL at RouteMux and set the model field to zhipu/glm-5.2 — no code changes needed.

›Which input and output modalities does GLM-5.2 support?

GLM-5.2 accepts text as input and produces text as output.