Zhipu

Z.ai: GLM 4.7

Chat
z-ai/glm-4.7
CompareGet Started

GLM-4.7 is Z.ai's flagship GLM model released on 2025-12-23, built around advanced reasoning and best-in-class Chinese language understanding. It supports reasoning, function calling (tool use), prompt caching, and web search. Context: 200K tokens, output: 128K. Pricing is $0.40/M input tokens and $2.00/M output, with cached input reads at $0.08/M. Available via OpenAI and Anthropic protocols through Ofox.

Context Window
200K
Max Output Tokens
128K
Released
2025-12-23
Capabilities
Function CallingReasoningPrompt CachingWeb Search
Available Providers
BaiLianAliyunZhipuZhipu
Supported Protocols
OpenAIopenaiAnthropicanthropic

Providers

BaiLianAliyun
Input Tokens
$0.4/M
Output Tokens
$2/M
Cache Read
$0.086/M
Web Search
$0.01/R
Protocols
OpenAIopenai/v1/chat/completions
Anthropicanthropic
ZhipuZhipu
Input Tokens
$0.4/M
Output Tokens
$2/M
Cache Read
$0.08/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-4.7",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)

Benchmarks

LMArenaEvaluated as glm-4.7

Z.ai: GLM 4.7 scores 1443 in the Overall category of the LMArena text leaderboard (style control), ranking #64 of 374 models based on 12,095 human preference votes (updated 2026-07-12).

Benchmark scores for glm-4.7 on LMArena
CategoryArena Score95% CIRankVotes
Overall14361449#64 of 37412,095
Hard Prompts14551471#61 of 3746,602
Coding14741498#70 of 3692,411
Math14071449#80 of 362707
Creative Writing13921419#72 of 3721,917
Instruction Following14181438#67 of 3743,209
Chinese14651509#57 of 344683

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