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

Z.ai: GLM-4.7-Flash (Free)

ChatFREE
z-ai/glm-4.7-flash:free
CompareGet Started

GLM-4.7-Flash is Z.ai's 30B-class model that balances performance with efficiency. It is further optimized for agentic coding, strengthening coding capability, long-horizon task planning, and tool collaboration, and reaches leading performance among open-source models of the same size on several public benchmark leaderboards. It supports function calling (tool use), prompt caching, and web search. Context: 200K tokens, output: 128K. This variant is free: input and output tokens are both billed at $0. Available via OpenAI and Anthropic protocols through Ofox.

Context Window
200K
Max Output Tokens
128K
Released
2026-01-19
Capabilities
Function CallingPrompt CachingWeb Search
Available Providers
ZhipuZhipu
Supported Protocols
OpenAIopenaiAnthropicanthropic

Pricing

TypePrice
Input Tokens$0/M
Output Tokens$0/M
Web Search$0.01/R

Code Examples

from openai import OpenAI
client = OpenAI(
base_url="https://api.ofox.ai/v1",
api_key="YOUR_OFOX_API_KEY",
)
response = client.chat.completions.create(
model="z-ai/glm-4.7-flash:free",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)

Benchmarks

LMArenaEvaluated as glm-4.7-flash

Z.ai: GLM-4.7-Flash (Free) scores 1368 in the Overall category of the LMArena text leaderboard (style control), ranking #162 of 374 models based on 11,720 human preference votes (updated 2026-07-12).

Benchmark scores for glm-4.7-flash on LMArena
CategoryArena Score95% CIRankVotes
Overall136813621374#162 of 37411,720
Hard Prompts138713791394#159 of 3746,515
Coding142314121435#154 of 3692,686
Math136613451387#162 of 362715
Creative Writing131312991327#183 of 3721,809
Instruction Following135113411361#167 of 3743,171
Chinese143414061461#120 of 344442

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-Flash (Free) on Ofox.ai costs $0 per million input tokens and $0 per million output tokens. Pay-as-you-go, no monthly fees.