imagestringzorunlu
Image to use as the first frame of the video.
kwaivgi/kling-video/o3/standard/reference-to-videoKling O3 Standard Reference to Video by Kuaishou generates a 3-15 second 720p video that keeps characters and objects from reference images consistent with optional native audio.
Modeli deneyin
PNG, JPEG, WebP veya GIF · en fazla 20 MiB
PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 6
PNG, JPEG, WebP veya GIF · en fazla 20 MiB
Sırada ne yapmak istersiniz?
Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
{
"image": "https://static.sandbase.ai/examples/fb9a6cca-db34-4948-8787-c06984fb52dd/input/b747bb75-d99a-46be-a52e-a7e16e8e1a5f.png",
"prompt": "@Element1 and @Element2 is having dinner at this table on @Image1"
}Kling O3 Standard reference-to-video, the cost-efficient O3 tier. A start frame plus up to 6 reference images keep characters, objects, and style consistent; refer to them as @Image1, @Image2 in the prompt.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 2,500 characters. |
image | image URL, required | — | Start frame. JPEG, PNG, or WebP URL. |
images | image URL[] (≤6) | — | Reference images, referred to as @Image1, @Image2, … in the prompt. |
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. |
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. |
aspect_ratio | 16:9 / 9:16 / 1:1 | 16:9 | Output frame shape. |
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/image-to-video, kwaivgi/kling-video/o3/standard/edit, kwaivgi/kling-video/o3/standard/video-to-video, kwaivgi/kling-video/o3/pro/reference-to-video, kwaivgi/kling-video/o3/4k/reference-to-video.
Geliştirmeye başlayın
Bu modeli SandBase Unified Run API üzerinden gönderin.
# 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/reference-to-video",
"image": "https://static.sandbase.ai/examples/alibaba/wan/2.2/speech-to-video/input_image_0.png",
"images": [
"https://static.sandbase.ai/examples/alibaba/wan/2.2/speech-to-video/input_image_0.png"
],
"prompt": "@Element1 and @Element2 is having dinner at this table on @Image1",
"duration": 8,
"shot_type": "customize",
"aspect_ratio": "16:9",
"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"Bir SandBase API anahtarı oluşturun ve sunucu ortamınıza ayarlayın. Tüm istekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın veya bir depoya commit etmeyin.
Bu model kimliği ve girdileriyle /v1/run adresine POST gönderin. Yukarıdaki istek örneği gönderme ve yoklamayı içerir.
Durum completed, failed veya timeout olana kadar verilen run ID ile yoklama yapın. Çıktıyı yalnızca completed olduktan sonra okuyun.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Modelin image, video veya audio alanına herkese açık erişilebilir bir dosya URL'si verin. Desteklenen formatlar ve sınırlar her Playground girişinin yanında gösterilir.
Playground'daki desteklenen image alanlarında yükleme veya değiştirme kontrolünü kullanın. Video URL alanları barındırılan bir sürüş videosu kabul eder; video yükleme desteği anlamına gelmez.
imagestringzorunluImage to use as the first frame of the video.
imagesarrayAdditional reference image URLs. Together with `image`, at most 7 images are accepted; do not repeat `image` in this list.
promptstringzorunluText prompt for video generation. Either prompt or multi_prompt must be provided, but not both.
durationintegerVideo duration in seconds (3-15s).
Varsayılan: 5
Olası değerler: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
end_imagestringImage to use as the last frame of the video.
shot_typestringThe type of multi-shot video generation. 'intelligent' lets the model automatically determine shot structure.
Varsayılan: "customize"
Olası değerler: "customize", "intelligent"
aspect_ratiostringThe aspect ratio of the generated image.
Varsayılan: "16:9"
Olası değerler: "16:9", "9:16", "1:1"
multi_promptarrayList of prompts for multi-shot video generation.
generate_audiobooleanWhether to generate native audio for the video.
Varsayılan: false
{
"model": "kwaivgi/kling-video/o3/standard/reference-to-video",
"image": "https://static.sandbase.ai/examples/alibaba/wan/2.2/speech-to-video/input_image_0.png",
"images": [
"https://static.sandbase.ai/examples/alibaba/wan/2.2/speech-to-video/input_image_0.png"
],
"prompt": "@Element1 and @Element2 is having dinner at this table on @Image1",
"duration": 8,
"shot_type": "customize",
"aspect_ratio": "16:9",
"generate_audio": false
}Tamamlanan bir run, sonucunu output içinde gösterir. Aşağıdaki, modelin kaydedilmiş örneğidir; yeni bir üretim değildir.
[
{
"poster": "https://static.sandbase.ai/examples/posters/c7c574950d973894d1a2.jpg",
"source": "Kling AI official schema mirror",
"source_url": "https://kling.ai/document-api/guides/get-started/overview",
"url": "https://static.sandbase.ai/examples/fb9a6cca-db34-4948-8787-c06984fb52dd/output/18d6ad48-7049-44bf-bbf9-caca372b73a9.mp4"
}
]