
Zhipu route
glm-5.1
GLM-5.1 API pricing.
One OpenAI-compatible route at the vendor list price with 0% markup, billed per token from one prepaid balance. No subscription required.
Input / 1M tokens
$1.40
Output / 1M tokens
$4.40
Context window
256K
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 35th of 39.
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.1 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 quickstartcurl https://api.routerplex.com/v1/chat/completions \-H "Authorization: Bearer $ROUTERPLEX_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "glm-5.1","messages": [{"role": "user", "content": "Hello!"}]}'
Route notes
Questions before production traffic.
01How much does the GLM-5.1 API cost?+
Through RouterPlex, GLM-5.1 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.1 agent turn cost?+
A 100K-token input with a 10K-token reply costs about $0.18 on GLM-5.1. 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.1?+
Claude Haiku 4.5 from Anthropic is the closest cheaper model on RouterPlex — $0.15 per agent turn against $0.18 for GLM-5.1, 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.1 cheaper than Gemini 3.5 Flash?+
Yes. Per agent turn, GLM-5.1 costs about $0.18 against $0.24 for Gemini 3.5 Flash — 23% less.
05What is the context window of GLM-5.1?+
GLM-5.1 supports a 256K token context window on RouterPlex, the 35th largest of the 39 models that publish one.
06Can I use GLM-5.1 with the OpenAI SDK?+
Yes. RouterPlex serves GLM-5.1 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.1".
Provider family
More from Zhipu.
Deploy this route
Put GLM-5.1 behind one key.
Top up from $5 with no subscription required.