Kling 4.0 Flash Video Edit API

kwaivgi/kling-v4.0-flash/video-edit
720p · 3–20 sec

Kling 4.0 Flash Video Edit API transforms an existing 3–20 second video using text prompts, reference images, up to 4 reference videos, and subject elements. It preserves source motion and temporal continuity at 12.6 credits per billed second.

Input
348/26000

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

1/1 files added

Drag and drop files, paste from clipboard, or provide a URL. Optional. Up to 10 reference images.

Drag and drop files, paste from clipboard, or provide a URL. Optional. Up to 4 reference videos (3–20 s each; all input videos combined ≤ 20 s).

Switch to JSON mode to attach kling_elements.

Output
(5 + 5) sec × $0.063/sec = $0.630

Billed at 12.6 credits × (output + max(output, ceil(total input video seconds))).

Continue with

Examples

Transform the snowy winter pine clearing into a misty golden autumn birch forest carpeted with crisp fallen amber and crimson leaves, with soft warm morning sunlight filtering through yellow foliage. Preserve the red fox's exact trotting gait, pause, ear turn, and steady lateral camera tracking completely intact. No text, no logos, no watermarks.

What is the Kling 4.0 Flash Video Edit API?

Kling 4.0 Flash Video Edit takes a 3–20 second source video in video_url and edits it according to your prompt and optional visual references. The Kling 4.0 Flash Video Edit API also accepts up to 4 reference videos and video-based kling_elements alongside reference images, while keeping combined input video length within 20 seconds.

Why choose the Kling 4.0 Flash Video Edit API?

This API combines source-video editing with reference images, reference videos, and reusable elements at 720p.

  • Reference videos and video elements in edit modeUnlike standard edit modes, Flash Video Edit accepts up to 4 extra reference videos and video-based subject elements.

  • Automatic source-length matchingOmit duration to follow the source clip length, or specify 3–20 seconds explicitly.

  • 12.6 credits per billed secondUses the lower with-video 720p rate ($0.063 per billed second).

Parameters

This API requires video_url (3–20 s) and prompt, plus optional reference images, reference videos, elements, and duration.

ParameterRequirementDescription
video_urlRequired

Public HTTP(S) URL of the source video (3–20 s, up to 100 MB).

Default—
promptRequired

Editing instructions (1–26,000 characters).

Default—
durationOptional

Output seconds (3–20); omit to match the source video length.

DefaultMatch source
resolutionFixed

Fixed to 720p.

Default720p
reference_image_urlsOptional

Up to 10 reference image URLs.

Default—
reference_video_urlsOptional

Up to 4 reference videos (3–20 s each); all input videos combined ≤ 20 s.

Default—
kling_elementsOptional

Up to 7 image or video elements (at most 3 video elements, 3–8 s each).

Default—

How do you use the Kling 4.0 Flash Video Edit API?

Provide the source video and editing instructions, attach optional references, and submit for 720p video-edit output.

  1. Upload the source videoProvide a 3–20 second MP4, MOV, or WebM clip in video_url.

  2. Describe the editState what to change (lighting, wardrobe, objects, style) and what to preserve.

  3. Submit the taskAttach reference images, reference videos, or kling_elements if replacing subjects or styles.

  4. Submit and pollLeave duration on Match source or choose 3–20 s, then poll task_id until finished.

How much does the Kling 4.0 Flash Video Edit API cost?

The Kling 4.0 Flash Video Edit API uses the 720p with-video rate: 12.6 credits ($0.063) × (output + max(output, ceil(total input video seconds))).

UsageRateDetails
720p Video Edit12.6 credits / billed second$0.063 per billed second. Example: a 5 s source clip edited at source length bills (5 + 5) × 12.6 = 126 credits ($0.63).

Best Use Cases

This API fits wardrobe and subject swaps, style transfer on live footage, and reference-guided post-production edits.

  • Relighting and weather swapsShift daytime footage to dusk, rain, or neon night while keeping camera choreography intact.

  • Object and wardrobe replacementSwap props or outfits using reference images or subject elements.

  • Rapid creative localizationAdapt existing 5–15 second ad footage for new seasonal campaigns.

Pro Tips

  • Keep total duration of video_url plus all reference and element videos within 20 seconds.
  • Explicitly mention which elements should remain unchanged so the model focuses edits cleanly.

Notes

  • All input videos combined (source plus reference videos) must stay within 20 seconds.
  • All input videos must contain a valid video track and stay within 100 MB each.

Kling 4.0 Flash Video Edit API FAQ

What is the Kling 4.0 Flash Video Edit API?

Kling 4.0 Flash Video Edit is a Kuaishou 720p video editing model guided by text and multimodal visual references. The Kling 4.0 Flash Video Edit API transforms a 3–20 second source video using prompts, reference images, up to 4 reference videos, and subject elements at 12.6 credits per billed second. It preserves source camera movement and temporal continuity while executing targeted visual changes. You can call it programmatically or try it from the playground above.

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

The source video must be 3–20 seconds (up to 100 MB), and all input videos combined—including reference videos and video elements—cannot exceed 20 seconds.

Can Kling 4.0 Flash Video Edit accept reference videos and elements?

Yes. Alongside video_url, you can pass up to 4 reference_video_urls (3–20 s each) and up to 7 kling_elements (including up to 3 video elements of 3–8 s).

What happens if duration is omitted in Kling 4.0 Flash Video Edit?

The output follows the source video length, and billing uses ceil(source video seconds) as the output duration.

How is the Kling 4.0 Flash Video Edit API billed?

Credits equal 12.6 × (output seconds + max(output seconds, ceil(total input video seconds))). For a single 5-second source clip edited at source length, that is 126 credits ($0.63).

Can I control aspect ratio in Kling 4.0 Flash Video Edit?

Output framing follows the source video in video_url; aspect_ratio is not passed in video-edit mode.

How does Kling 4.0 Flash Video Edit differ from Kling 4.0 Video Edit?

Kling 4.0 Flash Video Edit runs at 720p (12.6 credits/billed second, up to 20 s total video) and adds support for reference videos and video elements, whereas Kling 4.0 Video Edit adds 1080p and up to 30 s clips.