videostringzorunlu
Reference video URL. Only .mp4/.mov formats, 3-10s duration, 720-2160px resolution, max 200MB.
kwaivgi/kling-video/o3/standard/editKling O3 Standard Video Edit by Kuaishou edits an input video from a text instruction, optionally guided by reference images, at 720p.
Modeli deneyin
PNG, JPEG, WebP, or GIF · 20 MiB maximum each
Sırada ne yapmak istersiniz?
Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
{
"prompt": "change the main character to be Popeye from @Element1, dark lighting and rain, 3d character. make him sad, with rain dropping on him, dark light on the character.",
"video": "https://static.sandbase.ai/examples/10319e3f-8e91-43bd-af68-0988dc465f92/input/344a97c1-bae1-47fd-8159-df41d2a5b1bf.mp4"
}Kling O3 Standard video edit: change an existing clip with an instruction, such as restyling it or swapping objects or people, while motion and camera are kept. Reference images can supply the new look.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 2,500 characters. |
images | image URL[] | — | Optional reference images, @Image1, @Image2, … |
video | video URL, required | — | Source clip, @Video1 in the prompt. |
shot_type | string | customize | customize follows your multi_prompt shot list; intelligent lets the model plan the cuts. |
keep_audio | boolean | true | Keep the source video's audio track. |
You pay $0.126 per second of the source video. The quote before submission assumes 15 seconds; the final charge uses the measured length.
| Source clip | Price |
|---|---|
| 3s source | $0.378 |
| 5s source | $0.63 |
| 10s source | $1.26 |
| 15s source | $1.89 |
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/reference-to-video, kwaivgi/kling-video/o3/standard/video-to-video, kwaivgi/kling-video/o3/pro/edit, kwaivgi/kling-video/o3/4k/edit.
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/edit",
"video": "https://static.sandbase.ai/examples/kwaivgi/mirrored/example_inputs/kling-o3/standard-v2v-edit/standard_video_reference.mp4",
"images": [
null
],
"prompt": "change the main character to be Popeye from @Element1, dark lighting and rain, 3d character. make him sad, with rain dropping on him, dark light on the character.",
"shot_type": "customize",
"keep_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"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.
videostringzorunluReference video URL. Only .mp4/.mov formats, 3-10s duration, 720-2160px resolution, max 200MB.
imagesarrayReference images for style/appearance. Reference in prompt as @Image1, @Image2, etc. Maximum 4 total (elements + reference images) when using video.
promptstringzorunluText prompt for video generation. Reference video as @Video1.
shot_typestringThe type of multi-shot video generation.
Varsayılan: "customize"
keep_audiobooleanWhether to keep the original audio from the reference video.
Varsayılan: true
{
"model": "kwaivgi/kling-video/o3/standard/edit",
"video": "https://static.sandbase.ai/examples/kwaivgi/mirrored/example_inputs/kling-o3/standard-v2v-edit/standard_video_reference.mp4",
"images": [
null
],
"prompt": "change the main character to be Popeye from @Element1, dark lighting and rain, 3d character. make him sad, with rain dropping on him, dark light on the character.",
"shot_type": "customize",
"keep_audio": true
}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/67accb70cd8c1601661e.jpg",
"source": "Kling AI official schema mirror",
"source_url": "https://kling.ai/document-api/guides/get-started/overview",
"url": "https://static.sandbase.ai/examples/10319e3f-8e91-43bd-af68-0988dc465f92/output/e4515f6d-db9c-4c76-8a8b-1f19865d9691.mp4"
}
]