imagestringobrigatório
URL of the start frame image.
kwaivgi/kling-video/o3/pro/image-to-videoKling O3 Pro Image to Video by Kuaishou animates a start image, optionally toward an end image, into a 3-15 second 1080p video with optional native audio.
Testar o modelo
PNG, JPEG, WebP ou GIF · máximo de 20 MiB
PNG, JPEG, WebP ou GIF · máximo de 20 MiB
O que você gostaria de fazer em seguida?
Selecione um exemplo para carregar as entradas e o resultado no playground.
{
"image": "https://static.sandbase.ai/examples/c6322fde-5914-45ea-9f6e-c5fe4046e468/input/75bc0aa2-3ce0-4abc-bf6a-8aa52557b53d.png",
"prompt": "The character walks forward slowly, with the camera following from behind."
}Preferência humana
Classificações Elo de votos cegos lado a lado, comparadas com outros modelos de imagem e vídeo.
Classificações obtidas de Artificial Analysis Arena
Arena de imagem para vídeo (sem áudio): as pessoas escolhem o melhor de dois clipes animados a partir da mesma imagem, sem ver os nomes dos modelos; o áudio não é avaliado.
Também medido como Kling 3.0 Omni 1080p (Pro): Kling 3.0 Omni Pro Image to Video
Kling O3 Pro image-to-video, the quality-first 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.112 without audio and $0.14 with generate_audio.
| Output | Without audio | With audio |
|---|---|---|
| 3s | $0.336 | $0.42 |
| 5s (default) | $0.56 | $0.70 |
| 10s | $1.12 | $1.40 |
| 15s | $1.68 | $2.10 |
Failed runs are not charged.
Other Kling O3 Pro endpoints and tiers: kwaivgi/kling-video/o3/pro/text-to-video, kwaivgi/kling-video/o3/pro/reference-to-video, kwaivgi/kling-video/o3/pro/edit, kwaivgi/kling-video/o3/pro/video-to-video, kwaivgi/kling-video/o3/standard/image-to-video, kwaivgi/kling-video/o3/4k/image-to-video.
Comece a construir
Envie este modelo pela 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/pro/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"Crie uma chave da API SandBase e defina-a no ambiente do seu servidor. Todas as requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha a chave no servidor. Não a exponha em código do navegador nem a comite em um repositório.
Faça POST para /v1/run com este ID de modelo e suas entradas. O exemplo de requisição acima inclui envio e polling.
Use o ID de execução retornado para fazer polling até que o status seja completed, failed ou timeout. Leia a saída somente após completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passe uma URL de arquivo acessível publicamente no campo de imagem, vídeo ou áudio do modelo. Os formatos e limites suportados são mostrados ao lado de cada entrada do Playground.
Use o controle de upload ou substituição nos campos de imagem suportados no Playground. Campos de URL de vídeo aceitam um vídeo de condução hospedado; isso não implica suporte a upload de vídeo.
imagestringobrigatórioURL of the start frame image.
promptstringobrigatórioText prompt for video generation. Either prompt or multi_prompt must be provided, but not both.
durationintegerVideo duration in seconds (3-15s).
Padrão: 5
Valores possíveis: 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.
Padrão: "customize"
Valores possíveis: "customize", "intelligent"
multi_promptarrayList of prompts for multi-shot video generation.
generate_audiobooleanWhether to generate native audio for the video.
Padrão: false
{
"model": "kwaivgi/kling-video/o3/pro/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
}Uma execução concluída expõe seu resultado em output. O texto a seguir é o exemplo salvo do modelo, não uma nova geração.
[
{
"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/c6322fde-5914-45ea-9f6e-c5fe4046e468/output/eafecc38-d655-4aed-8c07-9cb64794c1ab.mp4"
}
]