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 4.6

z-ai/glm-4.6

Model weights
Compare

Compared with GLM-4.5, this generation brings several key improvements:

Longer context window: The context window has been expanded from 128K to 200K tokens, enabling the model to handle more complex agentic tasks. Superior coding performance: The model achieves higher scores on code benchmarks and demonstrates better real-world performance in applications such as Claude Code、Cline、Roo Code and Kilo Code, including improvements in generating visually polished front-end pages. Advanced reasoning: GLM-4.6 shows a clear improvement in reasoning performance and supports tool use during inference, leading to stronger overall capability. More capable agents: GLM-4.6 exhibits stronger performance in tool using and search-based agents, and integrates more effectively within agent frameworks. Refined writing: Better aligns with human preferences in style and readability, and performs more naturally in role-playing scenarios.

Modalities

In / Out Price

$0.43 / $1.75per 1M

Context

205K

Released

Sep 30, 2025

Knowledge Cutoff

Mar 2025

Compare

About Z.ai: GLM 4.6

OpenRouter makes Z.ai: GLM 4.6 available through a unified, OpenAI-compatible API using the model ID z-ai/glm-4.6. Requests can be routed across 5 providers, including Venice, DeepInfra, NovitaAI, Z.ai and AtlasCloud, with automatic failover when an endpoint is unavailable.

Z.ai: GLM 4.6 accepts text and returns text. It has a 204,800-token context window and a maximum output of 16,384 tokens.

On OpenRouter, Z.ai: GLM 4.6 costs $0.43/M input tokens and $1.75/M output tokens, with separate rates for Cache Read at $0.08/M tokens. Effective pricing can be lower when prompt caching applies. It was released on September 30, 2025; its knowledge cutoff is March 31, 2025.

More models from Z.ai

  • GLM 5.3
  • GLM 5.2
  • GLM 5.1

Frequently asked questions

Compared with GLM-4.5, this generation brings several key improvements: Longer context window: The context window has been expanded from 128K to 200K tokens, enabling the model to handle more complex agentic tasks.

GLM 4.6 costs $0.43/M input tokens and $1.75/M output tokens, with separate rates for Cache Read at $0.08/M tokens.

GLM 4.6 has a 204,800 token context window. It supports up to 16,384 completion tokens.

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

GLM 4.6 is served by 5 providers on OpenRouter: Venice, DeepInfra, NovitaAI, Z.ai and AtlasCloud. 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 4.6 was released on September 30, 2025. Its knowledge cutoff is March 31, 2025.