Ein Seedance-Video erstellen
Erstelle eine Seedance-Videoaufgabe auf CometAPI. Verwende Text-Prompts, Referenzmedien oder ein Seedance-2.5-Charakter-Asset mit einer Dauer und einer Ausgabegröße in BxH.
curl https://api.cometapi.com/v1/videos \
-H "Authorization: Bearer $COMETAPI_KEY" \
-F 'prompt="A matte magenta cube rotates slowly above a cyan studio floor while a small yellow sphere circles it."' \
-F 'model="seedance-2-5"' \
-F 'seconds="4"' \
-F 'size="1280x720"'{
"id": "task_abc123",
"task_id": "task_abc123",
"object": "video",
"model": "doubao-seedance-2-0-mini",
"status": "queued",
"progress": 0,
"created_at": 1776681149
}size auf einen WxH-Wert aus der Größentabelle für dein Modell.doubao-seedance-2-0-mini genau für Seedance 2.0 Mini.
Der verkürzte Wert seedance-mini ist keine gültige Modell-ID.Unterstützte Modell-IDs
Wähle ein Modell für deinen Eingabemodus und deine Auflösung aus und sende dann seine genaue ID im Feldmodel.
| Modell | Genaue Modell-ID | Modi und Auflösungsstufen | Unterstützt seconds |
|---|---|---|---|
| Seedance 2.5 | seedance-2-5 | Text-zu-Video, Referenzmedien; 480p, 720p | 4-30 |
| Seedance 2.0 | doubao-seedance-2-0 | Text-zu-Video, Referenzmedien; 480p, 720p, 1080p, 4K | 4-15 |
| Seedance 2.0 Fast | doubao-seedance-2-0-fast | Text-zu-Video, Referenzmedien; 480p, 720p | 4-15 |
| Seedance 2.0 Mini | doubao-seedance-2-0-mini | Text-zu-Video, Referenzmedien; 480p, 720p | 4-15 |
| Seedance 1.5 Pro | doubao-seedance-1-5-pro | Text-zu-Video, Bild-zu-Video; 480p, 720p, 1080p | 4-12 |
| Seedance 1.0 Pro | doubao-seedance-1-0-pro | Text-zu-Video, Bild-zu-Video; 480p, 720p, 1080p | 2-10 |
Referenzbilder verwenden
SendePOST /v1/videos als multipart/form-data mit Referenzbildern in input_reference.
Wiederhole bei mehreren Standard-Referenzbildern das Feld in Bildreihenfolge, mit einer öffentlich zugänglichen HTTPS-Bild-URL oder einer hochgeladenen Bilddatei pro Feld.
Verwende für Standard-Referenzbilder in diesem Feld ausschließlich URLs oder ausschließlich Dateien. Sende jede URL einzeln, anstatt URLs durch Kommas zu verbinden.
Halte jedes hochgeladene Bild bei höchstens 20 MiB (20 × 1024 × 1024 Byte).
Seedance 1.0 Pro und 1.5 Pro verwenden jeweils ein Referenzbild. Seedance 2.0, Fast und Mini akzeptieren bis zu 9 Referenzbilder.
Seedance 2.5 akzeptiert bis zu 30 Referenzbilder. Diese Anzahlen gelten sowohl für URLs als auch für hochgeladene Dateien.
Weise im Prompt jedem Bild eine Rolle zu, etwa das Motiv, die Umgebung oder den visuellen Stil.
Beschreibe das zu bewahrende Aussehen, die Aktion und die Kamerabewegung.
Die Anfragebeispiele oben auf dieser Seite zeigen Eingaben mit Bild-URLs sowie Uploads einzelner oder mehrerer Bilder.
Referenzbild-URLs senden
Verwende zwei Bild-URLs, um das Aussehen des Motivs und die Umgebung vorzugeben:curl \
https://api.cometapi.com/v1/videos \
-H "Authorization: Bearer $COMETAPI_KEY" \
--form-string 'model=doubao-seedance-2-0' \
--form-string 'prompt=Use the subject in @Image1 and the setting in @Image2. Use a slow camera push-in and natural motion.' \
--form-string 'seconds=5' \
--form-string 'size=1280x720' \
--form-string 'input_reference=https://your-image-host/subject.png' \
--form-string 'input_reference=https://your-image-host/setting.png'
Ein Charakter-Asset verwenden
Erstelle und aktiviere ein Charakter-Asset, bevor du es in einer Seedance-2.5-Anfrage verwendest. Beginne mit Eine Charakter-Asset-Gruppe erstellen, und lade dann über Ein Charakter-Asset hochladen ein Bild hoch. Speichere die zurückgegebene Asset-ID und warte, bis der Statusactive ist.
Verwende die Asset-ID mit dem Referenzformat asset://. Die Asset-Referenz gehört in input_reference und gibt die Quellbild-URL nicht an die Videoanfrage weiter.
curl \
https://api.cometapi.com/v1/videos \
-H "Authorization: Bearer $COMETAPI_KEY" \
--form-string 'model=seedance-2-5' \
--form-string 'prompt=Animate the character in the referenced asset with a slow camera push-in and natural motion.' \
--form-string 'seconds=5' \
--form-string 'size=1280x720' \
--form-string 'input_reference=asset://<ASSET_ID>'
Authorization-Header. Die Videoanfrage verwendet deinen CometAPI-API-Schlüssel mit dem Bearer-Schema. Wenn ein Asset noch processing, failed oder nicht verfügbar ist, warte auf den Asset-Status oder löse das Asset auf, bevor du die Videoaufgabe sendest.
Referenzvideo und -audio verwenden
Seedance 2.0, Fast, Mini und 2.5 akzeptierenreference_videos und reference_audios.
Verwenden Sie MP4-Dateien für Videoreferenzen und MP3-Dateien für Audioreferenzen. Senden Sie jede davon als öffentlich zugängliche HTTPS-URL oder hochgeladene Datei.
Kombinieren Sie Referenzaudio mit mindestens einem Bild oder Video.
Verwenden Sie im Prompt @Image1, @Video1 und @Audio1, um Ihren Referenzen Rollen zuzuweisen.
Nummerieren Sie Referenzen nach ihrer Reihenfolge innerhalb jedes Medientyps.
Sie können URLs und Uploads über verschiedene Felder hinweg kombinieren.
Verwenden Sie innerhalb von input_reference, reference_videos und reference_audios entweder ausschließlich URLs oder ausschließlich Dateien.
Wiederholen Sie bei mehreren Eingaben das Feld einmal pro Eingabe, anstatt URLs durch Kommas zu verbinden.
| Modellfamilie | Referenzbilder | Referenzvideos | Referenzaudio | Referenzeingaben insgesamt |
|---|---|---|---|---|
| Seedance 2.0, Fast und Mini | Bis zu 9 URLs oder Dateien in input_reference | Bis zu 3 | Bis zu 3 | Bis zu 12 |
| Seedance 2.5 | Bis zu 30 URLs oder Dateien in input_reference | Bis zu 10 URLs oder 5 Dateien | Bis zu 10 URLs oder 5 Dateien | Bis zu 50 |
doubao-seedance-2-0) hat zusätzliche Medienlimits für URLs und hochgeladene Dateien.
Halten Sie bei Referenzvideos die Gesamtdauer zwischen 2 und 15 Sekunden und die Gesamtgröße unter 50 MB.
Verwenden Sie für Referenzvideos eine Auflösung von etwa 480p (640x640) bis 720p (834x1112).
Halten Sie bei Referenzaudio die Gesamtdauer bei höchstens 15 Sekunden und jede Datei bei höchstens 15 MB.
Hochgeladene Medien müssen außerdem die oben genannten Upload-Limits pro Datei erfüllen.
Eine Referenzvideo-URL senden
Verwenden Sie das Referenzvideo, um Kamerabewegung und Aktion zu steuern:curl \
https://api.cometapi.com/v1/videos \
-H "Authorization: Bearer $COMETAPI_KEY" \
--form-string 'model=doubao-seedance-2-0' \
--form-string 'prompt=Follow the camera movement and action in @Video1. Preserve the direction and pace of the motion.' \
--form-string 'seconds=5' \
--form-string 'size=1280x720' \
--form-string 'reference_videos=https://your-media-host/reference.mp4'
Eine Bild-URL mit Audio kombinieren
Animieren Sie das Referenzmotiv im Rhythmus des Referenzaudios:curl \
https://api.cometapi.com/v1/videos \
-H "Authorization: Bearer $COMETAPI_KEY" \
--form-string 'model=doubao-seedance-2-0' \
--form-string 'prompt=Animate the subject in @Image1 to the rhythm of @Audio1. Preserve the subject appearance and use a fixed camera.' \
--form-string 'seconds=5' \
--form-string 'size=1280x720' \
--form-string 'input_reference=https://your-image-host/subject.png' \
--form-string 'reference_audios=https://your-media-host/reference.mp3'
Referenzmedien mit Seedance 2.5 hochladen
Laden Sie zwei Bilder, ein MP4-Video und eine MP3-Audiodatei in einer Anfrage hoch:curl \
https://api.cometapi.com/v1/videos \
-H "Authorization: Bearer $COMETAPI_KEY" \
--form-string 'model=seedance-2-5' \
--form-string 'prompt=Use the subject in @Image1 and the setting in @Image2. Follow the motion in @Video1 and the rhythm of @Audio1.' \
--form-string 'seconds=5' \
--form-string 'size=1280x720' \
--form 'input_reference=@/path/to/subject.png;type=image/png' \
--form 'input_reference=@/path/to/setting.png;type=image/png' \
--form 'reference_videos=@/path/to/reference.mp4;type=video/mp4' \
--form 'reference_audios=@/path/to/reference.mp3;type=audio/mpeg'
Dauer nach Modell
Setzeseconds auf einen ganzzahligen Wert innerhalb des Bereichs deines Modells. Wenn du ihn weglässt, fordert CometAPI einen 5-Sekunden-Clip an.
| Modellfamilie | Unterstützt seconds | Standard | Verhalten an Bereichsgrenzen |
|---|---|---|---|
| Seedance 2.5 | 4-30 | 5 | Verwende Ganzzahlsekunden im Bereich. |
| Seedance 2.0, Seedance 2.0 Fast und Seedance 2.0 Mini | 4-15 | 5 | Verwende Ganzzahlsekunden im Bereich. |
| Seedance 1.5 Pro | 4-12 | 5 | Verwende Ganzzahlsekunden im Bereich. |
| Seedance 1.0 Pro | 2-10 | 5 | Verwende Ganzzahlsekunden im Bereich. |
Größenunterstützung nach Modell
Seedance 2.5
Für Seedance 2.5 gelten dieseWxH-Werte sowohl für Text-Prompts als auch für Referenzmedien.
| Auflösungsklasse | 16:9 | 4:3 | 1:1 | 3:4 | 9:16 | 21:9 |
|---|---|---|---|---|---|---|
480p | 854x480 | 752x560 | 640x640 | 560x752 | 480x854 | 992x432 |
720p | 1280x720 | 1112x834 | 960x960 | 834x1112 | 720x1280 | 1470x630 |
Frühere Seedance-Modelle
Die letzte Spalte fasst exakteWxH-Werte für Seedance 1.5 Pro, Standard-Seedance 2.0 und Fast zusammen.
Seedance 2.0 Fast verwendet in dieser Spalte nur die Werte 480p und 720p.
Die 1080p-Werte in dieser Spalte gelten für Seedance 1.5 Pro und Standard-Seedance 2.0.
Die 4K-Werte gelten nur für Standard-Seedance 2.0. In der Mini-Spalte bedeutet —, dass die Auflösung nicht unterstützt wird.
| Auflösungsklasse | Seitenverhältnis | Seedance 2.0 Mini | Seedance-1.0-Serie | Seedance 1.5 Pro / Standard-Seedance 2.0 / Fast |
|---|---|---|---|---|
480p | 16:9 | 864x496 | 864x480 | 864x496 |
4:3 | 752x560 | 736x544 | 752x560 | |
1:1 | 640x640 | 640x640 | 640x640 | |
3:4 | 560x752 | 544x736 | 560x752 | |
9:16 | 496x864 | 480x864 | 496x864 | |
21:9 | 992x432 | 960x416 | 992x432 | |
720p | 16:9 | 1280x720 | 1248x704 | 1280x720 |
4:3 | 1112x834 | 1120x832 | 1112x834 | |
1:1 | 960x960 | 960x960 | 960x960 | |
3:4 | 834x1112 | 832x1120 | 834x1112 | |
9:16 | 720x1280 | 704x1248 | 720x1280 | |
21:9 | 1470x630 | 1504x640 | 1470x630 | |
1080p | 16:9 | — | 1920x1088 | 1920x1080 |
4:3 | — | 1664x1248 | 1664x1248 | |
1:1 | — | 1440x1440 | 1440x1440 | |
3:4 | — | 1248x1664 | 1248x1664 | |
9:16 | — | 1088x1920 | 1080x1920 | |
21:9 | — | 2176x928 | 2206x946 | |
4K | 16:9 | — | — | 3840x2160 (Nur Seedance 2.0) |
4:3 | — | — | 3326x2494 (Nur Seedance 2.0) | |
1:1 | — | — | 2880x2880 (Nur Seedance 2.0) | |
3:4 | — | — | 2494x3326 (Nur Seedance 2.0) | |
9:16 | — | — | 2160x3840 (Nur Seedance 2.0) | |
21:9 | — | — | 4398x1886 (Nur Seedance 2.0) |
480p und 720p. Setze size auf einen WxH-Wert aus der Mini-Spalte.Autorisierungen
Body
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"
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 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.
^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"
Antwort
Task created. Save the returned id and poll GET /v1/videos/{id}.
curl https://api.cometapi.com/v1/videos \
-H "Authorization: Bearer $COMETAPI_KEY" \
-F 'prompt="A matte magenta cube rotates slowly above a cyan studio floor while a small yellow sphere circles it."' \
-F 'model="seedance-2-5"' \
-F 'seconds="4"' \
-F 'size="1280x720"'{
"id": "task_abc123",
"task_id": "task_abc123",
"object": "video",
"model": "doubao-seedance-2-0-mini",
"status": "queued",
"progress": 0,
"created_at": 1776681149
}