Zhipu route

glm-5.2

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.

Route status Available

#20

Cost rank / 39

mid-range

Cost band

Published route economicsUSD / 1M tokens

Input / 1M tokens

$1.40

Output / 1M tokens

$4.40

Context window

1M

Provider

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 20th cheapest of 39 comparable text models and cheaper than 18 on the same key. Its context window ranks 23rd of 39.

Cost simulationPublished base rate

Short request

$0.018

10K input + 1K output

Agent turn

$0.18

100K input + 10K output

Exact token billing

No request minimum

One model ID change

OpenAI compatible

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.

Price does not measure task quality. Check GLM-5.2 benchmark evidence before optimizing on cost alone.

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 quickstart
curl /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.

Same endpoint, every route
01How 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.

02What 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 20th cheapest of 39 comparable text models on RouterPlex, roughly 17.0× the cost of the cheapest option (DeepSeek V4 Flash).

03What is a cheaper alternative to GLM-5.2?+

Claude Haiku 4.5 from Anthropic 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.

04Is 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.

05What is the context window of GLM-5.2?+

GLM-5.2 supports a 1M token context window on RouterPlex, the 23rd largest of the 39 models that publish one.

06Can 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".

Provider family

More from Zhipu.

All routes

Deploy this route

Put GLM-5.2 behind one key.

Top up from $5 with no subscription required.

GLM-5.2 API Pricing · RouterPlex