Back to Models

Z.AI: GLM 4.5

z-ai/glm-4.5

Description

GLM-4.5 is our latest flagship foundation model, purpose-built for agent-based applications. It leverages a Mixture-of-Experts (MoE) architecture and supports a context length of up to 128k tokens. GLM-4.5 delivers significantly enhanced capabilities in reasoning, code generation, and agent alignment. It supports a hybrid inference mode with two options, a "thinking mode" designed for complex reasoning and tool use, and a "non-thinking mode" optimized for instant responses. Users can control the reasoning behaviour with the `reasoning` `enabled` boolean. [Learn more in our docs](https://openrouter.ai/docs/use-cases/reasoning-tokens#enable-reasoning-with-default-config)

API Usage Examples

OpenAI Compatible Endpoint

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

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.5",
    "messages": [
      {
        "role": "user",
        "content": "Explain the capabilities of the Z.AI: GLM 4.5 model"
      }
    ],
    "temperature": 0.7,
    "max_tokens": 1024
  }'

Supported Modalities

  • Text

API Pricing

  • Input: 0.2$ / 1M tokens
  • Output: 0.8$ / 1M tokens

Token Limits

  • Max Output: 131,072 tokens
  • Max Context: 131,072 tokens

Subscription Tiers

  • free
  • pro
  • ultimate