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

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

> Alibaba Qwen 和 Wan 模型 ID、上下文窗口、能力、endpoint 指南，包括 qwen3.8-max、qwen3.7-max、qwen-flash、Qwen VL、Qwen Coder、Wan 图像模型和翻译模型。

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

Qwen 文本、编程、视觉和翻译模型使用 `POST /v1/chat/completions`（多数也接受 Anthropic 兼容的 `POST /v1/messages`）。Wan 图像模型使用 `POST /v1/images/generations` 和 `POST /v1/images/edits`，按请求计费；Wan 视频模型通过 `POST /v1/video/generations` 异步调用，按输出秒数计费。

## 支持的 Alibaba 模型

| 模型 ID | 上下文 | 能力 | 适合 |
| - | -: | - | - |
| `qwen-flash` | 1,000,000 | Audio, Coding, Text, Video, Vision | 大批量多模态任务 |
| `qwen-mt-flash` | 1,000,000 | Text | 快速翻译 |
| `qwen-mt-lite` | 1,000,000 | Text | 轻量翻译 |
| `qwen-plus-2025-12-01` | 1,000,000 | Audio, Coding, Text, Video, Vision | 通用多模态应用 |
| `qwen3-coder-480b-a35b-instruct` | 262,144 | Coding, Text | 最强 Qwen 编程能力 |
| `qwen3-coder-flash` | 1,000,000 | Coding, Text | 快速代码吞吐 |
| `qwen3-coder-plus` | 1,000,000 | Coding, Text | 编程 Agent 和代码审查 |
| `qwen3-max` | 262,144 | Audio, Coding, Text, Video, Vision | 强通用 Qwen 路由 |
| `qwen3-vl-flash` | 131,072 | Coding, Text, Video, Vision | 低成本视觉和视频理解 |
| `qwen3-vl-flash-2025-10-15` | 131,072 | Coding, Text, Video, Vision | 固定版本的 Qwen VL Flash |
| `qwen3-vl-plus` | 131,072 | Coding, Text, Video, Vision | 更强的文档和空间视觉 |
| `qwen3.6-plus` | 1,000,000 | Coding, Text, Video, Vision | 长上下文中文/双语任务 |
| `qwen3.6-plus-2026-04-02` | 262,144 | Coding, Text, Vision | 固定版本的 Qwen 3.6 Plus 路由 |
| `qwen3.7-max` | 1,000,000 | Coding, Text | 前沿 Qwen 推理和 Agent 编程 |
| `qwen3.7-max-2026-06-08` | — | Text | Qwen 3.7 Max 固定版本 |
| `qwen3.7-plus` | — | Text | 成本更低的 Qwen 3.7 路由 |
| `qwen3.7-flash` | — | Text | Qwen 3.7 快速路由 |
| `qwen3.7-flash-2026-07-15` | — | Text | `qwen3.7-flash` 的固定快照版本 |
| `qwen3.8-max` | — | Text | 最新一代 Qwen Max |
| `wan2.7-image` | N/A | Image, Text, Vision | 图像生成和编辑 |
| `wan2.7-image-pro` | N/A | Image, Text, Video, Vision | 更高质量图像和图生视频 |
| `wan2.7-t2v` | — | Video | 文生视频 |
| `wan2.7-i2v` | — | Video | 图生视频 |
| `wan2.7-r2v` | — | Video | 参考图生视频 |

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

视频模型是异步任务制：先提交到 `POST /v1/video/generations`，再轮询 `/v1/video/generations/{task_id}`。上下文列显示 `—` 表示当前网关元数据没有公布该模型的上下文窗口。

## 快速开始

```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-plus` |
| 快速编程 | `qwen3-coder-flash` |
| 最强 Qwen 编程能力 | `qwen3-coder-480b-a35b-instruct` |
| 长上下文推理 | `qwen3.7-max` 或 `qwen3.6-plus` |
| 视觉/文档/视频任务 | `qwen3-vl-plus` 或 `qwen3-vl-flash` |
| 图像生成/编辑 | `wan2.7-image-pro` 或 `wan2.7-image` |
| 视频生成 | `wan2.7-t2v`、`wan2.7-i2v` 或 `wan2.7-r2v` |

## 数据隐私

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

## 下一步

* [所有中国 AI 模型](/docs/zh/guides/chinese-llms)
* [所有支持的 AIsa 模型](/docs/zh/guides/models)
* [AI 模型价格](/docs/zh/guides/pricing/ai-model-pricing-llm-inference)


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