Zhipu

Z.ai: GLM-5.2

Chat
z-ai/glm-5.2
CompareGet Started

GLM-5.2 is the flagship reasoning model on Z.ai's international platform (api.z.ai), built on an open-weights MoE architecture with a 1M-token context window. It features embedded thinking (reasoning_content), prompt caching, tool calling, and web search, with strong coding and long-horizon agentic execution. Available via OpenAI-compatible and Anthropic protocols.

Context Window
1M
Max Output Tokens
128K
Released
2026-06-16
Capabilities
Function CallingReasoningPrompt CachingWeb Search
Available Providers
ZhipuZhipu
Supported Protocols
OpenAIopenaiAnthropicanthropic

Providers

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.run/v1",
api_key="YOUR_OFOX_API_KEY",
)
response = client.chat.completions.create(
model="z-ai/glm-5.2",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)

Uptime & Status

Benchmarks

LMArenaEvaluated as glm-5.2 (max)

Z.ai: GLM-5.2 scores 1464 in the Overall category of the LMArena text leaderboard (style control), ranking #35 of 374 models based on 14,228 human preference votes (updated 2026-07-12).

Benchmark scores for glm-5.2 (max) on LMArena
CategoryArena Score95% CIRankVotes
Overall146414581471#35 of 37414,228
Hard Prompts148714801494#32 of 3749,331
Coding151115011521#33 of 3693,968
Math147714551499#22 of 362708
Creative Writing144314311455#38 of 3722,561
Instruction Following146114521470#29 of 3744,852
Chinese150414811526#29 of 344728

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.2 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.