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

# MAGI-2视频

> MAGI-2 文生 / 图生 / 多模态参考视频，通过 OpenAI 兼容视频异步接口调用。

# MAGI-2视频

通过 Omniall AI 异步接口调用 **MAGI-2**：

| 说明 | 方法 | 路径 |
| - | - | - |
| 创建视频任务 | `POST` | `/v1/videos` |
| 获取视频任务 | `GET` | `/v1/videos/{task_id}` |
| 下载视频成品 | `GET` | `/v1/videos/{task_id}/content` |

**API 主机：** `https://api.omniall.ai` · 鉴权 `Authorization: Bearer sk-...`。

## 模型

| 模型 ID | 说明 |
| - | - |
| `magi-2` | MAGI-2 视频生成（文生 / 图生 / 多模态参考） |

以[模型广场](https://omniall.ai/pricing)开通情况为准。

## 请求用例（同一创建接口）

| 场景 | 关键字段 |
| - | - |
| 文生视频 | `prompt` + `duration` / `seconds` + `aspect_ratio` + `resolution` |
| 图生视频 | 另加 `reference_images`（最多 10） |
| 多模态参考 | 另加 `reference_images` / `reference_videos` / `reference_audios`（可组合） |

素材字段既可直接传入公开可访问的 URL，也可随创建请求以 `multipart/form-data` 上传文件。

* 时长：`duration` 整数（也支持字段名 `seconds`），范围 **4–30**，默认 **5**
* 清晰度：`resolution` 可选值 **`1080p`**（默认）
* 画幅：`aspect_ratio` 为 `21:9` / `16:9` / `4:3` / `1:1` / `3:4` / `9:16`（默认 `16:9`）
* `reference_videos` 最多 5 段且总时长不超过 **15** 秒；`reference_images` 最多 **10**；`reference_audios` 最多 **5**

创建 / 查询 / 下载接口详情与示例下拉见下方各端点页。


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