跳至內容

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,時長可自動決定或設為 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-TW/developers/models/bytedance/seedance-2.0/mini/image-to-video.md. 所有模型與指南: https://doitong.com/developers/llms.txt