Pricing
Compare models →Charged based on the requested duration and source video length.
Billed seconds = requested duration + the longer of the requested and source durations.
Source duration is rounded up to whole seconds, capped at 30 seconds, and used when duration is omitted. Sources shorter than 3 seconds are billed as 3 seconds. 1080p and 4K cost more than 720p.
When `duration` is omitted (output follows the source video):
Source video length (video) | 720p (resolution=720p) | 1080p (resolution=1080p) | 4K (resolution=4k) |
|---|---|---|---|
| 3 s or shorter | |||
| 5 s | |||
| 10 s | |||
| 20 s | |||
| 30 s or longer |
When you set `duration` (source video of 5 seconds):
Requested duration (duration) | 720p (resolution=720p) | 1080p (resolution=1080p) | 4K (resolution=4k) |
|---|---|---|---|
| 3 s | |||
| 5 s | |||
| 10 s | |||
| 20 s | |||
| 30 s |
Default settings (720p, duration omitted) with a 5-second source cost $0.94 $0.799 per run.
Reference images, reference audios, aspect ratio, and audio settings add no extra charge.
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | Describe the edit you want applied to the video - change a subject, the setting, the weather or the style. Refer to the video as @Video1, to reference images as @Image1, @Image2, ... and to reference audios as @Audio1, @Audio2, ... in array order. |
videoRequired | string | URL of the video to edit. The edit keeps its scene, subject and motion; 3-30 seconds, longer videos are trimmed to 30 seconds. |
images | array | Optional reference images (up to 10) for a subject, object or style to bring into the edit.Items: 0–10JSON schema{
"items": {
"type": "string"
}
} |
audios | array | Reference audios (up to 3), 5-30 seconds each. They guide the voice and sound of the video.Items: 0–3JSON schema{
"items": {
"type": "string"
}
} |
keep_original_sound | boolean | Keep the input video's own sound instead of generating new synchronized audio.Default: false |
resolution | string | Output resolution: 720p, 1080p or 4k (native 3840x2160).720p1080p4k"720p" |
duration | integer | Output duration in seconds (3-30). Follows the input video's length if not specified.xxx-empty3456789101112131415161718192021222324252627282930JSON schema{
"x-clearable": true
} |
aspect_ratio | string | Aspect ratio of the output video. Follows the input video if not specified.xxx-empty16:99:161:121:9JSON schema{
"x-clearable": true
} |
README
Kling V4.0 Video Edit
Kling V4.0 Video Edit transforms an existing video using natural-language instructions. Change a character, environment, weather, visual style, or other scene elements while using the source footage as the foundation for motion and composition.
Generate edited videos from 3 to 30 seconds at 720p, 1080p or 4K, with optional reference images, reference audios, and audio control.
Why Choose This?
- Instruction-based video editing — Describe what you want to change using natural language.
- Source-guided motion — Preserve the overall action and motion of the original footage while transforming selected elements.
- Reference image support — Add up to
10images to guide characters, objects, clothing, or visual style.
- Reference audio support — Add up to
3audios to guide the voice and sound of the edited video.
- 720p, 1080p and 4K output — Choose the resolution that fits your workflow.
- Original audio support — Generate new synchronized audio, or keep the source soundtrack.
- Flexible output — Adjust duration and aspect ratio when needed.
Parameters
| Parameter | Required | Description |
|---|---|---|
| video | Yes | Source video to edit. Supports 3–30 seconds. Longer videos are limited to the first 30 seconds. |
| prompt | Yes | Describe the changes to apply. Refer to the source video as @Video1, reference images as @Image1, @Image2, and reference audios as @Audio1, @Audio2, and so on. |
| images | No | Up to 10 reference images for subjects, objects, clothing, styles, or other visual guidance. |
| audios | No | Up to 3 reference audios, 5–30 seconds each, to guide the voice and sound of the edited video. |
| keep_original_sound | No | Keep the source video's original audio instead of generating new synchronized audio. Default: false. |
| resolution | No | Output resolution: 720p, 1080p or 4k. Default: 720p. |
| duration | No | Output duration from 3 to 30 seconds. When omitted, the output follows the source video duration. |
| aspect_ratio | No | Output aspect ratio: 16:9, 9:16, 1:1, or 21:9. When omitted, the output follows the source video. |
How to Use
- Upload a video — Provide the footage you want to edit.
- Describe the change — Explain what should be replaced, transformed, or restyled.
- Add reference images or audios optional — Use references when a specific character, object, outfit, style, voice, or sound is needed.
- Choose output settings — Set resolution, duration, or aspect ratio if needed.
- Configure audio — Generate new synchronized audio, or keep the original soundtrack.
- Submit — Generate and retrieve the edited video.
Pricing
Charged based on the requested duration and source video length.
Billed seconds = requested duration + the longer of the requested and source durations.
Source duration is rounded up to whole seconds, capped at 30 seconds, and used when duration is omitted. Sources shorter than 3 seconds are billed as 3 seconds. 1080p and 4K cost more than 720p.
When `duration` is omitted (output follows the source video):
Source video length (video) | 720p (resolution=720p) | 1080p (resolution=1080p) | 4K (resolution=4k) |
|---|---|---|---|
| 3 s or shorter | |||
| 5 s | |||
| 10 s | |||
| 20 s | |||
| 30 s or longer |
When you set `duration` (source video of 5 seconds):
Requested duration (duration) | 720p (resolution=720p) | 1080p (resolution=1080p) | 4K (resolution=4k) |
|---|---|---|---|
| 3 s | |||
| 5 s | |||
| 10 s | |||
| 20 s | |||
| 30 s |
Default settings (720p, duration omitted) with a 5-second source cost $0.94 $0.799 per run.
Reference images, reference audios, aspect ratio, and audio settings add no extra charge.
Best Use Cases
- Character replacement — Replace a person or character while keeping the original scene and motion.
- Environment changes — Move existing action into a different location or setting.
- Weather and atmosphere edits — Change lighting, weather, season, or overall mood.
- Style transformation — Restyle footage while retaining its underlying movement.
- Product and clothing replacement — Introduce specific objects, products, or outfits using reference images.
- Creative video variations — Produce alternate versions of existing footage without rebuilding the scene from scratch.
Pro Tips
- Describe the changes clearly instead of rewriting the entire source scene.
- Mention important elements that should remain consistent when necessary.
- Refer to the source video as
@Video1.
- Refer to reference images as
@Image1,@Image2, and so on according to their order.
- Refer to reference audios as
@Audio1,@Audio2, and so on according to their order.
- Explain what each reference image or audio should contribute to the edit.
- Use clear footage with visible subjects for more predictable transformations.
Notes
videoandpromptare required.
- Source videos support up to
30seconds.
- Up to
10reference images and up to3reference audios can be supplied.
resolutiondefaults to720p.
keep_original_sounddefaults tofalse: the soundtrack is generated with the edit, so describe the sound you want in the prompt. Set it totrueto keep the source audio exactly.
- When
durationis omitted, the output follows the source video duration.
- When
aspect_ratiois omitted, the output follows the source video's framing.
- Reference audios guide a speaker's voice; they do not reproduce the original recording, music, or timing.
- Reference voices shape the newly generated audio. Set
keep_original_soundtotrueto keep the source video's original audio instead.
Related Models
- Kling V4.0 Text-to-Video — Generate videos directly from text prompts with Kling V4.0.
- Kling V4.0 Image-to-Video — Animate a reference image into a video with Kling V4.0.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Kling 4.0 Video Edit API example
The catalog lists POST https://api.opensi.com.ai/api/v3/kwaivgi/kling-v4.0/video-edit for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "Apply a warm golden-hour color grade to @Video1 with softer contrast and richer natural colors. Preserve the original action, camera movement, and composition.",
"video": "https://d1s3annbwribom.cloudfront.net/maas-admin/video/2026/07/29/3a54631a010a.mp4",
"images": [],
"audios": [],
"keep_original_sound": false,
"resolution": "720p",
"duration": 3,
"aspect_ratio": "16:9"
}Kling 4.0 Video Edit API — Frequently asked questions
What is the Kling v4.0 Video Edit API?
Kling v4.0 Video Edit is a Kuaishou model for video editing, exposed as a REST API on OpenSIAI. Kling V4.0 Video Edit rewrites a 3 to 30 second video from a text instruction: it keeps the scene, subject and motion and changes what you describe, with optional reference images and audios, 720p, 1080p and 4K output and new synchronized audio generated by default (the original sound can be kept instead). Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Kling v4.0 Video Edit API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/kwaivgi/kling-v4.0/video-edit.
How much does Kling v4.0 Video Edit cost per run or per second?
Kling v4.0 Video Edit starts at $0.1598 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Kling v4.0 Video Edit accept?
Key inputs: prompt, images, video, aspect_ratio, resolution, duration. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/kwaivgi/kling-v4.0/video-edit.
How long does Kling v4.0 Video Edit take to generate?
Reported generation time on OpenSIAI is around 148 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Kling v4.0 Video Edit outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (Kuaishou). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.