curl --request POST \
--url https://api.omnimux.ai/v1/video/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance-2-0-mini",
"prompt": "Slow pan across a handcrafted ceramic mug on a sunlit wooden table",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": false
}'
curl --request POST \
--url https://api.omnimux.ai/v1/video/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance-2-0-mini",
"prompt": "Smooth camera orbit between the opening and closing studio frames",
"duration": 5,
"resolution": "720p",
"image_with_roles": [
{ "url": "https://example.com/first.jpg", "role": "first" },
{ "url": "https://example.com/last.jpg", "role": "last" }
]
}'
{
"task_id": "task_01HXYZABCDEF",
"status": "queued"
}
{
"error": { "message": "Invalid request", "type": "invalid_request_error", "code": "bad_request" }
}
{
"error": { "message": "Invalid token", "type": "authentication_error", "code": "unauthorized" }
}
{
"error": {
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota",
"code": "insufficient_quota"
}
}
{
"error": { "message": "Model not allowed", "type": "permission_error", "code": "forbidden" }
}
{
"error": { "message": "Rate limit exceeded", "type": "rate_limit_error", "code": "rate_limit_exceeded" }
}
{
"error": { "message": "Internal server error", "type": "server_error", "code": "internal_error" }
}
curl --request POST \
--url https://api.omnimux.ai/v1/video/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance-2-0-mini",
"prompt": "Slow pan across a handcrafted ceramic mug on a sunlit wooden table",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": false
}'
curl --request POST \
--url https://api.omnimux.ai/v1/video/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance-2-0-mini",
"prompt": "Smooth camera orbit between the opening and closing studio frames",
"duration": 5,
"resolution": "720p",
"image_with_roles": [
{ "url": "https://example.com/first.jpg", "role": "first" },
{ "url": "https://example.com/last.jpg", "role": "last" }
]
}'
{
"task_id": "task_01HXYZABCDEF",
"status": "queued"
}
{
"error": { "message": "Invalid request", "type": "invalid_request_error", "code": "bad_request" }
}
{
"error": { "message": "Invalid token", "type": "authentication_error", "code": "unauthorized" }
}
{
"error": {
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota",
"code": "insufficient_quota"
}
}
{
"error": { "message": "Model not allowed", "type": "permission_error", "code": "forbidden" }
}
{
"error": { "message": "Rate limit exceeded", "type": "rate_limit_error", "code": "rate_limit_exceeded" }
}
{
"error": { "message": "Internal server error", "type": "server_error", "code": "internal_error" }
}
Seedance
Seedance 2.0 Mini 视频生成
通过 OmniMux 调用 Seedance 2.0 Mini(seedance-2-0-mini)视频生成 API,支持 480p/720p、4–15 秒文生视频、首帧/首尾帧及多模态参考生成。
curl --request POST \
--url https://api.omnimux.ai/v1/video/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance-2-0-mini",
"prompt": "Slow pan across a handcrafted ceramic mug on a sunlit wooden table",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": false
}'
curl --request POST \
--url https://api.omnimux.ai/v1/video/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance-2-0-mini",
"prompt": "Smooth camera orbit between the opening and closing studio frames",
"duration": 5,
"resolution": "720p",
"image_with_roles": [
{ "url": "https://example.com/first.jpg", "role": "first" },
{ "url": "https://example.com/last.jpg", "role": "last" }
]
}'
{
"task_id": "task_01HXYZABCDEF",
"status": "queued"
}
{
"error": { "message": "Invalid request", "type": "invalid_request_error", "code": "bad_request" }
}
{
"error": { "message": "Invalid token", "type": "authentication_error", "code": "unauthorized" }
}
{
"error": {
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota",
"code": "insufficient_quota"
}
}
{
"error": { "message": "Model not allowed", "type": "permission_error", "code": "forbidden" }
}
{
"error": { "message": "Rate limit exceeded", "type": "rate_limit_error", "code": "rate_limit_exceeded" }
}
{
"error": { "message": "Internal server error", "type": "server_error", "code": "internal_error" }
}
POST
/
v1
/
video
/
generations
curl --request POST \
--url https://api.omnimux.ai/v1/video/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance-2-0-mini",
"prompt": "Slow pan across a handcrafted ceramic mug on a sunlit wooden table",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": false
}'
curl --request POST \
--url https://api.omnimux.ai/v1/video/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance-2-0-mini",
"prompt": "Smooth camera orbit between the opening and closing studio frames",
"duration": 5,
"resolution": "720p",
"image_with_roles": [
{ "url": "https://example.com/first.jpg", "role": "first" },
{ "url": "https://example.com/last.jpg", "role": "last" }
]
}'
{
"task_id": "task_01HXYZABCDEF",
"status": "queued"
}
{
"error": { "message": "Invalid request", "type": "invalid_request_error", "code": "bad_request" }
}
{
"error": { "message": "Invalid token", "type": "authentication_error", "code": "unauthorized" }
}
{
"error": {
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota",
"code": "insufficient_quota"
}
}
{
"error": { "message": "Model not allowed", "type": "permission_error", "code": "forbidden" }
}
{
"error": { "message": "Rate limit exceeded", "type": "rate_limit_error", "code": "rate_limit_exceeded" }
}
{
"error": { "message": "Internal server error", "type": "server_error", "code": "internal_error" }
}
- 创建:
POST /v1/video/generations,model设为seedance-2-0-mini - 异步任务:用返回的
task_id查询 查询视频任务 - 支持
480p与720p分辨率、4 至 15 秒时长、可选音频生成、首帧/首尾帧及多模态参考生视频 - 实时在线状态与最新定价请以OmniMux 控制台或
GET /v1/models为准;新一代快速版可参考 Seedance 2.5 Flash 视频生成 - 产物 URL 请及时落盘(上游链接可能有时效)
身份
| 字段 | 值 |
|---|---|
| 系列 | 视频系列 |
| 品牌 | Seedance |
| model | seedance-2-0-mini |
支持模式
模式 (operation) | 输入要求 | 说明 |
|---|---|---|
text_to_video | prompt | 支持 16:9、4:3、1:1、3:4、9:16、21:9、adaptive |
first_frame | prompt + image_with_roles(role: "first") | aspect_ratio 固定为 adaptive |
first_last_frame | prompt + image_with_roles(role: "first" 与 "last") | 支持 16:9、4:3、1:1、3:4、9:16、21:9、adaptive |
video_multi_ref | prompt + image_urls / video_urls / audio_urls | 最多 9 张参考图、3 段视频、3 段音频 |
接口
| 方法 | 路径 |
|---|---|
POST | /v1/video/generations |
GET | /v1/video/generations/{task_id} |
https://api.omnimux.ai
鉴权
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
Authorization | header | string | 是 | Bearer sk-...(API Key) |
请求体
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | 是 | 固定为 seedance-2-0-mini |
prompt | string | 是 | 视频生成描述提示词 |
duration / seconds | integer | 否 | 视频时长(秒),支持 4 至 15 整数(步长 1) |
resolution | string | 否 | 分辨率:480p 或 720p |
aspect_ratio / size | string | 否 | 画面比例:16:9、4:3、1:1、3:4、9:16、21:9 或 adaptive(first_frame 固定为 adaptive) |
generate_audio | boolean | 否 | 是否生成同步音频,默认 false |
image_with_roles | array | 否 | 首帧/首尾帧角色图数组(如 {"url":"...","role":"first"});支持 JPEG/PNG/WebP/BMP/TIFF/GIF/HEIC/HEIF,单图最大 30 MB |
image_urls | array | 否 | 多模态参考图片 URL 列表(最多 9 张) |
video_urls | array | 否 | 多模态参考视频 URL 列表(最多 3 段,MP4/MOV 最大 50 MB) |
audio_urls | array | 否 | 多模态参考音频 URL 列表(最多 3 段,WAV/MP3 最大 15 MB) |
响应
200(创建)
| 字段 | 类型 | 说明 |
|---|---|---|
task_id | string | 任务 id,用于轮询 |
status | string | 如 queued / processing / completed |