Z.ai: GLM 5.1: AI model
GLM-5.1 delivers a major leap in coding and can work autonomously on a single long task for over 8 hours. With a ~200K-token context window, reachable from inside Iran through Hormouz.
- Context window:
- 204,800 tokens
- Input:
- $0.97/1M tokens
- Output:
- $3.04/1M tokens
- Type:
- text
- Tools
- Streaming
- Long context
Thinking levels:
GLM-5.1 delivers a major leap in coding capability, with particularly large gains on long-horizon tasks. Unlike earlier models built around minute-level interactions, GLM-5.1 can work independently and continuously on a single task for more than 8 hours, autonomously planning, executing and improving itself throughout the process.
The result is complete, engineering-grade output. The model supports tool calling and a context window of about 200K tokens, making it a fit for autonomous agents, software-engineering pipelines and complex multi-step tasks.
Pricing is usage-based: $0.975 per million input tokens and $4.30 per million output tokens. GLM-5.1 is served through Hormouz behind an OpenAI-compatible API with stable access from inside Iran.
GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...
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-5.1",
"messages": [{"role": "user", "content": "Hello!"}]
}'Specs
| Vendor | Z.ai |
|---|---|
| Type | Text |
| Context window | 204,800 tokens |
| Pricing | $0.97/M in · $3.04/M out |
| API | Chat Completions |
| Capabilities | Streaming · Tools |
Benchmarks
Reasoning
Coding
Agentic
Source: Artificial Analysis
Design Arena
How Design Arena works ↗Ranking distribution
10771 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-5.1",
"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-5.1",
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-5.1",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);Buy the Z.ai: GLM 5.1 API, paid in rial
- Buy credit with an Iranian bank card; no foreign card or account needed.
- One Hormouz key reaches Z.ai: GLM 5.1 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 sets GLM-5.1 apart?
- Its ability to work independently and continuously on long-horizon tasks. It can focus on a single task for more than 8 hours, autonomously planning, executing and self-improving.
- How much does GLM-5.1 cost?
- Billing is usage-based: $0.975 per million input tokens and $4.30 per million output tokens.
- What context window and capabilities does GLM-5.1 have?
- It supports about 200K tokens of context and tool calling, and is a fit for coding and long-horizon agentic work.
- How do I access GLM-5.1 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, with no foreign credit card required.
- Is GLM-5.1 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