Kling 4.0 Video Edit API

kwaivgi/kling-v4.0/video-edit
720p / 1080p · 3–30 sec

Kling 4.0 Video Edit transforms an existing 3–30 second video from a written instruction, restyling scenes, swapping objects or adding elements at 720p or 1080p. It keeps the original timing, people and camera path that you ask to preserve while applying the change across every frame.

Input
305/26000

Drag and drop files, paste from clipboard, or provide a URL. Required. One MP4, MOV or WebM source video, 3–30 seconds, up to 100 MB.

1/1 files added

Drag and drop files, paste from clipboard, or provide a URL. Up to 10 images, cited in the prompt as @Image1, @Image2…

Switch to JSON to add image-based kling_elements.

OutputExample
(6 + 6) sec × $0.085/sec = $1.020

Billed seconds = output seconds + the longer of output seconds or the source length, rounded up. The final amount is set when the server measures the source video.

Continue with

Kling 4.0 Video Edit

Kling 4.0, released by Kuaishou's Kling AI in October 2026, can edit footage as well as generate it. Video Edit takes a source clip of 3–30 seconds and a prompt describing the change, with optional reference images and image elements showing a new look, product or character. Leave duration out to match the source length, and the result returns with a stereo track.

Why choose the Kling 4.0 Video Edit API?

  • Edit with plain instructionsDescribe the change, such as turning day to night or replacing a jacket, and what must stay the same.

  • Show the target with referencesAdd up to 10 reference images or image elements to define a new product, outfit or style.

  • Keeps the source timingOmit duration and the edit matches the source length, ready to drop back into a timeline.

  • Predictable billingA published formula based on output and source length lets you price an edit before submitting.

Parameters

ParameterRequirementDescription
promptRequired

The edit instruction: what to change in the source video and what to keep. 1–26,000 characters after trimming.

Default—
video_urlRequired

Public HTTP(S) URL of the source video, 3–30 seconds and up to 100 MB. Its length is measured on the server and used for billing.

Default—
reference_image_urlsOptional

Up to 10 image URLs that show the look, object or style the edit should introduce, cited as @Image1 and so on.

Default—
kling_elementsOptional

Image-based subjects to place in the edit: each element has element_input_urls with 2–4 images of the same subject.

Default—
durationOptional

Output length in seconds, 3–30. Leave it out to match the source video; billing then uses the source length rounded up.

Defaultsource length
resolutionOptional

720p or 1080p. The resolution sets the per-second rate.

Default720p

How to Use

  1. Upload the source videoUse a 3–30 second clip up to 100 MB as video_url.

  2. Write the edit instructionState what to change and what to keep, and cite any references as @Image1, @Element1.

  3. Choose length and resolutionKeep the source length or set 3–30 seconds, then pick 720p or 1080p.

  4. Submit and collect the videoSend the request, then poll with the task_id or wait for callback_url.

Usage and billing

Kling 4.0 Video Edit uses the input-video rate on billed seconds: output seconds plus the longer of output seconds or source length, rounded up. In plain words, you pay a lower per-second rate on at least twice the output length. Example: editing a 10-second source and keeping its length at 720p bills 20 seconds, 340 credits ($1.70); at 1080p, 510 credits ($2.55).

UsageRateDetails
720p with input video17 credits / billed second$0.085 / billed second. Billed seconds = output seconds + the longer of output seconds or input video length (rounded up).
1080p with input video25.5 credits / billed second$0.1275 / billed second, same billed-seconds rule as 720p.

Best Use Cases

  • Restyling footageChange season, time of day or visual style while keeping the action.

  • Product and wardrobe swapsReplace an object or outfit using reference images of the new item.

  • Background replacementMove a scene to a new location described in the prompt.

  • Localized ad variantsProduce versions of one shoot for different markets or seasons.

Pro Tips

  • Name what must stay unchanged, such as people, timing and camera path, as clearly as the change itself.
  • Use reference images for anything that must look exact, such as a product or packaging design.
  • Trim the source to the part you need: billing counts the source length.
  • Leave duration out to keep the edit in sync with the original edit timeline.

Notes

  • video_url and prompt are required; reference_image_urls (≤10) and image-based kling_elements are optional.
  • The source runs 3–30 seconds and up to 100 MB; the server measures its length for billing.
  • Without duration, the output matches the source and is billed as twice the source length rounded up.
  • Credits are reserved at submission using the measured source length.

Related Models

Kling 4.0 Video Edit API FAQ

What is the Kling 4.0 Video Edit API?

Kling 4.0 Video Edit is a Kuaishou model for editing existing video with text instructions, released by Kling AI in October 2026. It takes a 3–30 second source clip and a prompt, plus optional reference images and image elements, and returns the edited video at 720p or 1080p with a stereo track. The model applies the requested change across the clip while keeping the motion, timing and camera path you ask it to preserve. You can call it programmatically or try it from the playground above.

How is Kling 4.0 Video Edit billed?

You pay 17 credits per billed second at 720p or 25.5 at 1080p. Billed seconds are the output length plus the longer of the output length or the source length, rounded up, so a 10-second edit of a 10-second source bills 20 seconds: 340 credits ($1.70) at 720p.

What happens to Kling 4.0 Video Edit pricing if I leave duration out?

The output matches the source, and the output length used for billing is the source length rounded up. A 7.4-second source therefore bills 8 + 8 = 16 seconds, 272 credits at 720p.

How long can the Kling 4.0 Video Edit source video be?

The source must run 3–30 seconds and be at most 100 MB. The server downloads and measures it before the task starts.

Can Kling 4.0 Video Edit use reference images?

Yes. Add up to 10 reference_image_urls, or image-based kling_elements with 2–4 images of one subject, and cite them in the prompt as @Image1 or @Element1 to show exactly what should appear.

How do I keep people and motion unchanged in Kling 4.0 Video Edit?

State it in the prompt alongside the change, for example "keep the people, their movement and the camera path exactly as in the source", and limit the instruction to the elements you want to alter.

Which resolutions does Kling 4.0 Video Edit output?

Choose 720p, the default, or 1080p. The output keeps the source framing, and the resolution selects the per-second rate.