Muse 视频 API
通过 Omniall AI 调用 Muse 异步视频生成。| 说明 | 方法 | 路径 |
|---|---|---|
| 创建 | POST | /v1/video/generations |
| 查询 | GET | /v1/video/generations/{task_id} |
https://api.omniall.ai · 鉴权 Authorization: Bearer sk-...。
模型与规格
| 模型 | 分辨率 | 时长 | 每次条数 |
|---|---|---|---|
muse-video | 720P | 5 / 10 / 15 / 20 / 25 / 30 秒 | 1 |
muse-video-60s | 720P | 固定 60 秒 | 1 |
场景
| 场景 | 用法 |
|---|---|
| 文生视频 | 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 数组 |
示例
# 文生视频(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
}'
# 参考图 + 参考视频(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"
]
}'
# 固定 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 查询:
curl "https://api.omniall.ai/v1/video/generations/$TASK_ID" \
-H "Authorization: Bearer $API_KEY"