20% off all GPT ๐ŸŽ‰ 30% off DeepSeekLearn more

Z.ai: GLM 4.7

Chat
z-ai/glm-4.7

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, letting it plan multi-step tasks and bring in external information when a request calls for it. Context: 200K tokens, output: 128K, leaving room for long documents and extended agent traces. 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
Z.aiAliyun
Supported Protocols
openaianthropic

Providers

Aliyunprovider.type: "aliyun"
Input Tokens
$0.4/M
Output Tokens
$2.2/M
Cache Read
$0.086/M
$0.11/M
Web Search
$0.01/R
Protocols
openai/v1/chat/completions
anthropic
Z.aiprovider.type: "zai"
Input Tokens
$0.4/M
Output Tokens
$2.2/M
Cache Read
$0.11/M
Web Search
$0.01/R
Protocols
openai/v1/chat/completions
anthropic

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

LMArena โ†—Evaluated 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
Overall1436โ€“1449#64 of 37412,095
Hard Prompts1455โ€“1471#61 of 3746,602
Coding1474โ€“1498#70 of 3692,411
Math1407โ€“1449#80 of 362707
Creative Writing1392โ€“1419#72 of 3721,917
Instruction Following1418โ€“1438#67 of 3743,209
Chinese1465โ€“1509#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.2/M per million output tokens. Pay-as-you-go, no monthly fees.