介面參考
Seedance 圖/影片生影片
Seedance 的 multipart 相容介面。支援檔案欄位或 URL 欄位傳入圖片、參考影片和參考音訊。
POST
/api/go/b2b/tasks/image_to_video_seedance2請求
| 欄位 | 類型 | 必填 | 說明 |
|---|---|---|---|
prompt | string | 必填 否 | 文字提示詞;沒有圖片或影片參考時必填。 |
prompt_template_id | integer | 必填 否 | |
image | file | 必填 否 | 首幀或參考圖。檔案支援 jpg、jpeg、png、webp。 |
images | file | 必填 否 | |
image_url | string | 必填 否 | 首幀或參考圖。檔案支援 jpg、jpeg、png、webp。 |
image_urls | array | 必填 否 | 首幀或參考圖。檔案支援 jpg、jpeg、png、webp。 |
end_frame_image | file | 必填 否 | |
end_frame_image_url | string | 必填 否 | |
end_frame_role | string | 必填 否 | |
reference_video_urls | array | 必填 否 | 參考影片 URL:Seedance 2.0 Fast / Pro 最多 3 條,Seedance 2.5 最多 10 條。 |
reference_audio_urls | array | 必填 否 | 參考音訊;需要同時提供圖片或影片參考。 |
model | string | 必填 否 | FastX(Seedance 2.0 Fast)、ProX(Seedance 2.0 Pro)或 Seedance2.5(Seedance 2.5)。 |
resolution | string | 必填 否 | |
aspect_ratio | string | 必填 否 | |
role_mode | string | 必填 否 | |
duration | integer | 必填 否 | |
framespersecond | integer | 必填 否 | |
audio | boolean | 必填 否 | |
input_reference | string | 必填 否 | |
count | integer | 必填 否 | |
watermark | boolean | 必填 否 | 是否加水印;省略時預設 false(不加水印)。 |
webhook_url | string | 必填 否 |
響應結構
| 欄位 | 類型 | 必填 | 說明 |
|---|---|---|---|
task_id | string | 必填 是 | 非同步任務 UUID。 |
status | string | 必填 是 | PENDING / RUNNING / COMPLETED / FAILED / CANCELLED |
queue_position | integer | 必填 否 | 佇列位置。 |
generation_params | object | 必填 否 | 歸一化後的影片生成參數。 |