Requesty

zai-org/GLM-5.1

GLM-5.1 is Z-AI's next-generation flagship model for agentic engineering, with significantly stronger coding capabilities than its predecessor. It achieves state-of-the-art performance on SWE-Bench Pro and leads GLM-5 by a wide margin on NL2Repo (repo generation) and Terminal-Bench 2.0 (real-world terminal tasks).

🧠ReasoningπŸ”§Tool calling⚑Caching

Specifications

Context window203K tokens
Max outputβ€”
API typechat
AddedMay 27, 2026
Model IDdeepinfra/zai-org/GLM-5.1
Data retentionNo
Used for trainingNo
Provider locationπŸ‡ΊπŸ‡Έ US

Benchmarks

Benchmarks haven't been published yet for this exact variant.

Some variants (region-specific deployments, highspeed tiers) share benchmarks with their base model β€” check the base model page or the DeepInfra Inc. models overview.

Pricing

Input / 1M
$1.05
Output / 1M
$3.50
Cache write
β€”
Cache read / 1M
$0.20
Estimated cost
100K input + 10K output$0.14
1M input + 100K output$1.40
10M input + 1M output$14.00

Requesty charges exactly what the upstream provider charges β€” no markup, no per-request fees. Prompt caching and smart routing can reduce effective cost by 30-80%.

Quickstart

Drop-in compatible with the OpenAI SDK. Change the base URL, swap in your Requesty API key, and set the model to deepinfra/zai-org/GLM-5.1.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from openai import OpenAI client = OpenAI( api_key="YOUR_REQUESTY_API_KEY", base_url="https://router.requesty.ai/v1", ) response = client.chat.completions.create( model="deepinfra/zai-org/GLM-5.1", messages=[ {"role": "user", "content": "Explain quantum computing in one paragraph."}, ], ) print(response.choices[0].message.content)

Other DeepInfra Inc. models

Frequently asked questions

How much does zai-org/GLM-5.1 cost?
zai-org/GLM-5.1 is priced at $1.05 per million input tokens and $3.50 per million output tokens when accessed via Requesty. Prompt caching is supported, which can cut effective input cost by up to 90% on repeated context. Requesty charges exactly what the upstream provider charges β€” we don't add markup.
What is the context window of zai-org/GLM-5.1?
zai-org/GLM-5.1 has a context window of 203K tokens. That's roughly 270 words of input you can fit in a single prompt.
What can zai-org/GLM-5.1 do?
zai-org/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 zai-org/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 "deepinfra/zai-org/GLM-5.1". The Quickstart above shows Python, JavaScript and cURL snippets.

Access zai-org/GLM-5.1 through Requesty

One API key, 400+ models, OpenAI-compatible. No markup on provider prices, automatic failover, and smart caching built-in.