Back to Models

Z.AI: GLM 4.6

z-ai/glm-4.6

Description

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.

API Usage Examples

OpenAI Compatible Endpoint

Use this endpoint with any OpenAI-compatible library. Model: Z.AI: GLM 4.6 (z-ai/glm-4.6)

curl https://api.ridvay.com/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -d '{
    "model": "z-ai/glm-4.6",
    "messages": [
      {
        "role": "user",
        "content": "Explain the capabilities of the Z.AI: GLM 4.6 model"
      }
    ],
    "temperature": 0.7,
    "max_tokens": 1024
  }'

Supported Modalities

  • Text

API Pricing

  • Input: 0.4$ / 1M tokens
  • Output: 1.75$ / 1M tokens

Token Limits

  • Max Output: 202,752 tokens
  • Max Context: 202,752 tokens

Subscription Tiers

  • free
  • pro
  • ultimate