跳到主要内容
SEEDANCE 2.0

Seedance 2.0 视频生成 API

seedance2.0 使用统一的异步视频任务接口,支持文本生成视频、成对首尾帧和参考素材生成。

最后更新

可用生成模式

模式规则
文本生成视频references 为空或省略
首尾帧生成视频一个 first_frame 图片和一个 last_frame 图片
参考素材生成视频一个或以上 role=reference 的素材

参考素材上限

素材类型上限
参考图片9
参考视频3
参考音频3

超出上限的请求返回 HTTP 400。参考图和参考视频/音频不能与首尾帧模式混用。

文本生成视频请求bash
curl --request POST "https://ling-light.com/v1/videos" \
  --header "Authorization: Bearer $VIDEO_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: $(uuidgen)" \
  --data '{
    "model": "seedance2.0",
    "prompt": "一只橘猫坐在窗台上看雨,镜头缓慢推近",
    "seconds": 5,
    "resolution": "720p",
    "aspect_ratio": "16:9"
  }'
首尾帧请求json
{
  "model": "seedance2.0",
  "prompt": "人物从 @图片1 自然走到 @图片2 的位置,镜头保持稳定",
  "seconds": 5,
  "resolution": "720p",
  "aspect_ratio": "16:9",
  "references": [
    {
      "type": "image",
      "role": "first_frame",
      "source": "https://cdn.example.com/first-frame.png"
    },
    {
      "type": "image",
      "role": "last_frame",
      "source": "https://cdn.example.com/last-frame.png"
    }
  ]
}
首尾帧完整规则
学习素材顺序、提示词引用和成对限制。
Seedance 2.5
比较更高参考素材上限。