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

# GLM-5.3

> GLM-5.3：面向程式設計與長程 Agent 任務的 1M 上下文旗艦推理模型。

<link rel="alternate" hrefLang="en" href="https://mixroute.ai/docs/model-api/zhipu/glm-5.3" />

<link rel="alternate" hrefLang="zh-Hans" href="https://mixroute.ai/docs/zh-hans/model-api/zhipu/glm-5.3" />

<link rel="alternate" hrefLang="zh-Hant" href="https://mixroute.ai/docs/zh-hant/model-api/zhipu/glm-5.3" />

<link rel="alternate" hrefLang="ja" href="https://mixroute.ai/docs/ja/model-api/zhipu/glm-5.3" />

<link rel="alternate" hrefLang="x-default" href="https://mixroute.ai/docs/model-api/zhipu/glm-5.3" />

GLM-5.3 是智譜 Z.ai 面向複雜程式設計、長程 Agent 與安全分析的旗艦推理模型。

透過以下介面在 MixRoute 呼叫 `glm-5.3`。

## 核心能力

* 1M 上下文：適合大型程式碼庫與長時間任務
* 始終啟用思考：支援 low、high 與 max 推理強度
* Agent 程式設計：針對複雜軟體工程與工具工作流程最佳化
* OpenAI 相容：透過 MixRoute Chat Completions 呼叫

## 快速範例

<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": "審查這份部署方案，找出風險最高的回復缺口。"}
      ],
      "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": "審查這份部署方案，找出風險最高的回復缺口。"}],
        max_tokens=256,
        reasoning_effort="high",
    )

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

## 參數

| 參數 | 類型 | 必填 | 說明 |
| - | - | - | - |
| `model` | string | 是 | 固定為 `glm-5.3`。 |
| `messages` | array | 是 | 包含 role 與 content 的對話訊息。 |
| `max_tokens` | integer | 否 | 最大生成 Token 數。 |
| `stream` | boolean | 否 | 啟用 SSE 串流輸出。 |
| `reasoning_effort` | string | 否 | 推理強度，支援 `low`、`high` 與 `max`。 |
| `tools` | array | 否 | OpenAI 相容工具定義。 |

## 廠商資料

* [Z.ai GLM-5.3 發布說明](https://z.ai/blog/glm-5.3)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.