Skip to content
Not available in this workspace
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Collections
  • Providers
  • Pricing
  • Enterprise
  • Labs

Company

  • About
  • Blog
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Support
  • Works With OR
  • Data

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube
Favicon for z-ai

Z.ai: GLM 5.1

z-ai/glm-5.1

Model weights
Compare

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 a single task for more than 8 hours, autonomously planning, executing, and improving itself throughout the process, ultimately delivering complete, engineering-grade results.

Modalities

In / Out Price

35% off

$0.91 / $2.86per 1M

Context

205K

Released

Apr 7, 2026

Compare
ProvidersPricingPerformanceUptimeBenchmarksAppsActivityFAQExplore

Providers

Different companies host the same model. OpenRouter routes your request to one of them based on the routing mode you pick — Balanced (price + speed), Nitro (fastest), or Exacto (highest tool-calling accuracy).

Pricing

The average price customers actually pay for this model, next to the prices providers post. Caching and discounts mean the price actually paid is often well below the listed one.

Performance

Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better).

Uptime

Uptime is the percentage of the past 3 days that at least one provider was responding to requests. Availability is the percentage of time that inference was successfully served. OpenRouter continuously monitors and uses the next-best provider when one returns an error.

Benchmarks

Scores on standardized evaluations. Higher percentages are better — and rank percentile shows where this model lands among all models on OpenRouter.

Apps

Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.

Activity

Token volume and request traffic to this model over time.

Quick Start

Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.

Explore models like this

AI Model RankingsRanking
35% off
$1.40$0.91$4.40$2.86$0.26$0.1692.46s43 tps
99.66%
31% off
$1.40$0.966$4.40$3.036$0.26$0.17942.72s22 tps
99.61%
$1.05$3.50$0.2051.01s55 tps
99.75%
$1.19$3.74$0.601.81s43 tps
99.95%
$1.20$4.40$0.250.62s68 tps
99.78%
$1.26$3.96$0.2341.55s50 tps
99.84%
$1.30$4.30$0.261.10s21 tps
96.80%
$1.33$4.18$0.2472.12s46 tps
99.92%
$1.38$4.40$0.263.59s30 tps
99.87%
$1.40$4.40--1.14s35 tps
96.71%
$1.40$4.40$0.261.05s57 tps
99.95%
$1.40$4.40$0.264.43s23 tps
99.95%
$1.40$4.40$0.260.42s102 tps
99.21%
$1.40$4.40$0.260.24s65 tps
99.97%
$1.54$4.84$0.2861.14s84 tps
99.53%
$1.21$4.20$0.603.34s23 tps
81.98%
$0.98$3.08$0.0982.39s31 tps
79.16%

Throughput

102tok/s

P50, best across providers

Latency

0.24s

P50, best provider

AutoExacto Benchmarks
GPQA DiamondTAU-Bench
Parasail
83.7%76.7%
SiliconFlow
82.4%76.9%
GMICloud
79.1%--
auto-routing
82.4%75.5%
AtlasCloud
80.3%77.2%
+15 more providers
Uptime (3d)

100.00%

Availability (3d)

99.12%

Availability over the last 3 days

Last 72 hours
Availability 99.12%
3 Days Ago2 Days AgoYesterdayNow

Availability over the last 24 hours

OpenRouter Availability
99.27%
Without Routing
94.96%

When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it. You can access per-provider uptime data programmatically through the Endpoints API. Learn more about our load balancing and customization options.

1.
Favicon for https://nousresearch.com
Hermes Agent
Hermes Agent is an open-source, self-improving AI agent by Nous Research that runs persistently with memory across sessions, and builds reusable skills from experience. It comes with 40+ built-in tools, including web search, browser automation, and vision, plus scheduled automations and subagents.
30.5Btokens
2.
Favicon for https://openclaw.ai/
OpenClaw
OpenClaw is an open-source AI agent that connects to your messaging apps and takes real actions on your behalf, from running commands and browsing the web to managing files and sending emails.
28Btokens
3.
Favicon for https://mira.tg/
Mira is the leading AI agent inside Telegram
Mira is a Telegram-native AI assistant.
14.3Btokens
4.
Favicon for https://joi.ai/
Joi-alpha-PoC
new
13.8Btokens
5.
Favicon for https://claude.ai/apple-touch-icon.png
Claude Code
Claude Code is Anthropic's agentic coding tool that reads your entire codebase, plans and executes changes across files, runs tests, and iterates on failures, all from natural language prompts.
9.93Btokens

About Z.ai: GLM 5.1

OpenRouter makes Z.ai: GLM 5.1 available through a unified, OpenAI-compatible API using the model ID z-ai/glm-5.1. Requests can be routed across 17 providers, including GMICloud, StreamLake, Chutes, DeepInfra, SiliconFlow, Crusoe, Phala, AtlasCloud and 9 more, with automatic failover when an endpoint is unavailable.

Z.ai: GLM 5.1 accepts text and returns text. It has a 204,800-token context window.

On OpenRouter, Z.ai: GLM 5.1 costs $0.91/M input tokens and $2.86/M output tokens, with separate rates for Cache Read at $0.169/M tokens. Effective pricing can be lower when prompt caching applies. It was released on April 7, 2026.

More models from Z.ai

  • GLM 5.3
  • GLM 5.2
  • GLM 5V Turbo

Frequently asked questions

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 a single task for more than 8 hours, autonomously planning, executing, and improving itself throughout the process, ultimately delivering complete,...

GLM 5.1 costs $0.91/M input tokens and $2.86/M output tokens, with separate rates for Cache Read at $0.169/M tokens.

GLM 5.1 has a 204,800 token context window.

The GLM 5.1 endpoint shown on this page does not accept tools, so function calling is unavailable there. It does not support response_format, so JSON output is not enforced.

GLM 5.1 is served by 17 providers on OpenRouter: GMICloud, StreamLake, Chutes, DeepInfra, SiliconFlow, Crusoe, Phala, AtlasCloud and 9 more. Requests are routed to the best available provider, with automatic failover to the others, and you can pin or exclude providers with provider routing.

GLM 5.1 was released on April 7, 2026.