Skip to content
  • Models
  • Rankings
  • Ori
Sign Up
Sign Up
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

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

Company

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

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

31% off

$0.966 / $3.036per 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.

Benchmark score summary for Z.ai: GLM 5.1 (Artificial Analysis and Design Arena)
SourceBenchmarkScore
Artificial AnalysisGLM-5.1 (Reasoning) Intelligence Index26.4
Artificial AnalysisGLM-5.1 (Reasoning) Coding Index55.8
Artificial AnalysisGLM-5.1 (Reasoning) Agentic Index25.2
Artificial AnalysisGLM-5.1 (Reasoning) GPQA Diamond86.8%
Artificial AnalysisGLM-5.1 (Reasoning) HLE30.1%
Artificial AnalysisGLM-5.1 (Reasoning) IFBench76.3%
Artificial AnalysisGLM-5.1 (Reasoning) τ²-Bench Telecom97.7%
Artificial AnalysisGLM-5.1 (Reasoning) AA-LCR73.7%
Artificial AnalysisGLM-5.1 (Reasoning) GDPval-AA34.0%
Artificial AnalysisGLM-5.1 (Reasoning) CritPt4.6%
Artificial AnalysisGLM-5.1 (Reasoning) SciCode44.8%
Artificial AnalysisGLM-5.1 (Reasoning) Terminal-Bench Hard43.2%
Artificial AnalysisGLM-5.1 (Reasoning) AA-Omniscience Accuracy23.7%
Artificial AnalysisGLM-5.1 (Reasoning) AA-Omniscience Non-Hallucination Rate70.1%
Artificial AnalysisGLM-5.1 (Non-reasoning) GPQA Diamond83.9%
Artificial AnalysisGLM-5.1 (Non-reasoning) HLE27.9%
Artificial AnalysisGLM-5.1 (Non-reasoning) IFBench52.0%
Artificial AnalysisGLM-5.1 (Non-reasoning) τ²-Bench Telecom97.1%
Artificial AnalysisGLM-5.1 (Non-reasoning) AA-LCR53.3%
Artificial AnalysisGLM-5.1 (Non-reasoning) CritPt0.0%
Artificial AnalysisGLM-5.1 (Non-reasoning) Terminal-Bench Hard35.6%
Artificial AnalysisGLM-5.1 (Non-reasoning) AA-Omniscience Accuracy25.2%
Artificial AnalysisGLM-5.1 (Non-reasoning) AA-Omniscience Non-Hallucination Rate36.4%
Design ArenaGLM 5.1 Models Arena 3D Elo1275
Design ArenaGLM 5.1 Models Arena Asciiart Elo1146
Design ArenaGLM 5.1 Models Arena Code Categories Elo1282
Design ArenaGLM 5.1 Models Arena Data Visualization Elo1276
Design ArenaGLM 5.1 Models Arena Game Development Elo1285
Design ArenaGLM 5.1 Models Arena SVG Elo1243
Design ArenaGLM 5.1 Models Arena UI Component Elo1281
Design ArenaGLM 5.1 Models Arena Website Elo1279
Design ArenaGLM 5.1 Agents Arena Agenticgamedev Elo1165
Design ArenaGLM 5.1 Agents Arena Agentichtmlslides Elo1205
Design ArenaGLM 5.1 Agents Arena Agenticslides Elo1245
Design ArenaGLM 5.1 Agents Arena Agenticslides(Html) Elo1204
Design ArenaGLM 5.1 Agents Arena Agenticslides(Python-Pptx) Elo1240
Design ArenaGLM 5.1 Agents Arena Androidnative Elo1192
Design ArenaGLM 5.1 Agents Arena Full Stack Elo1176
Design ArenaGLM 5.1 Agents Arena Godotgamedev Elo1104
Design ArenaGLM 5.1 Agents Arena Htmlslides Elo1173
Design ArenaGLM 5.1 Agents Arena Mobile Apps Elo1191
Design ArenaGLM 5.1 Agents Arena Pptxslides Elo1241
Design ArenaGLM 5.1 Agents Arena Python-Pptxslides Elo1258
Design ArenaGLM 5.1 Agents Arena Python-Pptxslides Elo1188
Design ArenaGLM 5.1 Agents Arena Webapps Elo1190
Design ArenaGLM 5.1 Models Arena 3D Elo1336
Design ArenaGLM 5.1 Models Arena Data Visualization Elo1366
Design ArenaGLM 5.1 Models Arena UI Component Elo1292
Design ArenaGLM 5.1 Models Arena Website Elo1290

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 more models

AI Model RankingsRanking

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.966/M input tokens and $3.036/M output tokens, with separate rates for Cache Read at $0.1794/M tokens.

GLM 5.1 has a 204,800 token context window. It supports up to 128,000 completion tokens.

Yes. GLM 5.1 accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.

GLM 5.1 is served by 14 providers on OpenRouter: StreamLake, Chutes, DeepInfra, SiliconFlow, Phala, AtlasCloud, Alibaba Cloud Int., NovitaAI and 6 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.