Seedance 動画を作成する
CometAPI で Seedance 動画タスクを作成します。テキストプロンプトまたは参照メディアを使用し、期間と WxH の出力サイズを指定します。
size に設定します。WxH対応モデル ID
入力モードと解像度に対応するモデルを選択し、その正確な ID をmodel フィールドで送信します。
参照画像を使用する
POST /v1/videos を multipart/form-data として送信し、参照画像は input_reference に指定します。
複数の画像を使用する場合は、画像の順序に従ってフィールドを繰り返し、各フィールドに公開アクセス可能な HTTPS 画像 URL を 1 つ、またはアップロードした画像ファイルを 1 つ指定します。
このフィールド内では URL のみ、またはファイルのみを使用してください。URL をカンマで連結せず、各 URL を個別に送信します。
アップロードする各画像は 20 MiB(20 × 1024 × 1024 バイト).
Seedance 1.0 Pro と 1.5 Pro では参照画像を 1 枚使用します。Seedance 2.0、Fast、Mini では最大 9 枚の参照画像を受け付けます。
Seedance 2.5 では最大 30 枚の参照画像を受け付けます。これらの数は URL とアップロードファイルの両方に適用されます。
プロンプトで、各画像に被写体、設定、視覚スタイルなどの役割を割り当てます。
維持する外観、アクション、カメラの動きを説明します。
このページ上部のリクエストサンプルでは、画像 URL 入力と、単一画像または複数画像のアップロードを示しています。
参照画像 URL を送信する
被写体の外観と設定を指定するために、2 つの画像 URL を使用します:参照動画と音声を使用する
Seedance 2.0、Fast、Mini、2.5 では、reference_videos と reference_audios を受け付けます。
動画の参照には MP4 ファイル、音声の参照には MP3 ファイルを使用します。各ファイルは、一般公開された HTTPS URL またはアップロード済みファイルとして送信します。
参照音声は、少なくとも 1 つの画像または動画と組み合わせてください。
プロンプトでは、@Image1、@Video1、@Audio1 を使用して参照に役割を割り当てます。
参照は、各メディアタイプ内での順序に従って番号を付けます。
異なるフィールド間で URL とアップロードを組み合わせることができます。
input_reference、reference_videos、reference_audios のそれぞれでは、すべて URL またはすべてファイルのいずれかを使用します。
複数の入力では、URL をカンマで結合するのではなく、入力ごとにフィールドを 1 回繰り返します。
doubao-seedance-2-0)には、URL とアップロード済みファイルの両方に追加のメディア制限があります。
参照動画では、合計再生時間を 2 ~ 15 秒、合計サイズを 50 MB 未満にしてください。
参照動画の解像度には、およそ 480p(640x640)から 720p(834x1112)).
参照音声では、合計再生時間を 15 秒以下、各ファイルを 15 MB 以下にしてください。
アップロードするメディアは、上記のファイルごとのアップロード制限も満たす必要があります。
参照動画 URL を送信する
参照動画を使用して、カメラの動きとアクションを誘導します。画像 URL と音声を組み合わせる
参照音声のリズムに合わせて、参照対象をアニメーション化します。Seedance 2.5 で参照メディアをアップロードする
1 回のリクエストで 2 枚の画像、MP4 動画、MP3 音声ファイルをアップロードします。モデル別の期間
seconds をモデルでサポートされる範囲内の整数値に設定します。省略した場合、CometAPI は5秒のクリップをリクエストします。
モデル別のサイズ対応
Seedance 2.5
Seedance 2.5 では、これらのWxH 値はテキストプロンプトと参照メディアの両方に適用されます。
以前のSeedanceモデル
最後の列には、Seedance 1.5 Pro、標準のSeedance 2.0、およびFast向けの正確なWxH 値がまとめられています。
Seedance 2.0 Fast では、その列の 480p 値と 720p 値のみを使用します。
その列の 1080p 値は、Seedance 1.5 Pro と標準のSeedance 2.0 に適用されます。
4K 値は標準のSeedance 2.0 にのみ適用されます。Mini列では、— はその解像度がサポートされていないことを意味します。
承認
Bearer token authentication. Use your CometAPI key.
ボディ
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."
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"
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 <= 305
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.
^[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"
Reference images: repeat input_reference with one publicly accessible HTTPS image URL or one uploaded image file per field. Use only URLs or only files within this field; do not join URLs with commas. 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.
^https://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.
1 - 10 elements^https://"https://your-media-host/reference.mp4"
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.
1 - 10 elements^https://"https://your-media-host/reference.mp3"
レスポンス
Task created. Save the returned id and poll GET /v1/videos/{id}.
Task id. Use it as the path parameter for GET /v1/videos/{id}.
Object type, always video.
Echo of the requested model id.
Initial task status. Newly created tasks are returned as queued.
queued, in_progress, completed, failed, error Completion percentage. 0 at creation.
0 <= x <= 100Task creation time as a Unix timestamp in seconds.
Alias of id returned for compatibility. The value matches id.