imagestringwajib
URL of the start frame image.
kwaivgi/kling-video/o3/standard/image-to-videoKling O3 Standard Image to Video by Kuaishou animates a start image, optionally toward an end image, into a 3-15 second 720p video with optional native audio.
Coba model ini
PNG, JPEG, WebP, atau GIF ยท maksimum 20 MiB
PNG, JPEG, WebP, atau GIF ยท maksimum 20 MiB
Apa yang ingin Anda lakukan selanjutnya?
Pilih contoh untuk memuat input dan hasilnya ke playground.
{
"image": "https://static.sandbase.ai/examples/182211e7-4369-4ad2-ae63-0e50f87b03d3/input/b6fc0b61-31c0-4922-aea3-b5231ea1937c.png",
"prompt": "The character walks forward slowly, with the camera following from behind."
}Kling O3 Standard image-to-video, the cost-efficient O3 tier. image anchors the first frame and an optional end_image sets the last; the prompt directs action and camera over 3โ15 seconds.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | โ | Up to 2,500 characters. |
image | image URL, required | โ | First frame. JPEG, PNG, or WebP URL. |
end_image | image URL | โ | Optional last frame. |
duration | 3โ15 | 5 | Output length in seconds. |
generate_audio | boolean | false | Generate native audio with the clip. |
multi_prompt | object[] | โ | Optional list of shots, each with its own prompt and duration. |
shot_type | customize / intelligent | customize | customize follows your multi_prompt shot list; intelligent lets the model plan the cuts. |
You pay for output seconds: $0.084 without audio and $0.112 with generate_audio.
| Output | Without audio | With audio |
|---|---|---|
| 3s | $0.252 | $0.336 |
| 5s (default) | $0.42 | $0.56 |
| 10s | $0.84 | $1.12 |
| 15s | $1.26 | $1.68 |
Failed runs are not charged.
Other Kling O3 Standard endpoints and tiers: kwaivgi/kling-video/o3/standard/text-to-video, kwaivgi/kling-video/o3/standard/reference-to-video, kwaivgi/kling-video/o3/standard/edit, kwaivgi/kling-video/o3/standard/video-to-video, kwaivgi/kling-video/o3/pro/image-to-video, kwaivgi/kling-video/o3/4k/image-to-video.
Mulai membangun
Kirim model ini melalui SandBase Unified Run API.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "kwaivgi/kling-video/o3/standard/image-to-video",
"image": "https://static.sandbase.ai/examples/mirrored/0ff4703452ec-8ABMp4n9rh3kfD2Rq8fHd_start_frame.png",
"prompt": "The character walks forward slowly, with the camera following from behind.",
"duration": 10,
"end_image": "https://static.sandbase.ai/examples/alibaba/qwen-image-edit-plus-lora-gallery/add-background/output_url_1.png",
"shot_type": "customize",
"generate_audio": false
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Buat SandBase API key dan atur di environment server Anda. Semua permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key di server. Jangan tampilkan di kode browser atau commit ke repository.
POST ke /v1/run dengan ID model ini dan inputnya. Contoh permintaan di atas mencakup pengiriman dan polling.
Gunakan run ID yang dikembalikan untuk polling sampai status completed, failed, atau timeout. Baca output hanya setelah completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Kirim URL file yang dapat diakses publik di field image, video, atau audio model. Format dan batas yang didukung ditampilkan di samping setiap input Playground.
Gunakan kontrol upload atau replace pada field gambar yang didukung di Playground. Field URL video menerima video driving yang di-host; ini tidak berarti dukungan upload video.
imagestringwajibURL of the start frame image.
promptstringwajibText prompt for video generation. Either prompt or multi_prompt must be provided, but not both.
durationintegerVideo duration in seconds (3-15s).
Default: 5
Nilai yang mungkin: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
end_imagestringURL of the end frame image (optional).
shot_typestringThe type of multi-shot video generation. 'intelligent' lets the model automatically determine shot structure.
Default: "customize"
Nilai yang mungkin: "customize", "intelligent"
multi_promptarrayList of prompts for multi-shot video generation.
generate_audiobooleanWhether to generate native audio for the video.
Default: false
{
"model": "kwaivgi/kling-video/o3/standard/image-to-video",
"image": "https://static.sandbase.ai/examples/mirrored/0ff4703452ec-8ABMp4n9rh3kfD2Rq8fHd_start_frame.png",
"prompt": "The character walks forward slowly, with the camera following from behind.",
"duration": 10,
"end_image": "https://static.sandbase.ai/examples/alibaba/qwen-image-edit-plus-lora-gallery/add-background/output_url_1.png",
"shot_type": "customize",
"generate_audio": false
}Run yang selesai menampilkan hasilnya di output. Berikut adalah contoh tersimpan model ini, bukan generasi baru.
[
{
"poster": "https://static.sandbase.ai/examples/posters/d5c31361d3dbd34606cd.jpg",
"source": "Kling AI official schema mirror",
"source_url": "https://kling.ai/document-api/guides/get-started/overview",
"url": "https://static.sandbase.ai/examples/182211e7-4369-4ad2-ae63-0e50f87b03d3/output/e82c1a7e-88f3-4214-b5d0-ab948eab83c7.mp4"
}
]