GPT-5.6 is here 🎉 20% off all GPT 🎉 All July 🔥Learn more
Zhipu

Z.ai: GLM 5.1

Chat
z-ai/glm-5.1
Context Window
200K
Max Output Tokens
128K
Released
2026-03-27
Capabilities
Function CallingReasoningPrompt CachingWeb Search
Available Providers
ZhipuZhipuBaiLianAliyun
Supported Protocols
OpenAIopenaiAnthropicanthropic

Sign in to try Z.ai: GLM 5.1

Chat with this model right here. Conversations live only in this page and are never stored.

Conversations are not saved — leaving or refreshing this page clears them.

Providers

BaiLianAliyun
Input Tokens
$1.4/M
Output Tokens
$4.4/M
Cache Read
$0.26/M
Cache Write
$1.5/M
Web Search
$0.01/R
Protocols
OpenAIopenai/v1/chat/completions
Anthropicanthropic
ZhipuZhipu
Input Tokens
$1.4/M
Output Tokens
$4.4/M
Cache Read
$0.26/M
Web Search
$0.01/R
Protocols
OpenAIopenai/v1/chat/completions
Anthropicanthropic

Code Examples

from openai import OpenAI
client = OpenAI(
base_url="https://api.ofox.io/v1",
api_key="YOUR_OFOX_API_KEY",
)
response = client.chat.completions.create(
model="z-ai/glm-5.1",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)

Uptime & Status

Benchmarks

LMArenaEvaluated as glm-5.1

Z.ai: GLM 5.1 scores 1472 in the Overall category of the LMArena text leaderboard (style control), ranking #25 of 374 models based on 27,322 human preference votes (updated 2026-07-12).

Benchmark scores for glm-5.1 on LMArena
CategoryArena Score95% CIRankVotes
Overall147214671477#25 of 37427,322
Hard Prompts149414881500#22 of 37418,029
Coding152215141529#17 of 3697,638
Math147914631495#18 of 3621,432
Creative Writing145414451464#19 of 3724,644
Instruction Following146514581472#21 of 3749,253
Chinese151815021534#18 of 3441,561

Source: LMArena · CC BY 4.0 · Updated 2026-07-12 · Methodology · Ranks compare models within each category of the LMArena text leaderboard (style control). Scores come from third-party human preference evaluations, not from OFOX.

Frequently Asked Questions

Z.ai: GLM 5.1 on Ofox.ai costs $1.4/M per million input tokens and $4.4/M per million output tokens. Pay-as-you-go, no monthly fees.