Seedance 2.0 视频生成
Seedance 2.0 支持文生视频、图生视频、首尾帧、多参考图,以及兼容层的视频编辑或续写模式。新接入应使用新创建任务接口,不再使用来源中的旧版废弃接口。
支持模型
| 模型 | 说明 |
|---|---|
seedance2.0-480p | 标准档。 |
seedance2.0-720p | 标准档。 |
seedance2.0-1080p | 标准档。 |
seedance2.0-4k | 账号启用时可用的 4K 档。 |
seedance2.0-fast-480p | 快速档。 |
seedance2.0-fast-720p | 快速档。 |
seedance2.0-mini-480p | Mini 档。 |
seedance2.0-mini-720p | Mini 档。 |
Endpoint
POST /v1/video/generations
GET /v1/videos/{task_id}
部分兼容客户端可能看到 /v1/videos/generations,但选定来源页面的创建任务接口为 /v1/video/generations。
Authentication
Authorization: Bearer sk-***
Content-Type: application/json
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | 是 | Seedance 2.0 模型 ID。 |
prompt | string | 是 | 提示词。只有 prompt 时为文生视频。 |
duration | integer/string | 条件必填 | 来源范围为 5 到 15 中的任意值。 |
aspect_ratio | string | 否 | 9:16、1:1 或 16:9。 |
image | string | 条件必填 | 图生视频的单张源图。 |
last_image | string | 条件必填 | 尾帧图,与 image 配合使用。 |
images | string[] | 条件必填 | 全能参考模式的参考图 URL,最多 9 张。 |
videos | string[] | 条件必填 | 参考视频 URL,最多 3 个;每个 2 到 15 秒,总时长不超过 15 秒。 |
audios | string[] | 否 | 参考音频 URL。 |
extra_body.generate_audio | boolean | 否 | 是否生成带音频的视频。 |
extra_body.seed | integer | 否 | 随机种子。 |
extra_body.watermark | boolean/string | 否 | 是否加水印。 |
extra_body.camera_fixed | boolean/string | 否 | 是否固定镜头。 |
extra_body.return_last_frame | boolean/string | 否 | 是否返回最后一帧。 |
extra_body.operation | string | 仅兼容层 | reference_to_video、edit_video、extend_video 或 first_last_frame;content-array 风格下会被忽略。 |
请求示例
curl -X POST "{BASE_URL}/v1/video/generations" \
-H "Authorization: Bearer sk-***" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance2.0-720p",
"prompt": "A clean commercial product video with slow camera movement, soft reflections, and realistic lighting.",
"duration": 8,
"aspect_ratio": "16:9",
"extra_body": {
"generate_audio": false,
"seed": 42,
"watermark": false
}
}'
多参考图示例
curl -X POST "{BASE_URL}/v1/video/generations" \
-H "Authorization: Bearer sk-***" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance2.0-fast-720p",
"prompt": "Create a fast fashion lookbook clip while preserving the product identity.",
"images": [
"https://example.com/model.png",
"https://example.com/outfit.png"
],
"duration": 6,
"aspect_ratio": "9:16",
"extra_body": {
"generate_audio": true,
"camera_fixed": false
}
}'
查询任务状态
curl "{BASE_URL}/v1/videos/task_xxx" \
-H "Authorization: Bearer sk-***"
{
"id": "task_xxx",
"task_id": "task_xxx",
"object": "video.generation.job",
"model": "seedance2.0-720p",
"status": "completed",
"progress": 100,
"video_url": "https://example.com/output.mp4"
}
计费说明
Seedance 计费与模型档位、输出分辨率、时长、是否使用参考媒体和是否生成音频有关。最终费用以平台结算记录为准。
常见错误
- 新接入仍使用旧版废弃创建任务接口。
- 参考图超过
9张。 - 参考视频超过
3个,或总时长超过15秒。 duration不在5到15范围内。- 新输入格式和兼容层
operation混用导致路由不明确。