Seedance 動画を作成する
CometAPI で Seedance 動画タスクを作成します。テキストプロンプトまたは参照画像を使用し、長さを選択して、正確な WxH 出力サイズを指定します。
WxH 値を、size フィールドに指定してください。サポートされているモデル ID
model フィールドには、これらの完全一致する値のいずれかを使用してください。
参照画像を使用する
Seedance 2.0、Seedance 2.0 Fast、Seedance 2.0 Mini で参照画像を受け付けるフィールドはinput_reference。高度な複数参照プロンプトの場合、
をサポートするルートでは、同じ multipart フィールドをアップロード順に繰り返してください。
単一の input_reference を含む Mini 本番リクエストの完了時刻は
720x1280。この確認によりリクエストの完了は確認できましたが、プロンプトからの
参照画像の視覚的効果を切り分けたものではありません。
Seedance 2.0 は、プロンプトで各参照画像をシーンにどのように関連付けるかに敏感です。アップロードしたファイルを順番に、たとえば [Image 1]、[Image 2]、[Image 3] のように参照し、それぞれの画像に明確な役割を割り当ててください:
- 主な被写体、キャラクター、または製品には
[Image 1]を使用します。 - 二次的な被写体、小道具、または同行者には
[Image 2]を使用します。 - 背景、設定、照明、またはスタイルには
[Image 3]を使用します。
モデル別の長さ
seconds を省略すると、CometAPI は 5 秒のクリップをリクエストします。特定の長さが必要な場合は、seconds を
文字列として送信してください。
モデル別の対応サイズ
以下の表には、正確なWxH 値がまとめられています。Seedance 2.0 Fast
では、5 列目の 480p 値と 720p 値のみを使用します。その列の 1080p 値は
Seedance 1.5 Pro と標準の Seedance 2.0 に適用されます。4K
値は標準の Seedance 2.0 にのみ適用されます。Mini 列では、— は
その解像度がサポートされていないことを意味します。
WxH 値を選択してください。正確な WxH のサポート状況はモデルによって異なるため、文書化されていないサイズに依存する前に、完成したメディアを確認してください。承認
Bearer token authentication. Use your CometAPI key.
ボディ
Text prompt that describes the video. Required. When using reference images, describe what each uploaded image should control, such as the subject from [Image 1], the secondary object from [Image 2], and the background or style from [Image 3]. 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.
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.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 <= 155
Output size as an exact WxH value. For Seedance 2.0 Mini, use 864x496, 752x560, 640x640, 560x752, 496x864, or 992x432 for 480p; use 1280x720, 1112x834, 960x960, 834x1112, 720x1280, or 1470x630 for 720p. Mini does not support 1080p or 4K. A Mini request for 1920x1080 produced 1280x720 in one production check. The standard Seedance 2.0 model also accepts its documented 4K values.
^[1-9]\d{2,3}x[1-9]\d{2,3}$"864x496"
"752x560"
"640x640"
"560x752"
"496x864"
"992x432"
"1280x720"
"1112x834"
"960x960"
"834x1112"
"720x1280"
"1470x630"
"1920x1080"
"1080x1920"
"3840x2160"
"3326x2494"
"2880x2880"
"2494x3326"
"2160x3840"
"4398x1886"
Optional reference image uploaded as a multipart file. Seedance 2.0, Seedance 2.0 Fast, and Seedance 2.0 Mini accept this field. On routes that support multiple reference images, repeat the field and reference the files in upload order as [Image 1], [Image 2], and so on. Seedance 1.0 Pro and 1.5 Pro do not accept it.
レスポンス
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.