> ## 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

# Qwen API - 通过 AIsa 访问 Alibaba Qwen 模型

> Alibaba Qwen 模型 ID 和端点指南，包括 qwen3.8-max、qwen3.7-max、qwen-flash、Qwen VL、Qwen Coder 和翻译模型。

AIsa 是 Alibaba Cloud Qwen Key Account Partner。你可以使用一个 AIsa API Key，通过与其他 LLM 相同的网关访问 Qwen 文本、编程、视觉、音频、视频理解和翻译模型。

Qwen 文本、编程、视觉和翻译模型使用 `POST /v1/chat/completions`。阿里巴巴的 Wan 视频和图像生成模型有单独的页面：[Wan](https://aisa.one/docs/zh/models/wan.md)。

## 支持的 Qwen 模型

| 模型 ID | 类型 | 端点 | 适合 |
| - | - | - | - |
| `qwen3-coder-flash` | 文本 | `/v1/chat/completions`、`/v1/responses` | 快速代码吞吐 |
| `qwen3-vl-plus` | 文本 | `/v1/chat/completions`、`/v1/responses` | 更强的文档和空间视觉 |
| `qwen3.6-plus` | 文本 | `/v1/chat/completions`、`/v1/responses` | 长上下文中文/双语任务 |
| `qwen3.6-plus-2026-04-02` | 文本 | `/v1/chat/completions`、`/v1/responses` | 固定版本的 Qwen 3.6 Plus 路由 |
| `qwen3.7-flash` | 文本 | `/v1/chat/completions`、`/v1/responses` | Qwen 3.7 快速路由 |
| `qwen3.7-flash-2026-07-15` | 文本 | `/v1/chat/completions`、`/v1/responses` | `qwen3.7-flash` 的固定快照版本 |
| `qwen3.7-max` | 文本 | `/v1/chat/completions`、`/v1/responses` | 前沿 Qwen 推理和智能体编程 |
| `qwen3.7-max-2026-06-08` | 文本 | `/v1/chat/completions`、`/v1/responses` | Qwen 3.7 Max 固定版本 |
| `qwen3.7-plus` | 文本 | `/v1/chat/completions`、`/v1/responses` | 成本更低的 Qwen 3.7 路由 |
| `qwen3.8-max` | 文本 | `/v1/chat/completions`、`/v1/responses` | 最新一代 Qwen Max |
| `qwen-flash` | 文本 | `/v1/chat/completions`、`/v1/responses` | 大批量多模态任务 |
| `qwen-mt-flash` | 文本 | `/v1/chat/completions`、`/v1/responses` | 快速翻译 |
| `qwen-mt-lite` | 文本 | `/v1/chat/completions`、`/v1/responses` | 轻量翻译 |
| `qwen-plus-2025-12-01` | 文本 | `/v1/chat/completions` | 通用多模态应用 |

这些模型的当前价格见 [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="qwen3.7-max",
    messages=[{"role": "user", "content": "Plan a refactor for this Python service."}]
)
print(response.choices[0].message.content)
```

## 常用选择

| 需求 | 使用 |
| - | - |
| 最便宜的大批量文本/多模态 | `qwen-flash` |
| 专用翻译 | `qwen-mt-flash` 或 `qwen-mt-lite` |
| 快速编程 | `qwen3-coder-flash` |
| 最强 Qwen 编程能力 | `qwen3.7-max` |
| 长上下文推理 | `qwen3.7-max` 或 `qwen3.6-plus` |
| 视觉/文档/视频任务 | `qwen3-vl-plus` |
| 图像或视频生成 | [Wan 模型](https://aisa.one/docs/zh/models/wan.md) |

## 数据隐私

通过 AIsa 发出的 Qwen 请求会在 AIsa 与 Alibaba Cloud 的 Key Account 企业协议下处理。如需合规文档，请[联系我们](mailto:developer@aisa.one)。

## 下一步

* [Wan 模型](https://aisa.one/docs/zh/models/wan.md)
* [模型目录](https://aisa.one/docs/zh/guides/models.md)
* [AI 模型价格](https://aisa.one/docs/zh/guides/pricing.md#模型)


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