跳到主要内容
AI
MarkdownLLMs.txt

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-480pMini 档。
seedance2.0-mini-720pMini 档。

Endpoint

POST /v1/video/generations
GET /v1/videos/{task_id}

部分兼容客户端可能看到 /v1/videos/generations,但选定来源页面的创建任务接口为 /v1/video/generations

Authentication

Authorization: Bearer sk-***
Content-Type: application/json

请求参数

参数类型必填说明
modelstringSeedance 2.0 模型 ID。
promptstring提示词。只有 prompt 时为文生视频。
durationinteger/string条件必填来源范围为 515 中的任意值。
aspect_ratiostring9:161:116:9
imagestring条件必填图生视频的单张源图。
last_imagestring条件必填尾帧图,与 image 配合使用。
imagesstring[]条件必填全能参考模式的参考图 URL,最多 9 张。
videosstring[]条件必填参考视频 URL,最多 3 个;每个 215 秒,总时长不超过 15 秒。
audiosstring[]参考音频 URL。
extra_body.generate_audioboolean是否生成带音频的视频。
extra_body.seedinteger随机种子。
extra_body.watermarkboolean/string是否加水印。
extra_body.camera_fixedboolean/string是否固定镜头。
extra_body.return_last_frameboolean/string是否返回最后一帧。
extra_body.operationstring仅兼容层reference_to_videoedit_videoextend_videofirst_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 不在 515 范围内。
  • 新输入格式和兼容层 operation 混用导致路由不明确。

相关页面