Seedance 2.0 Mini creates 4–15-second videos at 480p or 720p. Start with a text prompt, animate reference images, or use reference videos to guide motion and camera work. Add reference audio alongside an image or video.
Semua permintaan dikirim ke https://genjutsu.top. Kirim kunci API Genjutsu sebagai bearer token. POST https://genjutsu.top/v1/media/generate · Authorization: Bearer $GENJUTSU_API_KEY · Scope yang diperlukan: generate, read, assets
Describe the shot. Use @Image1, @Image2, and so on to refer to attached images.
hingga 100000 karakter
duration
integer
Opsional
5
rentang 4 sampai 15; langkah 1
aspect_ratio
salah satu dari
Opsional
"9:16"
"auto"Auto
"1:1"
"4:3"
"3:4"
"16:9"
"9:16"
"21:9"
resolution
salah satu dari
Opsional
"720p"
"480p"
"720p"
audio
boolean
Opsional
true
Permintaan minimal
curl -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "seedance-2.0-mini",
"mode": "t2v",
"params": {
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light"
}
}'
Permintaan dengan parameter opsional
curl -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "seedance-2.0-mini",
"mode": "t2v",
"params": {
"audio": true,
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "9:16"
}
}'
seedance-2.0-mini
Image to video i2v
Parameter
Tipe
Wajib
Default
Detail
prompt
string
Wajib
-
Describe the shot. Use @Image1, @Image2, and so on to refer to attached images.
hingga 100000 karakter
images_list
daftar ID aset image
Wajib
-
Up to 9 JPG, PNG, or WebP images, at most 20 MB each. The 12-file limit includes images, videos, and audio together.
menerima image/jpeg, image/png, image/webp; hingga 9 berkas
reference_audios
daftar ID aset audio
Opsional
-
Up to 3 clips with an image or video reference. Each must be at least 2 seconds. All reference audio together may total up to 15 seconds.
hingga 3 berkas; durasi klip 2 hingga 15 dtk
duration
integer
Opsional
5
rentang 4 sampai 15; langkah 1
aspect_ratio
salah satu dari
Opsional
"9:16"
"auto"Auto
"1:1"
"4:3"
"3:4"
"16:9"
"9:16"
"21:9"
resolution
salah satu dari
Opsional
"720p"
"480p"
"720p"
audio
boolean
Opsional
true
Permintaan minimal
images_list: Replace with the asset ID of your own uploaded image (upload it with POST /v1/assets/uploads first). Accepted types: image/jpeg, image/png, image/webp.
# Media IDs below are placeholders: replace them with your own uploaded assets before running this.
curl -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "seedance-2.0-mini",
"mode": "i2v",
"params": {
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light",
"images_list": [
"asset:00000000-0000-4000-8000-000000000001"
]
}
}'
Permintaan dengan parameter opsional
images_list: Replace with the asset ID of your own uploaded image (upload it with POST /v1/assets/uploads first). Accepted types: image/jpeg, image/png, image/webp.
images_list: Replace with the asset ID of your own uploaded image (upload it with POST /v1/assets/uploads first). Accepted types: image/jpeg, image/png, image/webp.
reference_audios: Replace with the asset ID of your own uploaded audio (upload it with POST /v1/assets/uploads first).
reference_audios: Replace with the asset ID of your own uploaded audio (upload it with POST /v1/assets/uploads first).
# Media IDs below are placeholders: replace them with your own uploaded assets before running this.
curl -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "seedance-2.0-mini",
"mode": "i2v",
"params": {
"audio": true,
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light",
"duration": 5,
"resolution": "720p",
"images_list": [
"asset:00000000-0000-4000-8000-000000000001",
"asset:00000000-0000-4000-8000-000000000002"
],
"aspect_ratio": "9:16",
"reference_audios": [
"asset:00000000-0000-4000-8000-000000000003",
"asset:00000000-0000-4000-8000-000000000004"
]
}
}'
seedance-2.0-mini
Video to video v2v
Parameter
Tipe
Wajib
Default
Detail
prompt
string
Wajib
-
Describe the shot. Use @Image1, @Image2, and so on to refer to attached images.
hingga 100000 karakter
images_list
daftar ID aset image
Opsional
-
Up to 9 JPG, PNG, or WebP images, at most 20 MB each. The 12-file limit includes images, videos, and audio together.
menerima image/jpeg, image/png, image/webp; hingga 9 berkas
reference_videos
daftar ID aset video
Wajib
-
Up to 3 videos, at most 50 MB each. Each must be at least 2 seconds. All reference videos together may total up to 15 seconds.
hingga 3 berkas; durasi klip 2 hingga 15 dtk
reference_audios
daftar ID aset audio
Opsional
-
Up to 3 clips with an image or video reference. Each must be at least 2 seconds. All reference audio together may total up to 15 seconds.
hingga 3 berkas; durasi klip 2 hingga 15 dtk
duration
integer
Opsional
5
rentang 4 sampai 15; langkah 1
aspect_ratio
salah satu dari
Opsional
"9:16"
"auto"Auto
"1:1"
"4:3"
"3:4"
"16:9"
"9:16"
"21:9"
resolution
salah satu dari
Opsional
"720p"
"480p"
"720p"
audio
boolean
Opsional
true
Permintaan minimal
reference_videos: Replace with the asset ID of your own uploaded video (upload it with POST /v1/assets/uploads first).
# Media IDs below are placeholders: replace them with your own uploaded assets before running this.
curl -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "seedance-2.0-mini",
"mode": "v2v",
"params": {
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light",
"reference_videos": [
"asset:00000000-0000-4000-8000-000000000001"
]
}
}'
Permintaan dengan parameter opsional
images_list: Replace with the asset ID of your own uploaded image (upload it with POST /v1/assets/uploads first). Accepted types: image/jpeg, image/png, image/webp.
images_list: Replace with the asset ID of your own uploaded image (upload it with POST /v1/assets/uploads first). Accepted types: image/jpeg, image/png, image/webp.
reference_videos: Replace with the asset ID of your own uploaded video (upload it with POST /v1/assets/uploads first).
reference_videos: Replace with the asset ID of your own uploaded video (upload it with POST /v1/assets/uploads first).
reference_audios: Replace with the asset ID of your own uploaded audio (upload it with POST /v1/assets/uploads first).
reference_audios: Replace with the asset ID of your own uploaded audio (upload it with POST /v1/assets/uploads first).
# Media IDs below are placeholders: replace them with your own uploaded assets before running this.
curl -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "seedance-2.0-mini",
"mode": "v2v",
"params": {
"audio": true,
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light",
"duration": 5,
"resolution": "720p",
"images_list": [
"asset:00000000-0000-4000-8000-000000000001",
"asset:00000000-0000-4000-8000-000000000002"
],
"aspect_ratio": "9:16",
"reference_audios": [
"asset:00000000-0000-4000-8000-000000000005",
"asset:00000000-0000-4000-8000-000000000006"
],
"reference_videos": [
"asset:00000000-0000-4000-8000-000000000003",
"asset:00000000-0000-4000-8000-000000000004"
]
}
}'
Kirim permintaan ke POST /v1/media/generate. Server membalas 202 dengan task_id. Polling GET /v1/media/tasks/{task_id} setiap 5 detik sampai is_final bernilai true: statusnya lalu succeeded, failed, atau cancelled dan task yang sama memuat hasil (outputs) atau galat (error_code dan error_message). Mengirim ulang dengan Idempotency-Key yang sama mengembalikan task asli. ID dan URL pada respons hanya ilustrasi.
# Needs curl and jq.
# 1. Submit. The response is 202 with task_id, state and credits_held.
ID=$(curl -s -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "seedance-2.0-mini",
"mode": "t2v",
"params": {
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light"
}
}' | jq -r .task_id)
echo "task: $ID"
# 2. Poll every 5 seconds until is_final is true (state is then succeeded, failed or cancelled).
while true; do
TASK=$(curl -s "https://genjutsu.top/v1/media/tasks/$ID" -H "Authorization: Bearer $GENJUTSU_API_KEY")
echo "state: $(echo "$TASK" | jq -r .state)"
[ "$(echo "$TASK" | jq -r .is_final)" = "true" ] && break
sleep 5
done
# 3. The final task carries the result: outputs[].url when succeeded, error_code and error_message when failed.
echo "$TASK" | jq '{state, outputs, error_code, error_message, credits}'
Galat memakai kode huruf kecil dan menyertakan retryable serta request_id. Pembatalan yang tertunda bukan pembatalan: jika model tetap selesai, task masih bisa ditagih. Lihat referensi API untuk pembatalan.
API gaya resource (alternatif)
POST /v1/generations menerima nilai yang sama di inputs (dan quote_id opsional) dan membalas dengan resource generation: polling GET /v1/generations/{id} berdasarkan id sampai status-nya succeeded, failed, atau cancelled, lalu ambil GET /v1/generations/{id}/result. Kode galatnya HURUF BESAR. Integrasi baru sebaiknya memakai API media di atas; keduanya memakai alur dan harga yang sama.
# Needs curl and jq.
# 1. Submit. The response is 202 with the generation id.
ID=$(curl -s -X POST "https://genjutsu.top/v1/generations" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"mode": "t2v",
"model": "seedance-2.0-mini",
"inputs": {
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light"
}
}' | jq -r .id)
echo "generation: $ID"
# 2. Poll until the status is succeeded, failed or cancelled.
while true; do
STATUS=$(curl -s "https://genjutsu.top/v1/generations/$ID" -H "Authorization: Bearer $GENJUTSU_API_KEY" | jq -r .status)
echo "status: $STATUS"
case "$STATUS" in succeeded|failed|cancelled) break ;; esac
sleep 2
done
# 3. Fetch the result (only available once the status is succeeded).
curl -s "https://genjutsu.top/v1/generations/$ID/result" -H "Authorization: Bearer $GENJUTSU_API_KEY"