GLM-5.2 API pricing.
One OpenAI-compatible route at the vendor list price with 0% markup, billed per token from one prepaid balance. No subscription required.
Published route economicsUSD / 1M tokens
$1.40
$4.40
$0.225
1M
Zhipu
Workload calculator
Put the token rate into context.
These examples apply the published input and output rates directly. Actual cost follows the exact tokens your client sends and the model returns.
This route is the 49th cheapest of 85 comparable text models and cheaper than 34 on the same key. Its context window ranks 53rd of 85.
Cost simulationPublished base rate
$0.018
$0.18
Exact token billing
One model ID change
Cost neighbourhood
Nearby routes, same workload.
Every comparison uses the same 100K-input / 10K-output turn. Changing route is a one-line model ID edit.
Model routeProviderContextTurn cost
GPT-6.1 Terra18% less
OpenAIContext 922KTurn $0.15Claude Haiku 4.518% less
AnthropicContext 256KTurn $0.15Kimi K2.7 Code27% less
MoonshotContext 262KTurn $0.14Gemini 3.5 Flash30% more
GoogleContext 1MTurn $0.24GLM-5.3 Abliterated30% more
ZhipuContext 1MTurn $0.24Price does not measure task quality.
First request
Route it in one call.
Use any OpenAI SDK or tool. Keep the request shape, point the base URL at RouterPlex, and set the model ID shown here.
Read the quickstartcurl /chat/completions
curl https://api.routerplex.com/v1/chat/completions \-H "Authorization: Bearer $ROUTERPLEX_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "glm-5.2","messages": [{"role": "user", "content": "Hello!"}]}'
Route notes
Questions before production traffic.
How much does the GLM-5.2 API cost?
Through RouterPlex, GLM-5.2 costs $1.40 per 1M input tokens and $4.40 per 1M output tokens — the vendor list price with 0% markup, billed per token from a prepaid balance you top up from $5. Cached input tokens are billed at $0.225 per 1M instead of the full input rate, which is most of the prompt on a repeated agent or coding loop.
What does one GLM-5.2 agent turn cost?
A 100K-token input with a 10K-token reply costs about $0.18 on GLM-5.2. That makes it the 49th cheapest of 85 comparable text models on RouterPlex, roughly 15.3× the cost of the cheapest option (Muse Spark 1.2 Contributor).
What is a cheaper alternative to GLM-5.2?
GPT-6.1 Terra from OpenAI is the closest cheaper model on RouterPlex — $0.15 per agent turn against $0.18 for GLM-5.2, at $1.00/1M input and $5.00/1M output. Both run on the same key and the same endpoint, so switching is a one-line model ID change.
Is GLM-5.2 cheaper than Gemini 3.5 Flash?
Yes. Per agent turn, GLM-5.2 costs about $0.18 against $0.24 for Gemini 3.5 Flash — 23% less.
What is the context window of GLM-5.2?
GLM-5.2 supports a 1M token context window on RouterPlex, the 53rd largest of the 85 models that publish one.
Can I use GLM-5.2 with the OpenAI SDK?
Yes. RouterPlex serves GLM-5.2 through an OpenAI-compatible endpoint at https://api.routerplex.com/v1 — point any OpenAI SDK or tool at that base URL with your RouterPlex key and set model to "glm-5.2".

