@Image1, @Image2, …) and structured element references (@Element1, @Element2, …) for character/object consistency across the edit.
Model name: kling-video-o3-pro-video-to-video-edit
Endpoint
/ai/queue instead for long-running jobs, so that you don’t have long running http requests.
Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | yes | — | "kling-video-o3-pro-video-to-video-edit" |
prompt | string | yes | — | Text description of what to generate or how to edit the video. |
input_video | string (URI) | yes | — | URL of the source video to edit. |
input_image | array of URIs | no | — | Reference images for style/appearance. Use @Image1, @Image2, etc. in the prompt to refer to them. |
elements | array of objects | no | — | Structured element references for characters/objects. See elements below. |
keep_audio | boolean | no | false | Whether to keep the original audio from the source video. |
response_format | string | no | "url" | "url" returns a hosted URL. "b64_json" returns base64-encoded video bytes inline. |
target_namespace | string | no | current user | Namespace to save results and bill to. Can be an organization name. |
elements
Array of element objects for character/object reference. Use@Element1, @Element2, etc. in prompts.
| Field | Type | Required | Description |
|---|---|---|---|
frontal_image_url | string (URI) | yes | Front view of the reference object or character. |
reference_image_urls | array of URIs | no | Additional angles. Max 3 images per element. |
Examples
Basic video edit
Edit with reference images
Edit with elements and keep audio
Response (response_format: "url")
Response (response_format: "b64_json")
Using with /ai/queue
Recommended for video editing. Returns immediately, processes in the background.Enqueue
Poll
count of 0 means all generations are complete.
Cancel
Errors
| Error | Cause | Fix |
|---|---|---|
Field required | Missing prompt or input_video | Both are required |
Invalid URL | Malformed input_video URL | Provide a valid video URL |
num_generations must be an integer between 1 and 4 | Invalid count (via /ai/queue) | Use 1–4 |
Other Kling Models
| Model | Input | Use Case | Cost/sec |
|---|---|---|---|
kling-video-v2-6-pro-text-to-video | Text only | Simple text-to-video | $0.070 |
kling-video-v2-6-pro-image-to-video | Image | Animate a single image | $0.070 |
kling-video-o3-pro-image-to-video | Image + text | Higher quality image animation | $0.224 |
kling-video-o3-pro-reference-to-video | Images + text | Reference-conditioned, multi-shot | $0.224 |
kling-video-o3-pro-video-to-video-edit | Video + text | Edit existing video | $0.336 |
kling-video-v3-pro-motion-control | Text + image + video | Camera/motion control | $0.168 |