imagestringobligatoire
URL of the image to be used for the video
kwaivgi/kling-video/v3/standard/image-to-videoKling V3 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.
Essayer le modèle
PNG, JPEG, WebP ou GIF · 20 MiB maximum
PNG, JPEG, WebP ou GIF · 20 MiB maximum
Que souhaitez-vous faire ensuite ?
Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.
{
"image": "https://static.sandbase.ai/examples/86a7f854-cf40-44b5-8e5c-11f9defeecb0/input/2561aa12-c21e-4d85-8d4c-a076cd6fe14a.png",
"prompt": "Camera slowly orbits around the vase. Soft light shifts across the ceramic surface. The pampas grass sways gently. Shadows move elegantly. Smooth continuous motion, premium feel."
}Kling V3 Standard image-to-video: image anchors the first frame, end_image optionally the last, with native audio and multi-shot control.
| 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 | true | Generate native audio with the clip. |
shot_type | customize / intelligent | customize | customize follows your multi_prompt shot list; intelligent lets the model plan the cuts. |
multi_prompt | object[] | — | Optional list of shots, each with its own prompt and duration. |
You pay for output seconds: $0.126 with audio (the default) and $0.084 without.
| Output | With audio | Without audio |
|---|---|---|
| 3s | $0.378 | $0.252 |
| 5s (default) | $0.63 | $0.42 |
| 10s | $1.26 | $0.84 |
| 15s | $1.89 | $1.26 |
Failed runs are not charged.
multi_prompt with one entry per shot.Other Kling V3 Standard endpoints and tiers: kwaivgi/kling-video/v3/standard/text-to-video, kwaivgi/kling-video/v3/standard/motion-control, kwaivgi/kling-video/v3/pro/image-to-video, kwaivgi/kling-video/v3/4k/image-to-video.
Commencer à construire
Soumettez ce modèle via l'API Unified Run de SandBase.
# 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/v3/standard/image-to-video",
"image": "https://static.sandbase.ai/examples/kwaivgi/mirrored/example_inputs/kling-v3/standard-i2v/start_image.png",
"prompt": "Camera slowly orbits around the vase. Soft light shifts across the ceramic surface. The pampas grass sways gently. Shadows move elegantly. Smooth continuous motion, premium feel.",
"duration": 12,
"shot_type": "customize",
"generate_audio": true
}
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"Créez une clé API SandBase et définissez-la dans l'environnement de votre serveur. Toutes les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez la clé sur votre serveur. Ne l'exposez pas dans le code du navigateur et ne la committez pas dans un dépôt.
Faites un POST sur /v1/run avec cet ID de modèle et ses entrées. L'exemple de requête ci-dessus inclut la soumission et le polling.
Utilisez l'ID d'exécution renvoyé pour interroger jusqu'à ce que le statut soit completed, failed ou timeout. Ne lisez la sortie qu'une fois completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passez une URL de fichier accessible publiquement dans le champ image, video ou audio du modèle. Les formats pris en charge et les limites sont indiqués à côté de chaque entrée du Playground.
Utilisez le contrôle upload ou replace sur les champs image pris en charge dans le Playground. Les champs URL vidéo acceptent une vidéo de conduite hébergée ; cela n'implique pas la prise en charge de l'importation vidéo.
imagestringobligatoireURL of the image to be used for the video
promptstringobligatoireText prompt for video generation. Either prompt or multi_prompt must be provided, but not both.
durationintegerThe duration of the generated video in seconds
Par défaut : 5
Valeurs possibles : 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
end_imagestringURL of the image to be used for the end of the video
shot_typestringThe type of multi-shot video generation. 'intelligent' lets the model automatically determine shot structure.
Par défaut : "customize"
Valeurs possibles : "customize", "intelligent"
multi_promptarrayList of prompts for multi-shot video generation. If provided, divides the video into multiple shots.
generate_audiobooleanWhether to generate native audio for the video. Supports Chinese and English voice output. Other languages are automatically translated to English. For English speech, use lowercase letters; for acronyms or proper nouns, use uppercase.
Par défaut : true
{
"model": "kwaivgi/kling-video/v3/standard/image-to-video",
"image": "https://static.sandbase.ai/examples/kwaivgi/mirrored/example_inputs/kling-v3/standard-i2v/start_image.png",
"prompt": "Camera slowly orbits around the vase. Soft light shifts across the ceramic surface. The pampas grass sways gently. Shadows move elegantly. Smooth continuous motion, premium feel.",
"duration": 12,
"shot_type": "customize",
"generate_audio": true
}Une exécution terminée expose son résultat dans output. Ce qui suit est l'exemple enregistré du modèle, et non une nouvelle génération.
[
{
"poster": "https://static.sandbase.ai/examples/posters/3f16b1d6b21388d82201.jpg",
"source": "Kling AI official schema mirror",
"source_url": "https://kling.ai/document-api/guides/get-started/overview",
"url": "https://static.sandbase.ai/examples/86a7f854-cf40-44b5-8e5c-11f9defeecb0/output/546e008a-7f95-4540-8348-381a52064e85.mp4"
}
]