跳转到内容

Seedance 2.0 Mini Image to Video

集成

模型 id bytedance/seedance-2.0/mini/image-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/bytedance/seedance-2.0/mini/image-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

此请求: $2.321 2,321 API 积分 在此页面运行

获取 API 密钥
ByteDance 图生视频 原生音频唇形同步4–15 秒最高 720p #stylized#transform#lipsync

较小的 Seedance 2.0 图像转视频,支持 480p 或 720p、可选结束帧及 4 到 15 秒片段

ByteDance · 视频

你的第一个结果将在此显示

在下方构建请求,并使用你的 API 密钥运行。输出会复制到我们的存储中,可永久保存或免费保存 7 天。

构建请求

控件根据模型架构生成。更改控件时,代码和价格会同步更新。

•必填

以文本提示词形式提供的视频动作和运动指令。

•必填 image_url
拖放文件,或

要进行动画处理的初始图像 URL。接受 JPEG、PNG、WebP;大小上限为 30 MB。

duration auto

视频时长选择:`auto` 根据提示词交由模型决定,明确指定的时长必须为 4–15 秒。

resolution 默认 720p

输出分辨率:480p 优先生成速度,720p 提供均衡选择。

aspect_ratio 默认 auto

输出宽高比:16:9 为横向,9:16 为纵向,1:1 为正方形,21:9 为电影级超宽屏。选择 `auto` 可根据输入图像推导宽高比。

高级 end_image · codec · end_user_id
end_image_url
拖放文件,或

指向 JPEG、PNG 或 WebP 图像的 URL,图像大小不超过 30 MB,用于定义视频的最后一帧。提供此图像后,它将成为生成视频的过渡目标,过渡从起始图像开始。

codec 默认 auto

视频编解码器选择:`auto` 保持默认编解码器行为,`H264` 选择 H.264,`H265` 选择 H.265。

分配给最终用户的唯一标识符。

POST /run/bytedance/seedance-2.0/mini/image-to-video?wait=20 报价 → $2.321
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/bytedance/seedance-2.0/mini/image-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

运行此请求

你的密钥会保留在此浏览器中:仅发送到 Doitong API;只有勾选“记住”后才会保存到 localStorage。 获取 API 密钥

关于 Seedance 2.0 Mini Image to Video

根据动作提示词为起始图像(`image_url`)生成动画,并可向 `end_image_url` 过渡。分辨率为 480p 或 720p,时长为 auto 或 4 到 15 秒。宽高比可从图像推断,或设置为 21:9 至 9:16。默认生成音频,包括唇形同步语音;编码器可设为 H264 或 H265。

参数

发送规范名称或原生名称之一,不要同时发送两者。 规范名称

名称类型 默认值允许值 描述
prompt必填
类型string
以文本提示词形式提供的视频动作和运动指令。
image_url必填 image
类型url · image
要进行动画处理的初始图像 URL。接受 JPEG、PNG、WebP;大小上限为 30 MB。
end_image_url可选 end_image
类型url · image
指向 JPEG、PNG 或 WebP 图像的 URL,图像大小不超过 30 MB,用于定义视频的最后一帧。提供此图像后,它将成为生成视频的过渡目标,过渡从起始图像开始。
resolution可选
类型enum
默认值720p
480p720p
输出分辨率:480p 优先生成速度,720p 提供均衡选择。
duration可选
类型enum
默认值auto
auto456789101112131415
视频时长选择:`auto` 根据提示词交由模型决定,明确指定的时长必须为 4–15 秒。
aspect_ratio可选
类型enum
默认值auto
auto21:916:94:31:13:49:16
输出宽高比:16:9 为横向,9:16 为纵向,1:1 为正方形,21:9 为电影级超宽屏。选择 `auto` 可根据输入图像推导宽高比。
generate_audio可选
类型boolean
默认值true
启用此选项可为视频生成同步音频。生成的音频包括与嘴部动作匹配的语音、环境氛围声和音效。
codec可选
类型enum
默认值auto
autoH264H265
视频编解码器选择:`auto` 保持默认编解码器行为,`H264` 选择 H.264,`H265` 选择 H.265。
end_user_id可选
类型string | null
分配给最终用户的唯一标识符。
必填 规范名称,也可接受

文件参数接受公开的 https:// URL、最大 10 MB 的 data: URI,或上传文件的 file_url。 文件

输出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bytedance/seedance-2.0/mini/image-to-video",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 2321,
    "usd": "2.321",
    "charged": 2321,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "seed": 42
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
你的文件,由你选择每个 outputs[].url 都是存储中的副本:可永久保存(按 GB-月付费),也可免费保存 7 天,由账户设置或 ?storage= 决定。
每个模型的结构相同图像、视频和音频均包含 type、url、content_type、width、height 和 duration。output 是模型自身的结果对象。
输出字段
video
object {url, content_type, file_name, file_size}生成得到的视频文件。
seed
integer生成期间应用的种子值。

更多模型:图生视频

对于 AI 代理:此页面的 Markdown 版本位于 https://doitong.com/zh/developers/models/bytedance/seedance-2.0/mini/image-to-video.md. 所有模型和指南: https://doitong.com/developers/llms.txt