Buat video Seedance
Buat tugas video Seedance di CometAPI. Gunakan prompt teks, media referensi, atau aset karakter Seedance 2.5 dengan durasi dan ukuran output WxH.
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 ke nilai WxH dari tabel ukuran untuk model Anda.doubao-seedance-2-0-mini persis seperti itu untuk Seedance 2.0 Mini.
Nilai seedance-mini yang disingkat bukan merupakan ID model yang valid.ID model yang didukung
Pilih model untuk mode input dan resolusi Anda, lalu kirimkan ID persisnya dalam fieldmodel.
| Model | ID model persis | Mode dan tingkat resolusi | Didukung seconds |
|---|---|---|---|
| Seedance 2.5 | seedance-2-5 | Teks ke video, media referensi; 480p, 720p | 4-30 |
| Seedance 2.0 | doubao-seedance-2-0 | Teks ke video, media referensi; 480p, 720p, 1080p, 4K | 4-15 |
| Seedance 2.0 Fast | doubao-seedance-2-0-fast | Teks ke video, media referensi; 480p, 720p | 4-15 |
| Seedance 2.0 Mini | doubao-seedance-2-0-mini | Teks ke video, media referensi; 480p, 720p | 4-15 |
| Seedance 1.5 Pro | doubao-seedance-1-5-pro | Teks ke video, gambar ke video; 480p, 720p, 1080p | 4-12 |
| Seedance 1.0 Pro | doubao-seedance-1-0-pro | Teks ke video, gambar ke video; 480p, 720p, 1080p | 2-10 |
Gunakan gambar referensi
KirimPOST /v1/videos sebagai multipart/form-data, dengan gambar referensi dalam input_reference.
Untuk beberapa gambar referensi standar, ulangi field sesuai urutan gambar, dengan satu URL gambar HTTPS yang dapat diakses publik atau satu file gambar yang diunggah per field.
Untuk gambar referensi standar, gunakan hanya URL atau hanya file dalam field ini. Kirim setiap URL secara terpisah, bukan menggabungkan URL dengan koma.
Pertahankan ukuran setiap gambar yang diunggah pada atau di bawah 20 MiB (20 × 1024 × 1024 byte).
Seedance 1.0 Pro dan 1.5 Pro menggunakan satu gambar referensi. Seedance 2.0, Fast, dan Mini menerima hingga 9 gambar referensi.
Seedance 2.5 menerima hingga 30 gambar referensi. Jumlah ini berlaku untuk URL maupun file yang diunggah.
Dalam Prompt, tetapkan peran untuk setiap gambar, seperti subjek, latar, atau gaya visual.
Jelaskan tampilan yang perlu dipertahankan, tindakan, dan gerakan kamera.
Contoh request di bagian atas halaman ini menampilkan input URL gambar serta unggahan satu gambar atau beberapa gambar.
Kirim URL gambar referensi
Gunakan dua URL gambar untuk memandu tampilan subjek dan latar: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'
Gunakan aset karakter
Buat dan aktifkan aset karakter sebelum menggunakannya dalam permintaan Seedance 2.5. Mulai dengan Buat grup aset karakter, lalu unggah gambar melalui Unggah aset karakter. Simpan ID aset yang dikembalikan dan tunggu hingga statusnyaactive.
Gunakan ID aset dengan format referensi asset://. Referensi aset ditempatkan di input_reference dan tidak mengekspos URL gambar sumber ke permintaan video.
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. Permintaan video menggunakan kunci API CometAPI Anda dengan skema Bearer. Jika aset masih processing, failed, atau tidak tersedia, tunggu status aset atau selesaikan aset sebelum mengirim tugas video.
Gunakan video dan audio referensi
Seedance 2.0, Fast, Mini, dan 2.5 menerimareference_videos dan reference_audios.
Gunakan file MP4 untuk referensi video dan file MP3 untuk referensi audio. Kirim masing-masing sebagai URL HTTPS yang dapat diakses publik atau file yang diunggah.
Padankan audio referensi dengan setidaknya satu gambar atau video.
Dalam prompt, gunakan @Image1, @Video1, dan @Audio1 untuk menetapkan peran pada referensi Anda.
Nomori referensi berdasarkan urutannya dalam setiap jenis media.
Anda dapat menggabungkan URL dan unggahan di berbagai field.
Dalam masing-masing input_reference, reference_videos, dan reference_audios, gunakan semua URL atau semua file.
Untuk beberapa input, ulangi field satu kali untuk setiap input alih-alih menggabungkan URL dengan koma.
| Keluarga model | Gambar referensi | Video referensi | Audio referensi | Total input referensi |
|---|---|---|---|---|
| Seedance 2.0, Fast, dan Mini | Hingga 9 URL atau file dalam input_reference | Hingga 3 | Hingga 3 | Hingga 12 |
| Seedance 2.5 | Hingga 30 URL atau file dalam input_reference | Hingga 10 URL atau 5 file | Hingga 10 URL atau 5 file | Hingga 50 |
doubao-seedance-2-0) memiliki batas media tambahan untuk URL dan file yang diunggah.
Untuk video referensi, pastikan total durasinya antara 2 dan 15 detik serta ukuran totalnya di bawah 50 MB.
Gunakan resolusi video referensi sekitar 480p (640x640) hingga 720p (834x1112)).
Untuk audio referensi, pastikan total durasinya 15 detik atau kurang dan setiap file berukuran 15 MB atau kurang.
Media yang diunggah juga harus memenuhi batas unggahan per file di atas.
Kirim URL video referensi
Gunakan video referensi untuk memandu pergerakan kamera dan aksi: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'
Padankan URL gambar dengan audio
Animasikan subjek referensi mengikuti ritme audio referensi: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'
Unggah media referensi dengan Seedance 2.5
Unggah dua gambar, video MP4, dan file audio MP3 dalam satu permintaan: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'
Durasi berdasarkan model
Tetapkanseconds ke nilai bilangan bulat dalam rentang model Anda. Jika dihilangkan, CometAPI meminta klip berdurasi 5 detik.
| Keluarga model | Didukung seconds | Default | Perilaku batas |
|---|---|---|---|
| Seedance 2.5 | 4-30 | 5 | Gunakan detik bilangan bulat dalam rentang tersebut. |
| Seedance 2.0, Seedance 2.0 Fast, dan Seedance 2.0 Mini | 4-15 | 5 | Gunakan detik bilangan bulat dalam rentang tersebut. |
| Seedance 1.5 Pro | 4-12 | 5 | Gunakan detik bilangan bulat dalam rentang tersebut. |
| Seedance 1.0 Pro | 2-10 | 5 | Gunakan detik bilangan bulat dalam rentang tersebut. |
Dukungan ukuran berdasarkan model
Seedance 2.5
Untuk Seedance 2.5, nilaiWxH ini berlaku untuk prompt teks dan media referensi.
| Kelas resolusi | 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 |
Model Seedance sebelumnya
Kolom terakhir mengelompokkan nilaiWxH yang tepat untuk Seedance 1.5 Pro, Seedance 2.0 standar, dan Fast.
Seedance 2.0 Fast hanya menggunakan nilai 480p dan 720p dalam kolom tersebut.
Nilai 1080p dalam kolom tersebut berlaku untuk Seedance 1.5 Pro dan Seedance 2.0 standar.
Nilai 4K hanya berlaku untuk Seedance 2.0 standar. Dalam kolom Mini, — berarti resolusi tidak didukung.
| Kelas resolusi | Rasio aspek | Seedance 2.0 Mini | Seri Seedance 1.0 | Seedance 1.5 Pro / Seedance 2.0 standar / 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 (Hanya Seedance 2.0) |
4:3 | — | — | 3326x2494 (Hanya Seedance 2.0) | |
1:1 | — | — | 2880x2880 (Hanya Seedance 2.0) | |
3:4 | — | — | 2494x3326 (Hanya Seedance 2.0) | |
9:16 | — | — | 2160x3840 (Hanya Seedance 2.0) | |
21:9 | — | — | 4398x1886 (Hanya Seedance 2.0) |
480p dan 720p. Tetapkan size ke nilai WxH dari kolom Mini.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"
Respons
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
}