imagestringจำเป็น
Image to use as the first frame of the video. Max file size: 10.0MB, Min width: 300px, Min height: 300px, Min aspect ratio: 0.40, Max aspect ratio: 2.50, Timeout: 20.0s
kwaivgi/kling-video/3.0/omni/pro/image-to-videoKling 3.0 Omni Pro Image to Video by Kuaishou animates a start image, optionally toward an end image, into a 3-10 second 1080p video.
ลองใช้โมเดล
PNG, JPEG, WebP หรือ GIF · สูงสุด 20 MiB
PNG, JPEG, WebP หรือ GIF · สูงสุด 20 MiB
ต้องการทำอะไรต่อ
เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
{
"image": "https://static.sandbase.ai/examples/7f4e8da8-e302-4874-b924-fdaf5f2cd499/input/60106a2d-39fe-470a-b171-aec331266b39.png",
"prompt": "Create a magical timelapse transition. The snow melts rapidly to reveal green grass, and the tree branches burst into bloom with pink flowers in real-time. The lighting shifts from cold winter light to warm spring sunshine. The camera pushes in slowly towards the tree. Disney-style magical transformation, cinematic, 8k."
}{
"duration": 5,
"image": "https://static.sandbase.ai/examples/16ef95fa-0659-4423-a63f-717b089e43f6/input/ba2a5e9f-ba44-4ca3-9257-98753cf5a1ba.png",
"prompt": "One continuous shot, no cuts. The camera trucks slowly to the left alongside the boat while the boat glides steadily forward to the right, leaving a long silver wake that spreads across the water. Banks of mist roll slowly across the water and drift past the mountain walls. Gentle ripples move across the whole lake surface. Nothing enters or leaves the frame; the empty fog on the left stays empty; no text. Calm, steady speed."
}ความชอบของมนุษย์
คะแนน Elo จากการโหวตแบบจับคู่ทีละสองแบบโดยไม่เห็นชื่อรุ่น เปรียบเทียบกับโมเดลภาพและวิดีโออื่น ๆ
อันดับอ้างอิงจาก Artificial Analysis Arena
Arena แปลงภาพเป็นวิดีโอ (ไม่มีเสียง): ผู้ใช้เลือกคลิปที่ดีกว่าจากคลิปสองชิ้นที่แอนิเมตจากภาพเดียวกัน โดยไม่เห็นชื่อโมเดล; ไม่พิจารณาเสียง
วัดอีกชื่อว่า Kling 3.0 Omni 1080p (Pro): Kling O3 Pro Image to Video
Kling 3.0 Omni Pro image-to-video: animate a first frame, optionally toward an end frame, over 3–10 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–10 | 5 | Output length in seconds. |
$0.112 per output second.
| Output | Price |
|---|---|
| 3s | $0.336 |
| 5s (default) | $0.56 |
| 10s | $1.12 |
Failed runs are not charged.
Other Kling 3.0 Omni endpoints: kwaivgi/kling-video/3.0/omni/pro/reference-to-video, kwaivgi/kling-video/3.0/omni/pro/video-to-video/edit.
เริ่มสร้าง
ส่งโมเดลนี้ผ่าน 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/3.0/omni/pro/image-to-video",
"image": "https://static.sandbase.ai/examples/kwaivgi/kling-video/omni/pro/image-to-video/input_image_0.png",
"prompt": "Create a magical timelapse transition. The snow melts rapidly to reveal green grass, and the tree branches burst into bloom with pink flowers in real-time. The lighting shifts from cold winter light to warm spring sunshine. The camera pushes in slowly towards the tree. Disney-style magical transformation, cinematic, 8k.",
"duration": 5,
"end_image": "https://static.sandbase.ai/examples/kwaivgi/kling-video/omni/pro/image-to-video/input_end_image_1.png"
}
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"สร้าง SandBase API key และตั้งค่าไว้ในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอทั้งหมดใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์หรือคอมมิตลง repository
POST ไปที่ /v1/run ด้วย model ID นี้และอินพุตของมัน ตัวอย่างคำขอด้านบนมีทั้งการส่งและการ polling
ใช้ run ID ที่ส่งกลับมาเพื่อ polling จนกว่าสถานะจะเป็น completed, failed หรือ timeout ให้อ่าน output หลังจาก completed เท่านั้น
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"ส่ง URL ไฟล์ที่เข้าถึงได้สาธารณะในช่อง image, video หรือ audio ของโมเดล รูปแบบและข้อจำกัดที่รองรับแสดงอยู่ข้างแต่ละอินพุตใน Playground
ใช้ตัวควบคุม upload หรือ replace ในช่องรูปภาพที่รองรับใน Playground ช่อง URL ของวิดีโอรองรับวิดีโอ driving ที่โฮสต์ไว้; ไม่ได้หมายความว่าสามารถอัปโหลดวิดีโอได้
imagestringจำเป็นImage to use as the first frame of the video. Max file size: 10.0MB, Min width: 300px, Min height: 300px, Min aspect ratio: 0.40, Max aspect ratio: 2.50, Timeout: 20.0s
promptstringจำเป็นUse @Image1 to reference the start frame, @Image2 to reference the end frame.
durationintegerVideo duration in seconds.
ค่าเริ่มต้น: 5
ค่าที่เป็นไปได้: 3, 4, 5, 6, 7, 8, 9, 10
end_imagestringImage to use as the last frame of the video.
{
"model": "kwaivgi/kling-video/3.0/omni/pro/image-to-video",
"image": "https://static.sandbase.ai/examples/kwaivgi/kling-video/omni/pro/image-to-video/input_image_0.png",
"prompt": "Create a magical timelapse transition. The snow melts rapidly to reveal green grass, and the tree branches burst into bloom with pink flowers in real-time. The lighting shifts from cold winter light to warm spring sunshine. The camera pushes in slowly towards the tree. Disney-style magical transformation, cinematic, 8k.",
"duration": 5,
"end_image": "https://static.sandbase.ai/examples/kwaivgi/kling-video/omni/pro/image-to-video/input_end_image_1.png"
}run ที่เสร็จสมบูรณ์จะแสดงผลลัพธ์ใน output ต่อไปนี้เป็นตัวอย่างที่บันทึกไว้ของโมเดล ไม่ใช่การสร้างใหม่
[
{
"poster": "https://static.sandbase.ai/examples/posters/5fd40be467d3bfdf999f.jpg",
"source": "Kling AI official schema mirror",
"source_url": "https://kling.ai/document-api/guides/get-started/overview",
"url": "https://static.sandbase.ai/examples/7f4e8da8-e302-4874-b924-fdaf5f2cd499/output/c5dd0557-0eac-4ac3-b3e2-7004b369ced9.mp4"
}
]