Hormouz AIHormouzSign in

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

VendorZ.ai
TypeText
Context window204,800 tokens
Pricing$0.97/M in · $3.04/M out
APIChat Completions
CapabilitiesStreaming · Tools

Benchmarks

Reasoning

GPQA Diamond
Graduate-level scientific reasoning
83.9%
HLE
Humanity's Last Exam
27.9%
IFBench
Instruction-following
52%
AA-LCR
Long-context reasoning
53.3%
CritPt
Research-level physics reasoning
0%
AA Omniscience
Broad factual knowledge accuracy
25.2%
Non-Hallucination
Rate of avoiding fabricated answers
36.4%

Coding

Terminal-Bench Hard
Agentic coding & terminal use
35.6%

Agentic

τ²-Bench
Tool-use agents in dual-control scenarios
97.1%

Source: Artificial Analysis

Ranking distribution

First
33,321
Second
27,703
Third
688
Fourth
750

10771 tournaments ?

3D
Top 20%
1,259Elo
Win rate: 53.2%Avg time: 389s
ASCII Art
Top 64%
1,143Elo
Win rate: 43.5%Avg time: 324s
Code
Top 18%
1,274Elo
Win rate: 53.4%Avg time: 360s
Data Viz
Top 19%
1,268Elo
Win rate: 53.6%Avg time: 287s
Game Dev
Top 18%
1,275Elo
Win rate: 55.6%Avg time: 445s
SVG
Top 22%
1,217Elo
Win rate: 55.9%Avg time: 185s
UI Component
Top 19%
1,279Elo
Win rate: 54.1%Avg time: 261s
Website
Top 20%
1,272Elo
Win rate: 52.5%Avg time: 338s
Agentic Game Dev
Top 71%
1,165Elo
Win rate: 49.8%
Agentic HTML Slides
Top 56%
1,205Elo
Win rate: 52%
Agentic Slides
Top 22%
1,245Elo
Win rate: 54.4%
Agentic Slides (HTML)
Top 56%
1,204Elo
Win rate: 51.8%
Agentic Slides (Python)
Top 33%
1,240Elo
Win rate: 53.3%
Android Native
Top 41%
1,194Elo
Win rate: 52%
Full-Stack
Top 55%
1,166Elo
Win rate: 53.2%
Godot Game Dev
Top 94%
1,053Elo
Win rate: 37.8%
HTML Slides
Top 61%
1,169Elo
Win rate: 48.8%Avg time: 376s
Mobile Apps
Top 54%
1,161Elo
Win rate: 51.1%
PPTX Slides
Top 37%
1,241Elo
Win rate: 53.5%
Python Slides
Top 25%
1,258Elo
Win rate: 54.2%Avg time: 582s
Web Apps
Top 62%
1,168Elo
Win rate: 50.7%

Metrics sourced from Design Arena

Code example

cURL
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!"}]
  }'
Python
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)
JavaScript
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.
Create an account

Use via Hormouz

Connect to this model and 600+ others with one API key, then see usage down to each request.

Request company access

FAQ

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