Skip to main content
POST
Submit Kling 4.0 Flash Video Edit Task
  1. After submission, a task_id will be returned. If you provided a callback_url, when the task status becomes finished or failed, a POST request will be sent to the callback_url.
  2. Regardless of whether callback_url is provided, you can retrieve the result through the unified Query Task Status endpoint.
Kling 4.0 Flash Video Edit rewrites a 3–20 second source video from text instructions while keeping its motion and timing. Add reference images, reference videos or elements to bring specific subjects, outfits or styles into the edit. Kling 4.0 Flash is the faster 720p tier of Kuaishou’s Kling 4.0 video model. Vidgo exposes it as four model IDs: Text to Video, Image to Video, Reference to Video and Video Edit.

Models

  • kwaivgi/kling-v4.0-flash/video-edit — Video editing with Kling 4.0 Flash, one 3–20 second source video, 720p output.

Features

  • Edit a 3–20 second source video from video_url.
  • Optional guidance: up to 10 reference images, 4 reference videos and 7 elements.
  • Output length follows the source video by default, or set duration from 3 to 20 seconds.
  • 720p output.

Required parameters

  • prompt (string): Editing instructions, 1–26,000 characters after trimming.
  • video_url (string): Public HTTP(S) URL of the source video, 3–20 seconds, up to 100 MB.

Optional parameters

  • duration (integer): Output length, 3–20 seconds. Default: the source video length.
  • resolution (string): 720p. Default 720p.
  • reference_image_urls (string[]): Up to 10 public HTTP(S) image URLs, cited as @Image1, @Image2, ….
  • reference_video_urls (string[]): Up to 4 public HTTP(S) video URLs, each 3–20 seconds, cited as @Video1, @Video2, ….
  • kling_elements (object[]): Up to 7 elements, at most 3 video-based, cited as @Element1, @Element2, …. Each element has exactly one of:
    • element_input_urls (string[]): 2–4 image URLs of the subject.
    • element_input_video_urls (string[]): exactly 1 video URL of the subject, 3–8 seconds.

Output

The finished task returns one 720p MP4 video in the files array of Query Task Status and the callback payload.

Examples

  • Season change: turn a snowy pine clearing into a golden autumn birch forest while the fox keeps its gait and the camera keeps its tracking move, 5 seconds (result).

Notes

  • Input videos (MP4, MOV or WebM, up to 100 MB each) are downloaded and measured at submission and must contain a video track. Reference and source videos run 3–20 seconds, element videos 3–8 seconds, and all input videos together add up to at most 20 seconds.
  • Each element takes element_input_urls or element_input_video_urls; any other key in an element (such as voice_id) returns 400.
  • Put model and callback_url at the request root, next to input. input accepts the fields listed above; other fields return 400.
  • Credits are reserved at submission. Requests with images and text only are billed per output second at the 720p rate. Requests with input videos (reference videos, video elements or a source video) use the input-video rate on billed seconds = output duration + the larger of the output duration and the total input video length (rounded up to whole seconds). A failed task is refunded in full. When duration is omitted, the output duration is the source video length rounded up to whole seconds. See the pricing page for current rates.

Authorizations

Authorization
string
header
required

Use Authorization: Bearer VIDGO_API_KEY.

Body

application/json
model
string
required
Example:

"kwaivgi/kling-v4.0-flash/video-edit"

input
object
required
callback_url
string<uri>

Optional webhook URL for completion or failure notifications.

Example:

"https://your-domain.com/callback"

Response

Task submission result. A task ID identifies asynchronous work; generation may still be running.

code
integer
required
Example:

200

data
object
required