跳到主要内容

Seedance 2.0

Seedance 2.0 支持文生视频、图生视频、首尾帧、多模态参考、视频编辑和视频延长。新接入请从 Seedance 2.0 系列调用指南 开始;需要准备可复用图片、视频或音频时,使用 Seedance 2.0 素材库

支持模型

模型支持分辨率适用场景
seedance2.0480p720p1080p4k综合质量优先,支持完整能力。
seedance2.0-fast480p720p生成速度优先。
seedance2.0-mini480p720p轻量、速度优先。

Endpoint

POST /v1/videos
GET /v1/videos/{task_id}
GET /v1/videos/{task_id}/content

旧客户端仍可继续使用 /v1/videos/generations/v1/video/generations 创建接口。

Authentication

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

请求参数

参数类型必填说明
modelstringseedance2.0seedance2.0-fastseedance2.0-mini
resolutionstring所选模型支持的分辨率。
promptstring条件必填视频提示词;使用 content[] 时改为 type=text 项。
durationinteger/string输出时长,支持 415 秒。
aspect_ratiostring输出宽高比;兼容别名为 ratio
contentobject[]带明确角色的文本、图片、视频和音频多模态输入。
operationstring条件必填reference_to_videoedit_videoextend_video
generate_audioboolean是否生成带音频的视频。
return_last_frameboolean是否返回生成视频的尾帧。

请求示例

curl -X POST "https://api.uniall.ai/v1/videos" \
-H "Authorization: Bearer sk-***" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance2.0",
"prompt": "A clean commercial product video with slow camera movement, soft reflections, and realistic lighting.",
"resolution": "720p",
"duration": 8,
"aspect_ratio": "16:9",
"generate_audio": false,
"seed": 42,
"watermark": false
}'

多参考图示例

curl -X POST "https://api.uniall.ai/v1/videos" \
-H "Authorization: Bearer sk-***" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance2.0-fast",
"resolution": "720p",
"duration": 6,
"aspect_ratio": "9:16",
"operation": "reference_to_video",
"content": [
{
"type": "text",
"text": "制作一段快速时尚 Lookbook 视频,并保持产品外观一致。"
},
{
"type": "image_url",
"image_url": {"url": "https://example.com/model.png"},
"role": "reference_image"
},
{
"type": "image_url",
"image_url": {"url": "https://example.com/outfit.png"},
"role": "reference_image"
}
],
"generate_audio": true
}'

任务状态与结果

创建成功后保存 idtask_id,随后调用 GET /v1/videos/{task_id},直到任务进入 completedfailed。统一的轮询间隔、状态字段、错误结构、结果地址和鉴权下载方式见视频生成概览

常见错误

  • 新接入仍使用旧创建任务接口。
  • 参考图超过 9 张。
  • 参考视频超过 3 个,或总时长超过 15 秒。
  • duration 不在 415 范围内。
  • 新输入格式和兼容层 operation 混用导致路由不明确。

相关页面