Skip to main content
← Kling Model name: kling-video/v4/video-to-video/edit
Generation type: video_to_video
Endpoint: POST /api/asset_generator/

Pricing

Prices are per output. When a request asks for several outputs, the charge is this price times the number of outputs. These prices assume no billable reference inputs. The charge goes up for each second of reference video (up to 15 seconds).

Quick start

The example uses sample media from our CDN. Swap in publicly accessible URLs for your own files.

Input parameters

Send these fields in input_params.
string
required
Reference the source video as @Video1 and reference images as @Image1, etc.Maximum characters: 2500.
string
required
Video to edit. MP4/MOV, max 300MiB, 3-30s, 700-4553px, aspect ratio 0.40-2.50, about 24-60 fps.
string
default:"5"
required
Desired output duration in seconds (3-30s). Required; does not trim the input video.Allowed values: "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30".
string[]
Reference images, referenced as @Image1, etc. Max 10.Maximum items: 10.
string
default:"720p"
Output resolution (720p, 1080p, 2K, 4K).Allowed values: "720p", "1080p", "2k", "4k".

Response

The request returns the task with status: "initializing". Poll GET /api/asset_generator/{id}/ until status is done or failed, or pass a webhook_url to be notified. A finished task lists its files in assets and the credits it charged in credits_used.