Z.ai: GLM 5.2 is a 1,048,576-token model served on Composite at $0.563 per million tokens in and $1.80 per million tokens out. Ranked #5 of 179 models by traffic on Composite over the last 30 days, taking 3.71% of tokens and 3.73% of requests. 2 up and 1 down from 3 votes. A positive score is published once a model reaches 5 votes. Measured on Composite, 100.0% of its last 100 requests on Composite succeeded, the typical first token arrives in 8497 ms, output runs at about 71.3 tokens per second.
—2 up and 1 down from 3 votes. A positive score is published once a model reaches 5 votes.
Sign in to rate this model. Ratings come from accounts that have run requests through Composite.
Specifications
Specifications and pricing as served by Composite
Model ID
z-ai/glm-5.2
Provider
DeepInfra
Context window
1,048,576 tokens
Accepts
text
Returns
text
Input price
$0.563 per million tokens
Output price
$1.80 per million tokens
Prompt caching
Supported — cached input is billed at the provider's cache rate, on credits and plans alike
Thinking
Optional - see "Z.ai: GLM 5.2 (Reasoning)" in the catalog to turn it on by default
Moderated
No
Cost on a monthly plan
About 5.0 plan credits per typical call (8k in, 1k out)
Routing endpoints
2 (base plus 1 routing variant)
Use Z.ai: GLM 5.2 in JanitorAI or SillyTavern
Make a Composite API key and type z-ai/glm-5.2 as the model name. JanitorAI takes the full URL https://composite.lucidity.sh/v1/chat/completions; SillyTavern, ChubAI, Agnai and RisuAI take https://composite.lucidity.sh/v1. It runs on credits, a plan, or your own provider key.
3.71% of tokens and 3.73% of requests over 30 days.
Success rate
100.0%
Across the last 100 requests Composite served for this model.
Time to first token
8497 ms
Median across the same sample.
Output speed
71.3 tok/s
Median generation rate after the first token.
Prompt cache hits
59.1%
Share of prompt tokens served from the provider's cache over 7 days.
Routing variants
The same model behind 1 alternative endpoint. Call the id directly to pin a route; the base id above picks for you.
Route
Model ID
Provider
Price
cheapThink
z-ai/glm-5.2:cheapThink
DeepInfra
$0.563 per million tokens input · $1.80 per million tokens output
Pricing
$0.563 per million tokens input · $1.80 per million tokens output
Credits pay the provider’s price plus 25%; cache hits cost less.
On a monthly plan, a typical call (8k tokens in, 1k out) uses about 5.0 plan credits, at the provider's own price.
Provider
DeepInfra
Roleplay fit
GLM models balance strong instruction-following with competitive pricing, a reasonable middle ground for most roleplay setups.
Context behavior
With a 1,048,576-token context window, it can hold a long-running roleplay or a full lorebook in memory without losing earlier plot details, so it suits multi-session campaigns and character cards with heavy backstory.
Cost for regular use
It sits in the mid-range on price, a reasonable pick for regular roleplay use without going for the cheapest option available.
From the provider
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,...