Docs / video / Kling 3.0 Omni Transformation
Kling 3.0 Omni Transformation online
Restyle an existing clip with Kling 3.0 Omni — the motion of the source video is preserved while the look is rebuilt from your prompt.
Rp Rp1.617 / detik video sumber (720p)
kling-3.0-omni/transformation model id
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": "kling-3.0-omni/transformation",
"input": {
"prompt": "Transform the daytime scene into night, changing all lighting, shadows, reflections, and ambient light to realistic nighttime illumination, and add a cat naturally throughout the scene.",
"resolution": "720p",
"video_urls": [
"https://example.com/input.jpg"
],
"aspect_ratio": "16:9"
}
}'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": "kling-3.0-omni/transformation",
"input": {
"prompt": "Transform the daytime scene into night, changing all lighting, shadows, reflections, and ambient light to realistic nighttime illumination, and add a cat naturally throughout the scene.",
"resolution": "720p",
"video_urls": [
"https://example.com/input.jpg"
],
"aspect_ratio": "16:9"
}
}),
});
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": "kling-3.0-omni/transformation",
"input": {
"prompt": "Transform the daytime scene into night, changing all lighting, shadows, reflections, and ambient light to realistic nighttime illumination, and add a cat naturally throughout the scene.",
"resolution": "720p",
"video_urls": [
"https://example.com/input.jpg"
],
"aspect_ratio": "16:9"
}
},
)
task = res.json()Input parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
audio |
boolean | No | The video contain audio | false |
prompt |
string | No | Textarea description (max 3072 chars) | Transform the daytime scene into night, changi |
image_urls |
array | No | The reference image URL array can contain a maximum of 4 images. (array of file URLs) | — |
resolution |
string | No | Resolution of the generated video Opsi: 720p 1080p 4k |
720p |
video_urls |
array | Yes | The source video URL array must contain exactly one video. (array of file URLs) | https://example.com/input.jpg |
aspect_ratio |
string | No | "Auto" mode is required for video-only uploads; it is unavailable when both video and images are provided. Opsi: 16:9 9:16 1:1 auto |
16:9 |
2 · Poll the result
Ambil status tugas hingga selesai — poll tiap 2–5 detik.
Respons saat sukses:
{
"id": "task_9f2c…",
"status": "succeeded",
"model": "kling-3.0-omni/transformation",
"price": {
"currency": "IDR",
"estimated": 8085,
"reserved": 8085,
"final": 8085
},
"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.
