Z.ai: GLM 4.7 Flash: AI model
GLM-4.7 Flash is a 30B-class model balancing performance and efficiency, optimized for agentic coding. Fast and inexpensive, via Hormouz.
- Context window:
- 200,000 tokens
- Input:
- $0.06/1M tokens
- Output:
- $0.4/1M tokens
- Type:
- text
- Tools
- Streaming
- Long context
Thinking levels:
GLM-4.7 Flash is a 30B-class model that offers a balanced option between performance and efficiency. It is optimized for agentic coding use cases, strengthening coding capability, long-horizon task planning and tool collaboration.
The model has reached leading performance among open-source models of the same size on several public benchmark leaderboards. With a context window of about 200K tokens and tool calling, it fits high-volume, cost-sensitive workloads.
Pricing is very economical: $0.06 per million input tokens and $0.40 per million output tokens. GLM-4.7 Flash is served through Hormouz behind an OpenAI-compatible API with stable access from inside Iran.
As a 30B-class SOTA model, GLM-4.7-Flash offers a new option that balances performance and efficiency. It is further optimized for agentic coding use cases, strengthening coding capabilities, long-horizon task planning,...
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-flash",
"messages": [{"role": "user", "content": "Hello!"}]
}'Specs
| Vendor | Z.ai |
|---|---|
| Type | Text |
| Context window | 200,000 tokens |
| Pricing | $0.06/M in · $0.40/M out |
| API | Chat Completions |
| Capabilities | Streaming · Tools |
Benchmarks
Reasoning
Coding
Agentic
Source: Artificial Analysis
Design Arena
How Design Arena works ↗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-flash",
"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-flash",
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-flash",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);Buy the Z.ai: GLM 4.7 Flash 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 Flash 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
- What is GLM-4.7 Flash good for?
- Agentic coding, long-horizon task planning and high-volume, cost-sensitive workloads. Because it is fast and inexpensive.
- How much does GLM-4.7 Flash cost?
- Pricing is very low: $0.06 per million input tokens and $0.40 per million output tokens.
- What is the context window of GLM-4.7 Flash?
- The model supports about 200K tokens of context and tool calling.
- How is GLM-4.7 Flash different from GLM-4.7?
- Flash is a smaller (30B-class), cheaper model optimized for speed and cost; the standard GLM-4.7 gives higher quality for more complex tasks.
- How do I access GLM-4.7 Flash from inside Iran?
- Create an account on Hormouz and generate an API key. Hormouz provides stable access from inside Iran via an OpenAI-compatible API.
Updated 2026-10-13