Docs / video / Vidu Q4 Image to Video
Vidu Q4 Image to Video online
Video Vidu Q4 hingga 4K dan 16 detik, dengan audio serta referensi gambar dan suara.
Rp Mulai Rp582,13 / detik
⏱ ±30–600 detik perkiraan waktu
vidu-q4/image-to-video model id
Up to 4K3–16 secondsNative audio
1 · Create a task
Kirim permintaan untuk membuat tugas generasi video. Wajib header Idempotency-Key. Saldo direservasi sebesar estimasi; task gagal tidak ditagih.
curl -X POST https://getrun.id/v1/tasks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: my-task-001" \
-H "Content-Type: application/json" \
-d '{
"model": "vidu-q4/image-to-video",
"input": {
"image_url": "https://example.com/reference.jpg"
}
}'const res = await fetch('https://getrun.id/v1/tasks', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Idempotency-Key': 'my-task-001',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "vidu-q4/image-to-video",
"input": {
"image_url": "https://example.com/reference.jpg"
}
}),
});
const task = await res.json();import requests
res = requests.post(
"https://getrun.id/v1/tasks",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Idempotency-Key": "my-task-001",
},
json={
"model": "vidu-q4/image-to-video",
"input": {
"image_url": "https://example.com/reference.jpg"
}
},
)
task = res.json()Input parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
audio |
boolean | No | true |
|
prompt |
string | No | (max 20000 chars) | — |
duration |
integer | No | (min 3, max 16) | 5 |
image_url |
string | Yes | https://example.com/reference.jpg |
|
resolution |
string | No | Opsi: 540p 720p 1080p 2k 4k |
720p |
2 · Poll the result
Ambil status tugas hingga selesai — poll tiap 2–5 detik.
Respons saat sukses:
{
"id": "task_9f2c…",
"status": "succeeded",
"model": "vidu-q4/image-to-video",
"price": {
"currency": "IDR",
"estimated": 1746,
"reserved": 1746,
"final": 1746
},
"output": {
"urls": [
"https://storage.getcore.id/outputs/task_9f2c…/0.mp4"
],
"expires_at": "(7 hari setelah selesai)"
}
}
Status values
| Status | Keterangan |
|---|---|
queued | Tugas sedang diantrikan. |
processing | Sedang diproses. |
succeeded | Berhasil. |
failed | Gagal — lihat error detail, tidak ditagih. |
video/mp4, dilayani dari CDN kami dan berlaku 7 hari — salin ke penyimpananmu sendiri untuk jangka panjang.Best practices
Bila generation gagal, task berstatus failed dengan error.code ternormalisasi (mis. moderation_blocked, upstream_error) dan price.final = 0 — saldo dikembalikan otomatis. Daftar lengkap kode error ada di Error handling. Selalu kirim Idempotency-Key unik per tugas agar retry aman.
Coba tanpa kode: jalankan model ini langsung dari Playground atau lihat di API Market.
