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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# GLM API - 通过 AIsa 访问智谱 AI glm-5 至 glm-5.3

> 智谱 GLM 模型访问指南，包括精确小写模型 ID glm-5、glm-5.1、glm-5.2、glm-5.3、glm-5.3-flash、glm-5v-turbo，以及各模型可用的端点。

AIsa 为智谱 AI 的 GLM 家族提供 OpenAI 兼容访问。当前 AIsa 目录暴露的精确模型 ID 是 `glm-5`、`glm-5.1`、`glm-5.2`、`glm-5.3`、`glm-5.3-flash` 和 `glm-5v-turbo`；API 调用中请使用小写。

下表列出每个模型可用的端点。

## 支持的 GLM 模型

| 模型 ID | 类型 | 端点 | 适合 |
| - | - | - | - |
| `glm-5` | 文本 | `/v1/chat/completions`、`/v1/responses` | 中文推理、双语文档、编程 |
| `glm-5.1` | 文本 | `/v1/chat/completions`、`/v1/responses` | 中间档 GLM 5 版本 |
| `glm-5.2` | 文本 | `/v1/chat/completions`、`/v1/responses` | GLM 5.2 版本 |
| `glm-5.3` | 文本 | `/v1/chat/completions`、`/v1/messages`、`/v1/responses` | 最新的 GLM 5 版本 |
| `glm-5.3-flash` | 文本 | `/v1/chat/completions`、`/v1/messages`、`/v1/responses` | 更快的 GLM 5.3 路由 |
| `glm-5v-turbo` | 文本 | `/v1/chat/completions`、`/v1/messages`、`/v1/responses` | GLM 5V turbo 路由 |

这些模型的当前价格见 [aisa.one/models](https://aisa.one/models)。

## 快速开始

```python theme={null}
import os
from openai import OpenAI

client = OpenAI(api_key=os.environ["AISA_API_KEY"], base_url="https://api.aisa.one/v1")

response = client.chat.completions.create(
    model="glm-5",
    messages=[{"role": "user", "content": "Analyze the competitive dynamics of China's cloud computing market."}]
)
print(response.choices[0].message.content)
```

## 适合使用 GLM 路由的场景

* 中文推理和长篇分析
* 中英双语文档处理
* 中文开发语境下的编程帮助
* 需要 Alibaba、ByteDance、MiniMax 和 Moonshot 之外的模型家族

## 数据隐私

通过 AIsa 发出的 GLM 请求受 AIsa 与智谱 AI 的企业协议保护。客户数据不会用于模型训练。如需合规要求，请[联系我们](mailto:developer@aisa.one)。

## 下一步

* [模型目录](https://aisa.one/docs/zh/guides/models.md)
* [MiniMax 模型](https://aisa.one/docs/zh/models/minimax.md)


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