kling-video/v3/standard/image-to-videoGeneration type:
image_to_videoEndpoint:
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.
Quick start
The example uses sample media from our CDN. Swap in publicly accessible URLs for your own files.Input parameters
Send these fields ininput_params.
Use @Image1 to reference the start frame, @Image2 to reference the end frame.Maximum characters:
2500.Image to use as the first frame of the video.Max file size: 10.0MB, Min width: 300px, Min height: 300px, Min aspect ratio: 0.40, Max aspect ratio: 2.50, Timeout: 20.0s
Video duration in seconds.Allowed values:
"3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15".Elements (characters/objects) to include in the video. Each example can either be an image set (frontal + reference images) or a video. Reference in prompt as @Element1, @Element2, etc.Maximum items:
3.The CFG (Classifier Free Guidance) scale is a measure of how close you want,the model to stick to your prompt.Minimum:
0.
Maximum: 1.
Multiple of: 0.1.Image to use as the last frame of the video.Max file size: 10.0MB, Min width: 300px, Min height: 300px, Min aspect ratio: 0.40, Max aspect ratio: 2.50, Timeout: 20.0s
Whether to generate native audio for the video. Supports Chinese and English voice output. Other languages are automatically translated to English. For English speech, use lowercase letters; for acronyms or proper nouns, use uppercase.
Complete JSON schema
Complete JSON schema
Response
The request returns the task withstatus: "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.
