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

# Muse 视频 API

> muse-video / muse-video-60s 异步视频对接说明。

# Muse 视频 API

通过 Omniall AI 调用 **Muse** 异步视频生成。

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

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

## 模型与规格

| 模型 | 分辨率 | 时长 | 每次条数 |
| - | - | - | - |
| `muse-video` | 720P | 5 / 10 / 15 / 20 / 25 / 30 秒 | 1 |
| `muse-video-60s` | 720P | 固定 60 秒 | 1 |

二者为不同模型，请按场景选择。模型 ID 与模型广场一致。

## 场景

| 场景 | 用法 |
| - | - |
| 文生视频 | `prompt` + `seconds`（可选 `size` / `resolution`） |
| 单图 / 多图参考 | `reference_image` 或 `reference_images`（合计最多 7 张） |
| 参考视频 | `reference_videos`（最多 3 个 MP4 URL） |

## 常用字段

| 字段 | 必填 | 说明 |
| - | - | - |
| `model` | 是 | `muse-video` 或 `muse-video-60s` |
| `prompt` | 是 | 视频描述 |
| `seconds` | `muse-video` 必填 | 只能是 5/10/15/20/25/30；`muse-video-60s` 传 60 |
| `resolution` | 否 | 仅 `720P`，默认 720P |
| `size` | 否 | 仅 `16:9` / `9:16`，默认 16:9 |
| `count` | 否 | 只能为 1 |
| `reference_image` | 否 | 单张参考图 URL |
| `reference_images` | 否 | 多张参考图 URL 数组 |
| `reference_videos` | 否 | 参考视频 URL 数组 |

不支持参考音频。生成通常需数分钟，建议每 10–15 秒轮询查询接口。

## 示例

```bash theme={null}
# 文生视频（muse-video · 5 秒）
curl -X POST "https://api.omniall.ai/v1/video/generations" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "muse-video",
    "prompt": "海边日落延时摄影，金色阳光洒在波浪上",
    "seconds": 5,
    "resolution": "720P",
    "size": "16:9",
    "count": 1
  }'
```

```bash theme={null}
# 参考图 + 参考视频（muse-video · 10 秒竖屏）
curl -X POST "https://api.omniall.ai/v1/video/generations" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "muse-video",
    "prompt": "人物在城市街头漫步，镜头缓慢跟随，动作参考视频",
    "seconds": 10,
    "size": "9:16",
    "reference_images": [
      "https://example.com/1.jpg",
      "https://example.com/2.jpg"
    ],
    "reference_videos": [
      "https://example.com/motion.mp4"
    ]
  }'
```

```bash theme={null}
# 固定 60 秒（muse-video-60s）
curl -X POST "https://api.omniall.ai/v1/video/generations" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "muse-video-60s",
    "prompt": "人物在城市街头漫步，镜头缓慢跟随",
    "seconds": 60,
    "resolution": "720P",
    "size": "16:9",
    "reference_images": [
      "https://example.com/1.jpg",
      "https://example.com/2.jpg"
    ]
  }'
```

创建成功后用返回的 `id` / `task_id` 查询：

```bash theme={null}
curl "https://api.omniall.ai/v1/video/generations/$TASK_ID" \
  -H "Authorization: Bearer $API_KEY"
```

完整字段与 Playground 见 **API Reference → 视频 → Muse**。


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