Z.ai: GLM-4.7-Flash (Free)
ChatFREEz-ai/glm-4.7-flash:freeGLM-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.
Pricing
| Type | Price |
|---|---|
| Input Tokens | $0/M |
| Output Tokens | $0/M |
| Web Search | $0.01/R |
Code Examples
from openai import OpenAIclient = 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
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).
| Category | Arena Score | 95% CI | Rank | Votes |
|---|---|---|---|---|
| Overall | 1368 | 1362–1374 | #162 of 374 | 11,720 |
| Hard Prompts | 1387 | 1379–1394 | #159 of 374 | 6,515 |
| Coding | 1423 | 1412–1435 | #154 of 369 | 2,686 |
| Math | 1366 | 1345–1387 | #162 of 362 | 715 |
| Creative Writing | 1313 | 1299–1327 | #183 of 372 | 1,809 |
| Instruction Following | 1351 | 1341–1361 | #167 of 374 | 3,171 |
| Chinese | 1434 | 1406–1461 | #120 of 344 | 442 |
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.