identity

open weights
Z.ai logo

glm-5.1Z.ai

in /1M$1.40input tokens
out /1M$4.40output tokens
context200K128K out
trainingnoon your prompts
api
chat
hosting
Singapore
model lab
Z.AI
weights
open
added
April 2026
model id
zai/glm-5.1

capabilities 3/8

visionreasoningtoolscachingweb searchjson schemacomputer useimage gen

5 providers serve glm-5.1. This page is one of them. Compare all endpoints

pricing

no markup
input
$1.40
output
$4.40
cache write
-
cache read
$0.26

worked cost

Estimated cost for three request volumes
volumecost
100K in + 10K out$0.18
1M in + 100K out$1.84
10M in + 1M out$18.40

Requesty charges what the upstream provider charges, with no markup and no per-request fee. Prompt caching and smart routing cut the effective cost further on repeated context. Gateway pricing

provider price, passed throughper 1M tokens

measured

through Sep 11

no measured traffic for this endpoint yet. pricing above is the provider's own

benchmarks

artificial analysis
Benchmark scores, each normalised to 100
evalScore as a share of 100/100
τ²-Bench97.7
GPQA Diamond86.8
Coding Index55.8
SciCode44.8
Terminal-Bench Hard43.2
Humanity's Last Exam30.1
Intelligence Index26.4
7 evalsmean55.0

Scores from Artificial Analysis and public leaderboards, normalised to 100. Bar colour is the band, not the rank: green 80 and up, blue 55 and up, amber 30 and up. Benchmarks measure narrow skills, so test on your own workload before committing. Released 2026-04-07.

policy

data terms
retention
none
trains on prompts
no
hosted in
Singapore

Terms are the provider's, not Requesty's: routing a request here puts it under them. Z AI Privacy Policy

Need every request to stay in one jurisdiction? EU hosting routes only through EU-hosted providers.

quickstart

openai compatible
zai/glm-5.1

this id pins the z.ai deployment, with no routing and no failover. the managed id on the canonical page routes across all 5 providers instead

main.py
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="zai/glm-5.1",    messages=[        {"role": "user", "content": "Explain quantum computing in one paragraph."},    ],) print(response.choices[0].message.content)

Change the base url to https://router.requesty.ai/v1, use your Requesty key, set the model to the id above. Existing OpenAI SDK code needs no other edit, and the same key reaches every other model in the catalog. Browse all models

notes

reference

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.

questions 6

How much does glm-5.1 cost?
glm-5.1 is priced at $1.40 per million input tokens and $4.40 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 glm-5.1?
glm-5.1 has a context window of 200K tokens, with a maximum output of 128K tokens per response. That is 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. The benchmarks pane shows every published result, each normalised to 100.
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 pane 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.

more from z.ai 7

Other Z.ai endpoints
endpointctxin /M
glm-5.3-flash1M$0.15
glm-5.31M$1.40
glm-5.21M$1.40
GLM-5200K$1.00
GLM-4.7200K$0.60
GLM-4.6200K$0.60
GLM-4.5131K$0.60

call glm-5.1 through one endpoint

One key for this endpoint and 600+ other models. No markup on provider prices, automatic failover when a provider degrades, and prompt caching built in. Methodology

glm-5.1z.aiin $1.40 /1Mout $4.40 /1Mctx 200Khosted Singapore5 providers serve this model