WAN 3.0
Ringkasan
Pengenal model: wan-3-0 · Keluaran: video · Mode: Image to video
Autentikasi dan endpoint
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
Mode dan parameter
Image to video i2v
| Parameter | Tipe | Wajib | Default | Detail |
|---|---|---|---|---|
prompt | string | Wajib | - | Describe the movement you want to see. |
images_list | daftar ID aset image | Wajib | - | Add 1–10 reference images. |
audios_list | daftar ID aset audio | Opsional | - | Add up to 5 audio clips. |
videos_list | daftar ID aset video | Opsional | - | Optional. Add up to 10 clips, each 15 seconds or less. Add a reference video for a 16-second output. Leave this empty for a 29-second output. |
aspect_ratio | salah satu dari |
Permintaan minimal
# 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": "wan-3-0",
"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
# 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": "wan-3-0",
"mode": "i2v",
"params": {
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light",
"Duration": 16,
"audios_list": [
"asset:00000000-0000-4000-8000-000000000003",
"asset:00000000-0000-4000-8000-000000000004"
],
"images_list": [
"asset:00000000-0000-4000-8000-000000000001",
"asset:00000000-0000-4000-8000-000000000002"
],
"videos_list": [
"asset:00000000-0000-4000-8000-000000000005",
"asset:00000000-0000-4000-8000-000000000006"
],
"aspect_ratio": "16:9"
}
}'Siklus tugas
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.
# Media IDs below are placeholders: replace them with your own uploaded assets before running this.
# 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": "wan-3-0",
"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"
]
}
}' | 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}'Harga
Image to video
| Opsi | Total |
|---|---|
| Semua opsi | 12.000000 kredit per permintaan |
Untuk total pasti, gunakan Studio atau POST /v1/quotes.
Versi dan catatan
Versi dokumentasi 7, diterbitkan 2026-11-27.