> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mixroute.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GLM-5.3

> GLM-5.3: 1M-context flagship reasoning model for coding and long-horizon agent tasks.

GLM-5.3 is Z.ai's flagship reasoning model for complex coding, long-horizon agents, and cybersecurity analysis.

Call `glm-5.3` through MixRoute using the endpoint below.

## Key capabilities

* 1M context window - Handles large repositories and long-running tasks
* Always-on thinking - Supports low, high, and max reasoning effort
* Agentic coding - Optimized for complex software engineering and tool workflows
* OpenAI-compatible - Uses Chat Completions through MixRoute

## Quick example

<Tabs>
  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.mixroute.ai/v1/chat/completions" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "model": "glm-5.3",
      "messages": [
        {"role": "user", "content": "Review this deployment plan and identify the highest-risk rollback gap."}
      ],
      "max_tokens": 256,
      "reasoning_effort": "high"
    }'
    ```
  </Tab>

  <Tab title="Python">
    ```python theme={null}
    from openai import OpenAI

    client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.mixroute.ai/v1")

    response = client.chat.completions.create(
        model="glm-5.3",
        messages=[{"role": "user", "content": "Review this deployment plan and identify the highest-risk rollback gap."}],
        max_tokens=256,
        reasoning_effort="high",
    )

    print(response.choices[0].message.content)
    ```
  </Tab>
</Tabs>

## Parameters

| Parameter          | Type    | Required | Description                                                                  |
| ------------------ | ------- | -------- | ---------------------------------------------------------------------------- |
| `model`            | string  | Yes      | Model ID. Must be `glm-5.3`.                                                 |
| `messages`         | array   | Yes      | Conversation messages with role and content.                                 |
| `max_tokens`       | integer | No       | Maximum generated tokens.                                                    |
| `stream`           | boolean | No       | Enable SSE streaming.                                                        |
| `reasoning_effort` | string  | No       | Reasoning effort when supported. Supported values: `low`, `high`, and `max`. |
| `tools`            | array   | No       | OpenAI-compatible tool definitions.                                          |

## Vendor reference

* [Z.ai GLM-5.3 announcement](https://z.ai/blog/glm-5.3)
