
glm-5.1
Z.ai/πΈπ¬ Singapore/chat10% off
Compared with GLM-5, GLM-5.1 delivers significant improvements in coding, agentic tool usage, reasoning, role-play, and general chat quality. Besides, GLM-5.1 has outstanding capabilities in long-horizon agentic tasks like CUDA kernel optimization.MoreLess
Which id to call
zai/glm-5.1This exact deployment on Z.ai, with no routing and no failover. Send it as the model field.
Input /1M
$1.26
$1.40 list
$0.23 cached
Output /1M
$3.96
$4.40 list
3.1x input
Context
200K
128K output
Added
Apr 2026
chat
Capabilities 3/8
Provider rates
What glm-5.1 costs
Provider prices per 1M tokens, updated August 23, 2026.moreless
These are the upstream provider rates. Pay as you go adds 5%, or 0% if you bring your own keys, and there is no per-request fee. Prompt caching and routing change what you pay against these rates, not the rates themselves.
This endpoint is discounted. List is $1.40 per 1M input and $4.40 per 1M output, and the rates below are what you pay. The discount applies to every request on this endpoint, with nothing to claim or enter.
Input /1M
$1.26
$1.40 list
Output /1M
$3.96
$4.40 list
Cache write /1M
-
Cache read /1M
$0.23
What a workload costs
- 100K input + 10K output
- $0.17
- 1M input + 100K output
- $1.66
- 10M input + 1M output
- $16.56
At the rates above, before caching. A cache read costs $0.23 per 1M, so repeated context lands under these figures.
model=
Which id to call
One base url, https://router.requesty.ai/v1, and one key for every id here.
zai/glm-5.1This exact deployment on Z.ai, with no routing and no failover. Send it as the model field.
OpenAI compatible
Call it in three lines
Change the base url, use your Requesty key, set the model to any id on the left. Existing OpenAI SDK code needs no other edit.
123456789101112131415from openai import OpenAI client = OpenAI( api_key="YOUR_REQUESTY_API_KEY", base_url="https://router.requesty.ai/v1", ) response = client.chat.completions.create( model="zai/glm-5.1", messages=[ {"role": "user", "content": "Explain quantum computing in one paragraph."}, ], ) print(response.choices[0].message.content)
Reference
Specs and data terms
What the catalog reports for this deployment, and what the provider does with the traffic.
Released 2026-04-07
Benchmark scores
Benchmarks measure the model, not this endpoint, so they are the same wherever these weights are served.
Artificial Analysis Coding Index: a composite of coding evaluations including LiveCodeBench, SciCode and Terminal-Bench.
Graduate-level physics, chemistry & biology questions designed to resist Googling.
Artificial Analysis Intelligence Index: a composite of multiple evaluations measuring overall model capability.
Scores from official model cards, Artificial Analysis and public leaderboards. They measure specific skills and do not capture every aspect of model quality, so test on your own workload.
Same provider
More from Z.ai
Newest first, on the same provider and the same key.
Reference
glm-5.1 questions
How much does glm-5.1 cost?
glm-5.1 is priced at $1.26 per million input tokens and $3.96 per million output tokens when accessed via Requesty. Those figures include a 10% discount on this endpoint, off a list rate of $1.40 per million input tokens and $4.40 per million output tokens. Prompt caching is supported, which can cut effective input cost by up to 90% on repeated context. Those are the upstream provider rates: pay as you go adds 5% on top, or 0% if you bring your own provider keys.
What is the context window of glm-5.1?
glm-5.1 has a context window of 200K tokens, with a maximum output of 128K tokens per response. That's roughly 267 words of input you can fit in a single prompt.
How does glm-5.1 perform on benchmarks?
glm-5.1 scores 97.7% on ΟΒ²-Bench, 86.8% on GPQA Diamond, 55.8% on Coding Index. See the full benchmark chart above for results across MMLU Pro, GPQA Diamond, SWE-Bench Verified, HumanEval, MATH, AIME, MMMU, and LiveBench.
What can glm-5.1 do?
glm-5.1 supports tool calling, extended reasoning, prompt caching. You can call it through any OpenAI-compatible client by pointing base_url to Requesty.
How do I use glm-5.1 with the OpenAI SDK?
Install the OpenAI SDK, set base_url to "https://router.requesty.ai/v1", set your API key to your Requesty key, and set the model to "zai/glm-5.1". The Quickstart above shows Python, JavaScript and cURL snippets.
Can I run glm-5.1 through Requesty?
Yes. glm-5.1 runs through Requesty's OpenAI-compatible API, served from Z.ai. You do not host the model yourself: point base_url at Requesty, set the model to "zai/glm-5.1", and requests are routed to the upstream provider with automatic failover. The same key gives you 600+ other models too.
Call glm-5.1 through one endpoint
One key for this endpoint and 600+ other models. No markup on provider prices, automatic failover, caching built in.
