glm-5.1
GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...
Pricing
| Input price | $0.51 / 1M tokens |
| Output price | $2.06 / 1M tokens |
| Context window | 200K tokens |
| Compatible endpoints | openai, anthropic |
| Vendor | Zhipu |
Call glm-5.1 from your code
Point any OpenAI-compatible SDK at UnoRouter and request the model by name. Replace YOUR_API_KEY with a real key from your dashboard.
curl https://api.unorouter.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.1",
"messages": [{"role": "user", "content": "Hello!"}]
}'Frequently asked questions
How much does glm-5.1 cost per 1M tokens?
Input is priced at $0.51 per 1M tokens, output at $2.06 per 1M tokens. Billing is per token, no rounding to batch sizes.
How do I access glm-5.1 via API?
Send requests to the UnoRouter /v1/chat/completions endpoint with model=glm-5.1. Any OpenAI-compatible client library works. Authentication uses a standard Bearer token.
What is the context window of glm-5.1?
glm-5.1 supports a context window of 200K tokens, shared between your prompt and the model's response.