Z.ai: GLM 5.1
Chatz-ai/glm-5.1Context Window
200K
Max Output Tokens
128K
Released
2026-03-27
Capabilities
Function CallingReasoningPrompt CachingWeb Search
Available Providers
ZhipuAliyun
Supported Protocols
openaianthropic
Providers
Aliyun
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
openai
/v1/chat/completionsanthropic
Zhipu
Input Tokens
$1.4/M
Output Tokens
$4.4/M
Cache Read
$0.26/M
Web Search
$0.01/R
Protocols
openai
/v1/chat/completionsanthropic
Code Examples
from openai import OpenAIclient = 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
LMArena ↗Evaluated 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).
| Category | Arena Score | 95% CI | Rank | Votes |
|---|---|---|---|---|
| Overall | 1472 | 1467–1477 | #25 of 374 | 27,322 |
| Hard Prompts | 1494 | 1488–1500 | #22 of 374 | 18,029 |
| Coding | 1522 | 1514–1529 | #17 of 369 | 7,638 |
| Math | 1479 | 1463–1495 | #18 of 362 | 1,432 |
| Creative Writing | 1454 | 1445–1464 | #19 of 372 | 4,644 |
| Instruction Following | 1465 | 1458–1472 | #21 of 374 | 9,253 |
| Chinese | 1518 | 1502–1534 | #18 of 344 | 1,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.
Related Models
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.
Z.ai: GLM 5.1 supports a context window of 200K tokens with max output of 128K tokens, allowing you to process large documents and maintain long conversations.
Simply set your base URL to https://api.ofox.io/v1 and use your Ofox API key. The API is OpenAI-compatible — just change the base URL and API key in your existing code.
Z.ai: GLM 5.1 supports the following capabilities: Function Calling, Reasoning, Prompt Caching, Web Search. Access all features through the Ofox.ai unified API.