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

Z.ai: GLM-5

Chat
z-ai/glm-5

GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading closed-source models. With advanced agentic planning, deep backend reasoning, and iterative self-correction, GLM-5 moves beyond code generation to full-system construction and autonomous execution.

Context Window
200K
Max Output Tokens
128K
Released
2026-02-11
Capabilities
Function CallingReasoningPrompt CachingWeb Search
Available Providers
BaiLianAliyunZhipuZhipu
Supported Protocols
OpenAIopenaiAnthropicanthropic

Providers

BaiLianAliyun
Input Tokens
$1/M
Output Tokens
$3.2/M
Cache Read
$0.2/M
Web Search
$0.01/R
Protocols
OpenAIopenai/v1/chat/completions
Anthropicanthropic
ZhipuZhipu
Input Tokens
$1/M
Output Tokens
$3.2/M
Cache Read
$0.2/M
Web Search
$0.01/R
Protocols
OpenAIopenai/v1/chat/completions
Anthropicanthropic

Sign in to try Z.ai: GLM-5

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.

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",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)

Uptime & Status

Benchmarks

LMArenaEvaluated as glm-5

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

Benchmark scores for glm-5 on LMArena
CategoryArena Score95% CIRankVotes
Overall145614521461#44 of 37427,815
Hard Prompts147814721483#44 of 37417,145
Coding149814901505#54 of 3697,214
Math144314281457#56 of 3621,607
Creative Writing144514351454#32 of 3724,518
Instruction Following144614401453#46 of 3748,912
Chinese152315071539#14 of 3441,511

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 on Ofox.ai costs $1/M per million input tokens and $3.2/M per million output tokens. Pay-as-you-go, no monthly fees.