videostringआवश्यक
Reference video URL. Only .mp4/.mov formats, 3-10s duration, 720-2160px resolution, max 200MB.
kwaivgi/kling-video/o3/standard/video-to-videoKling O3 Standard Video Reference by Kuaishou generates a new 720p shot that follows the style and camera motion of a reference video, optionally guided by reference images.
model को आज़माएँ
PNG, JPEG, WebP, or GIF · 20 MiB maximum each
आप आगे क्या करना चाहेंगे?
प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
{
"prompt": "Replace both character with @Element1 and @Element2",
"video": "https://static.sandbase.ai/examples/3578d398-d3ec-4c4a-8a7a-d5decf3638f2/input/8dd9cbc1-5dd3-4a80-86c7-ba9a597b9c81.mp4"
}Kling O3 Standard video reference: generate new shots that follow the motion and camera language of a reference video, while the prompt and optional reference images set the new scene and look.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 2,500 characters. |
images | image URL[] | — | Reference images, referred to as @Image1, @Image2, … in the prompt. |
video | video URL, required | — | Reference video, @Video1 in the prompt. |
duration | 3–15 | — | Output length; omit to match the reference. |
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. |
aspect_ratio | 16:9 / 9:16 / 1:1 | 16:9 | Output frame shape. |
You pay $0.126 per output second. Without duration the output matches the reference length; the quote assumes 5 seconds.
| Output | Price |
|---|---|
| 3s | $0.378 |
| 5s | $0.63 |
| 10s | $1.26 |
| 15s | $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/edit, kwaivgi/kling-video/o3/pro/video-to-video, kwaivgi/kling-video/o3/4k/video-to-video.
बिल्डिंग शुरू करें
इस model को 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/standard/video-to-video",
"video": "https://static.sandbase.ai/examples/kwaivgi/mirrored/example_inputs/kling-o3/standard-v2v-reference/video_reference.mp4",
"images": [
null
],
"prompt": "Replace both character with @Element1 and @Element2",
"duration": "5",
"shot_type": "customize",
"keep_audio": false,
"aspect_ratio": "16:9"
}
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 key बनाएँ और इसे अपने server environment में सेट करें। सभी requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"Key को सर्वर पर रखें। इसे browser code में expose न करें या repository में commit न करें।
इस model ID और इसके inputs के साथ /v1/run पर POST करें। ऊपर दिया गया request example submission और polling दोनों शामिल करता है।
Completed, failed या timeout होने तक poll करने के लिए लौटाए गए run ID का उपयोग करें। Output केवल completed होने के बाद पढ़ें।
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Model के image, video या audio field में सार्वजनिक रूप से उपलब्ध फ़ाइल URL पास करें। समर्थित formats और limits प्रत्येक Playground input के पास दिखाए गए हैं।
Playground में समर्थित image fields पर upload या replace control का उपयोग करें। Video URL fields hosted driving video स्वीकार करते हैं; इससे video-upload support का संकेत नहीं मिलता।
videostringआवश्यकReference 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.
promptstringआवश्यकText prompt for video generation. Reference video as @Video1.
durationintegerVideo duration in seconds (3-15s for reference video).
संभावित मान: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
shot_typestringThe type of multi-shot video generation.
डिफ़ॉल्ट: "customize"
keep_audiobooleanWhether to keep the original audio from the reference video.
डिफ़ॉल्ट: true
aspect_ratiostringThe aspect ratio of the generated image.
डिफ़ॉल्ट: "16:9"
संभावित मान: "16:9", "9:16", "1:1"
{
"model": "kwaivgi/kling-video/o3/standard/video-to-video",
"video": "https://static.sandbase.ai/examples/kwaivgi/mirrored/example_inputs/kling-o3/standard-v2v-reference/video_reference.mp4",
"images": [
null
],
"prompt": "Replace both character with @Element1 and @Element2",
"duration": "5",
"shot_type": "customize",
"keep_audio": false,
"aspect_ratio": "16:9"
}पूरा हुआ run अपना परिणाम output में दिखाता है। नीचे दिया गया model का सेव किया हुआ example है, नई generation नहीं।
[
{
"poster": "https://static.sandbase.ai/examples/posters/9b4254a09f464c3cdf01.jpg",
"source": "Kling AI official schema mirror",
"source_url": "https://kling.ai/document-api/guides/get-started/overview",
"url": "https://static.sandbase.ai/examples/3578d398-d3ec-4c4a-8a7a-d5decf3638f2/output/9d9ee5a7-9bb9-465b-95d7-9a61cc6f94af.mp4"
}
]