模型參數
Seedance 2.0
圖、影片、音訊一起參考,可帶聲音。
POST
/api/go/b2b/tasks/createtask_type: IMAGE_TO_VIDEO_SEEDANCE2
參數說明
| 欄位 | 類型 | 必填 | 說明 |
|---|---|---|---|
prompt | string | 必填 否 | prompt 與有效的 prompt_template_id 至少提供一項。 |
model | string | 必填 否 | FastX = Seedance 2.0 Fast; ProX = Seedance 2.0 Pro; Seedance2.5 = Seedance 2.5 |
watermark | boolean | 必填 否 | 是否加水印;省略時預設 false(不加水印)。 |
duration | number | 必填 否 | 時長,單位秒:Seedance 2.0 Fast / Pro 為 4–15,Seedance 2.5 為 4–30。 |
resolution | string | 必填 否 | 解析度檔位:480p / 720p / 1080p。 |
count | integer | 必填 否 | 生成影片數量,1–10;每支影片分別計費。 |
ratio | string | 必填 否 | 16:9 / 4:3 / 1:1 / 3:4 / 9:16 / 21:9 / adaptive |
image_url | string | 必填 是 | 可訪問的輸入圖片 URL。 |
images | array | 必填 否 | 多圖參考 URL 陣列。JSON 欄位是 images,不是 image_urls。 |
role_mode | string | 必填 否 | frame 為首尾幀,reference 為參考模式。frame 用 1~2 張圖,不混用參考影片或音訊。 |
reference_video_urls | array | 必填 否 | 參考影片 URL:Seedance 2.0 Fast / Pro 最多 3 條,Seedance 2.5 最多 10 條。 |
reference_audio_urls | array | 必填 否 | 參考音訊 URL。Seedance 2.0 Fast / Pro 需同時提供圖片或影片參考;Seedance 2.5 可以只傳音訊。 |
end_frame_image_url | string | 必填 否 | 可選的尾幀圖片 URL。 |
end_frame_role | string | 必填 否 | last_frame / reference_image |
audio | boolean | 必填 否 | ProFast 僅輸出無聲影片;請省略 audio 或設為 false。 |
prompt_template_id | integer | 必填 否 | 已存在的提示詞範本 ID。 |
framespersecond | integer | 必填 否 | 每秒幀數。 12–60. |
使用說明
- 非同步 JSON 任務。提交一次,儲存 task_id,再用 /tasks/get 查詢。
- 參考影片時長也可能計費。
請求示例
params · JSON
{
"duration": 5,
"image_url": "",
"model": "FastX",
"prompt": "cinematic character entrance, smooth camera movement, expressive animation",
"ratio": "adaptive",
"resolution": "480p",
"role_mode": "frame",
"watermark": false
}