Z.ai: GLM 4.7: AI model
GLM-4.7 is Z.ai's newer flagship with enhanced coding and more stable multi-step reasoning. With a ~200K-token context window, reachable from inside Iran through Hormouz.
- Context window:
- 204,800 tokens
- Input:
- $0.6/1M tokens
- Output:
- $2.2/1M tokens
- Type:
- text
- Tools
- Streaming
- Long context
Thinking levels:
GLM-4.7 is Z.ai's newer flagship model, upgraded in two key areas: stronger programming capability and more stable multi-step reasoning and execution. It shows significant improvement on complex agent tasks while delivering a more natural conversational experience and better front-end aesthetics.
The model supports tool calling and a context window of about 200K tokens, making it a fit for autonomous assistants, developer tooling and multi-step workflows. GLM-4.7 is served through Hormouz behind an OpenAI-compatible API.
Pricing is usage-based: $0.40 per million input tokens and $1.75 per million output tokens. Hormouz provides stable access to the model from inside Iran.
GLM-4.7 is Z.ai’s latest flagship model, featuring upgrades in two key areas: enhanced programming capabilities and more stable multi-step reasoning/execution. It demonstrates significant improvements in executing complex agent tasks while...
Quickstart
curl https://api.hormouz.net/v1/chat/completions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "z-ai/glm-4.7",
"messages": [{"role": "user", "content": "Hello!"}]
}'Specs
| Vendor | Z.ai |
|---|---|
| Type | Text |
| Context window | 204,800 tokens |
| Pricing | $0.60/M in · $2.20/M out |
| API | Chat Completions |
| Capabilities | Streaming · Tools |
Benchmarks
Reasoning
Coding
Agentic
Source: Artificial Analysis
Design Arena
How Design Arena works ↗Ranking distribution
29169 tournaments ?
Metrics sourced from Design Arena
Code example
curl https://api.hormouz.net/v1/chat/completions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "z-ai/glm-4.7",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(api_key="ng-YOUR_API_KEY", base_url="https://api.hormouz.net/v1")
response = client.chat.completions.create(
model="z-ai/glm-4.7",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ apiKey: "ng-YOUR_API_KEY", baseURL: "https://api.hormouz.net/v1" });
const response = await client.chat.completions.create({
model: "z-ai/glm-4.7",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);Buy the Z.ai: GLM 4.7 API, paid in rial
- Buy credit with an Iranian bank card; no foreign card or account needed.
- One Hormouz key reaches Z.ai: GLM 4.7 and 600+ other models, and you pay only for what you use.
- No VPN and no risk of a banned account; just change the base URL to api.hormouz.net/v1.
Use via Hormouz
Connect to this model and 600+ others with one API key, then see usage down to each request.
Request company accessFAQ
- How is GLM-4.7 different from GLM-4.5?
- GLM-4.7 is the newer flagship, with stronger coding, more stable multi-step reasoning and a larger context window (about 200K tokens).
- How much does GLM-4.7 cost?
- Billing is usage-based: $0.40 per million input tokens and $1.75 per million output tokens.
- What context window and capabilities does GLM-4.7 have?
- It supports about 200K tokens of context and tool calling, and is a fit for agentic work and coding.
- How do I access GLM-4.7 from inside Iran?
- Create an account on Hormouz and generate an API key. Hormouz provides stable access from inside Iran, with no foreign credit card required.
- Is GLM-4.7 compatible with OpenAI code?
- Yes. Point the base URL at Hormouz and drop in a Hormouz key. Your existing code runs unchanged.
Updated 2026-10-13