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

# Wan 视频 API

> 通义万相 / Wan 异步视频（wan2.1 480P/720P/1080P）。

# Wan 视频 API

| 说明 | 方法 | 路径 |
| - | - | - |
| 创建 | `POST` | `/v1/video/generations` |
| 查询 | `GET` | `/v1/video/generations/{task_id}` |

也可使用 `/v1/videos`。**API 主机：** `https://api.omniall.ai` · 鉴权 `Authorization: Bearer sk-...`。

| 模型 | 说明 |
| - | - |
| `wan2.1-480P` | 480P |
| `wan2.1-720P` | 720P |
| `wan2.1-1080P` | 1080P |

最多 10 张参考图、5 段音频、5 段视频；时长最长 30 秒。

| 场景 | 关键字段 |
| - | - |
| 文生视频 | `prompt` + `duration` + `ratio` + 可选 `generate_audio` |
| 多图参考 | `images` / `reference_images` |
| 多模态 | `reference_images` + `reference_videos` + `reference_audios` |
| 首尾帧 | `first_frame` / `last_frame` |

不要同时使用 `images` 与首尾帧。

```bash theme={null}
curl -X POST "https://api.omniall.ai/v1/video/generations" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan2.1-720P",
    "prompt": "樱花飘落在安静的寺院庭院",
    "duration": 5,
    "ratio": "16:9"
  }'
```

完整说明见 **API Reference → 视频 → Wan 视频**。


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