Skip to main content
POST
Wählen Sie aus der folgenden Tabelle einen dokumentierten WxH-Wert für das Feld size aus.

Referenzbilder verwenden

Nur die Seedance-2.0-Modelle akzeptieren input_reference. Fügen Sie eine input_reference-Datei für bildgestützte Generierung hinzu. Wiederholen Sie für erweiterte Prompts mit mehreren Referenzen dasselbe Multipart-Feld in der Upload-Reihenfolge. Seedance 2.0 reagiert empfindlich darauf, wie der Prompt jedes Referenzbild mit der Szene verknüpft. Verweisen Sie in der Reihenfolge auf die hochgeladenen Dateien, etwa [Image 1], [Image 2] und [Image 3], und weisen Sie jedem Bild eine klare Rolle zu:
  • Verwenden Sie [Image 1] für das Hauptmotiv, die Hauptfigur oder das Hauptprodukt.
  • Verwenden Sie [Image 2] für ein sekundäres Motiv, eine Requisite oder einen Begleiter.
  • Verwenden Sie [Image 3] für den Hintergrund, die Umgebung, die Beleuchtung oder den Stil.
Beschreiben Sie, was erkennbar bleiben soll, was sich ändern kann, die Handlung, die Kamerabewegung, den visuellen Stil und die Szene. Ein vager Prompt kann dazu führen, dass das generierte Video so aussieht, als wäre das Referenzbild nicht verwendet worden, selbst wenn der Upload akzeptiert wurde. Diese Prompt-Struktur ist zuverlässiger, als nur Bilder aufzulisten:

Dauer nach Modell

Wenn Sie seconds weglassen, fordert CometAPI einen 5-sekündigen Clip an. Senden Sie seconds als String, wenn Sie eine bestimmte Dauer benötigen.

Größenunterstützung nach Modell

Die folgende Tabelle folgt der offiziellen Seedance-Auflösungszuordnung und fasst die veröffentlichten Größenwerte an einer Stelle zusammen. Für 1080p enthält die Spalte ganz rechts die dokumentierten Werte für Seedance 1.5 Pro und Seedance 2.0. Seedance 2.0 Fast ist in dieser offiziellen Tabelle für 1080p nicht aufgeführt. Die Einträge für 4K gelten nur für doubao-seedance-2-0. Sie können sie für Text-zu-Video- oder Bild-zu-Video-Anfragen verwenden, die input_reference enthalten. Sie gelten nicht für doubao-seedance-2-0-fast. Übergeben Sie den genau in der Tabelle angegebenen Wert für WxH. Wählen Sie für das Zielmodell den dokumentierten Wert WxH. Die Unterstützung exakter WxH-Werte bleibt modellabhängig. Prüfen Sie daher die fertiggestellten Medien, bevor Sie sich auf eine nicht dokumentierte Größe verlassen.

Autorisierungen

Authorization
string
header
erforderlich

Bearer token authentication. Use your CometAPI key.

Body

multipart/form-data
prompt
string
erforderlich

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.

Beispiel:

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

model
enum<string>
erforderlich

Seedance model id. Only the two 2.0 models accept input_reference.

Verfügbare Optionen:
doubao-seedance-2-0,
doubao-seedance-2-0-fast,
doubao-seedance-1-5-pro,
doubao-seedance-1-0-pro
Beispiel:

"doubao-seedance-2-0"

seconds
integer
Standard:5

Video duration in seconds. The accepted range depends on the model: doubao-seedance-2-0 and doubao-seedance-2-0-fast accept 4 to 15, doubao-seedance-1-5-pro accepts 4 to 12, and doubao-seedance-1-0-pro accepts 2 to 10. The default is 5 for every model.

Erforderlicher Bereich: 2 <= x <= 15
Beispiel:

5

size
string

Output size as an exact WxH value, such as 1280x720. For doubao-seedance-2-0 4K output, use 3840x2160, 3326x2494, 2880x2880, 2494x3326, 2160x3840, or 4398x1886. These 4K values work for text-to-video and requests with input_reference, but they do not apply to doubao-seedance-2-0-fast. Exact WxH support remains model-dependent, and an undocumented value can normalize to another size or fail.

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

"1280x720"

"1920x1080"

"3840x2160"

"3326x2494"

"2880x2880"

"2494x3326"

"2160x3840"

"4398x1886"

"1112x834"

"960x960"

"834x1112"

"720x1280"

"1080x1920"

"1470x630"

input_reference
file

Optional reference image uploaded as a multipart file. Repeat this field to send multiple reference images; the order of repeated fields is the order you should reference in the prompt as [Image 1], [Image 2], and so on. Use JPEG or PNG files for best compatibility. Only doubao-seedance-2-0 and doubao-seedance-2-0-fast accept this field; sending it with a 1.0 Pro or 1.5 Pro model returns HTTP 400.

Antwort

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

id
string
erforderlich

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

object
string
erforderlich

Object type, always video.

model
string
erforderlich

Echo of the requested model id.

status
enum<string>
erforderlich

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

Verfügbare Optionen:
queued,
in_progress,
completed,
failed,
error
progress
integer
erforderlich

Completion percentage. 0 at creation.

Erforderlicher Bereich: 0 <= x <= 100
created_at
integer
erforderlich

Task creation time as a Unix timestamp in seconds.

task_id
string

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