GLM-5.2
Save 20%Officialzhipu/glm-5.2
Zhipu GLM-5.2 — flagship 1M-context MoE for long-horizon coding.
This model is deprecated. Requests to it are forwarded automatically to GLM-5.3 (zhipu/glm-5.3) and billed at GLM-5.3's price — no code changes needed. The prices on this page are what you're charged now.
View GLM-5.3 →- 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
Cache read $0.208/M · Cache write —/M
Estimate cost
Key capabilities
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.
Interface and protocols
Use any of these IDs to call this model via the API.
zhipu/glm-5.2Replace 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)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.