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 image-to-video (без звука): люди выбирают лучший из двух клипов, анимированных из одного и того же изображения, не видя названий моделей; звук не оценивается.
Также измеряется как 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 и задайте его в окружении сервера. Все запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера и не коммитьте в репозиторий.
Отправьте POST на /v1/run с этим ID модели и её входными данными. Пример запроса выше включает отправку и опрос.
Используйте возвращённый ID запуска, чтобы опрашивать статус до завершения, ошибки или таймаута. Читайте вывод только после завершения.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Передайте публично доступный URL файла в поле image, video или audio модели. Поддерживаемые форматы и лимиты показаны рядом с каждым полем Playground.
Используйте управление загрузкой или заменой в поддерживаемых полях изображений в Playground. Поля URL видео принимают размещённое видео для вождения; это не означает поддержку загрузки видео.
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"
}В завершённом запуске результат доступен в 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"
}
]