跳轉到主要內容
POST
請將 size 設為適用於您模型的大小表中的 WxH 值。
Seedance 2.0 Mini 必須完全使用 doubao-seedance-2-0-mini。 縮寫的 seedance-mini 值不是有效的模型 ID。

支援的模型 ID

請根據您的輸入模式和解析度選擇模型,然後在 model 欄位中傳送其完整 ID。

使用參考圖片

將 POST /v1/videos 設為 multipart/form-data,並在 input_reference 中提供參考圖片。 如需使用多張標準參考圖片,請依圖片順序重複該欄位;每個欄位填入一個可公開存取的 HTTPS 圖片 URL 或一個上傳的圖片檔案。 對於標準參考圖片,此欄位僅使用 URL 或僅使用檔案。請分別傳送每個 URL,而非以逗號串接 URL。 請將每張上傳圖片的大小維持在 20 MiB(20 × 1024 × 1024 位元組). Seedance 1.0 Pro 和 1.5 Pro 使用一張參考圖片。Seedance 2.0、Fast 和 Mini 最多可接受 9 張參考圖片。 Seedance 2.5 最多可接受 30 張參考圖片。這些數量限制同時適用於 URL 和上傳的檔案。 請在 Prompt 中為每張圖片指定角色,例如主體、場景或視覺風格。 描述要保留的外觀、動作和鏡頭運動。 本頁頂端的請求範例顯示圖片 URL 輸入,以及單張或多張圖片上傳。

傳送參考圖片 URL

使用兩個圖片 URL 引導主體外觀和場景:

使用形象素材

在 Seedance 2.5 要求中使用形象素材前,請先建立並啟用形象素材。先從建立形象素材群組開始,再透過上傳形象素材上傳圖片。儲存回傳的素材 ID,並等待其狀態變為 active。 使用 asset:// 參照格式傳送素材 ID。素材參照放在 input_reference 中,影片要求不會取得來源圖片 URL。
素材管理端點在 Authorization 標頭中使用原始存取權杖。影片要求使用帶有 Bearer 配置的 CometAPI API 金鑰。如果素材仍為 processing、failed 或無法使用,請先查看素材狀態或處理素材,再提交影片任務。

使用參考影片和音訊

Seedance 2.0、Fast、Mini 和 2.5 接受 reference_videos 和 reference_audios。 影片參考請使用 MP4 檔案,音訊參考請使用 MP3 檔案。請將每個參考以可公開存取的 HTTPS URL 或上傳檔案傳送。 請將參考音訊與至少一張圖片或一部影片搭配使用。 在 Prompt 中,使用 @Image1、@Video1 和 @Audio1 為參考資料指派角色。 依各媒體類型中的順序為參考資料編號。 您可以在不同欄位中混用 URL 和上傳檔案。 在 input_reference、reference_videos 和 reference_audios 中,請全部使用 URL 或全部使用檔案。 如有多個輸入,請針對每個輸入重複填寫一次欄位,而非以逗號串接 URL。 每個上傳影片須為 50 MiB 以下,每個上傳音訊檔案須為 15 MiB 以下。 一個 MiB 等於 1024 × 1024 位元組。 標準版 Seedance 2.0(doubao-seedance-2-0)對 URL 和上傳檔案皆有額外的媒體限制。 參考影片的合計時長須介於 2 至 15 秒,總大小須低於 50 MB。 請使用約 480p(640x640)至 720p(834x1112 的參考影片解析度). 參考音訊的合計時長須為 15 秒以下,每個檔案須為 15 MB 以下。 上傳的媒體也必須符合上述各檔案的上傳限制。

傳送參考影片 URL

使用參考影片來引導鏡頭移動和動作:

將圖片 URL 與音訊搭配使用

讓參考主體依照參考音訊的節奏動起來:

使用 Seedance 2.5 上傳參考媒體

在一個請求中上傳兩張圖片、一個 MP4 影片和一個 MP3 音訊檔案:

依模型劃分的時長

將 seconds 設為模型支援範圍內的整數值。若省略此值,CometAPI 會請求 5 秒的片段。

依模型劃分的尺寸支援

Seedance 2.5

對於 Seedance 2.5,這些 WxH 值同時適用於文字 Prompt 和參考媒體。

較早期的 Seedance 模型

最後一欄彙整了適用於 Seedance 1.5 Pro、standard Seedance 2.0 和 Fast 的確切 WxH 值。 Seedance 2.0 Fast 僅使用該欄中的 480p 和 720p 值。 該欄中的 1080p 值適用於 Seedance 1.5 Pro 和 standard Seedance 2.0。 4K 值僅適用於 standard Seedance 2.0。在 Mini 欄中,— 表示不支援該解析度。
Seedance 2.0 Mini 支援 480p 和 720p。請將 size 設為 Mini 欄中的 WxH 值。

授權

Authorization
string
header
必填

Bearer token authentication. Use your CometAPI key.

主體

multipart/form-data
prompt
string
必填

Text prompt that describes the video. Required. When using reference images, describe what each image should control, such as the subject from @Image1, the secondary object from @Image2, and the background or style from @Image3. Also state the action, camera motion, visual style, and scene.

範例:

"A slow cinematic camera push across a coastal landscape at sunrise."

model
enum<string>
必填

Seedance model ID. Use one of the exact values below. Aliases such as seedance-mini are not accepted.

可用選項:
seedance-2-5,
doubao-seedance-2-0,
doubao-seedance-2-0-fast,
doubao-seedance-2-0-mini,
doubao-seedance-1-5-pro,
doubao-seedance-1-0-pro
範例:

"doubao-seedance-2-0-mini"

seconds
integer
預設值:5

Video duration in seconds. Seedance 2.5 accepts 4 to 30. Seedance 2.0, Seedance 2.0 Fast, and Seedance 2.0 Mini accept 4 to 15. Seedance 1.5 Pro accepts 4 to 12, and Seedance 1.0 Pro accepts 2 to 10. The default is 5.

必填範圍: 2 <= x <= 30
範例:

5

size
string

Output size as an exact WxH value. For Seedance 2.5 text-to-video and image-to-video, use 854x480, 752x560, 640x640, 560x752, 480x854, or 992x432 for 480p; use 1280x720, 1112x834, 960x960, 834x1112, 720x1280, or 1470x630 for 720p. For Seedance 2.0 Mini, use 864x496, 752x560, 640x640, 560x752, 496x864, or 992x432 for 480p; use the same documented 720p values. The standard Seedance 2.0 model also accepts its documented 4K values.

Pattern: ^[1-9]\d{2,3}x[1-9]\d{2,3}$
範例:

"854x480"

"480x854"

"864x496"

"752x560"

"640x640"

"560x752"

"496x864"

"992x432"

"1280x720"

"1112x834"

"960x960"

"834x1112"

"720x1280"

"1470x630"

"1920x1080"

"1080x1920"

"3840x2160"

"3326x2494"

"2880x2880"

"2494x3326"

"2160x3840"

"4398x1886"

input_reference

Reference images or a CometAPI character asset. Repeat input_reference with one publicly accessible HTTPS image URL, one uploaded image file, or one asset:// reference per field. Use only URLs, asset references, or files within a request. Keep each uploaded image at or below 20 MiB. Seedance 2.0, Fast, and Mini allow up to nine image URLs or files and 12 reference inputs in total. Seedance 2.5 allows up to 30 image URLs or files and 50 reference inputs in total. For Seedance 1.0 Pro and 1.5 Pro, send one URL or one file. Submit images in the order you want to reference them in the prompt.

Pattern: ^https://
reference_videos
(string<uri> | file)[]

Reference video inputs for Seedance 2.0, Fast, Mini, and 2.5. Repeat reference_videos with a publicly accessible HTTPS MP4 URL or an uploaded MP4 file. Use only URLs or only files within this field. Each file can be up to 50 MiB. Seedance 2.0, Fast, and Mini allow up to three video inputs and 12 reference inputs in total. Seedance 2.5 allows up to ten video URLs or five uploaded video files, with 50 reference inputs in total. For standard Seedance 2.0 (doubao-seedance-2-0), URL and uploaded references must have a combined video duration of 2 to 15 seconds and a total video size under 50 MB. Each reference video must have a resolution of approximately 480p (640x640) to 720p (834x1112). These media limits apply in addition to the 50 MiB per-file upload limit.

Required array length: 1 - 10 elements
Pattern: ^https://
範例:

"https://your-media-host/reference.mp4"

reference_audios
(string<uri> | file)[]

Reference audio inputs for Seedance 2.0, Fast, Mini, and 2.5. Repeat reference_audios with a publicly accessible HTTPS MP3 URL or an uploaded MP3 file. Use only URLs or only files within this field. Each file can be up to 15 MiB. Seedance 2.0, Fast, and Mini allow up to three audio inputs and 12 reference inputs in total. Seedance 2.5 allows up to ten audio URLs or five uploaded audio files, with 50 reference inputs in total. Pair audio with at least one reference image or video. For standard Seedance 2.0 (doubao-seedance-2-0), URL and uploaded audio references must have a combined duration at or below 15 seconds, with each audio file at or below 15 MB. These media limits apply in addition to the 15 MiB per-file upload limit.

Required array length: 1 - 10 elements
Pattern: ^https://
範例:

"https://your-media-host/reference.mp3"

回應

Task created. Save the returned id and poll GET /v1/videos/{id}.

id
string
必填

Task id. Use it as the path parameter for GET /v1/videos/{id}.

object
string
必填

Object type, always video.

model
string
必填

Echo of the requested model id.

status
enum<string>
必填

Initial task status. Newly created tasks are returned as queued.

可用選項:
queued,
in_progress,
completed,
failed,
error
progress
integer
必填

Completion percentage. 0 at creation.

必填範圍: 0 <= x <= 100
created_at
integer
必填

Task creation time as a Unix timestamp in seconds.

task_id
string

Alias of id returned for compatibility. The value matches id.

最後修改於 2026年12月1日