kling-video/o3/pro/reference-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.
string
required
Take @Element1, @Element2 to reference elements and @Image1, @Image2 to reference images in order.Maximum characters:
2500.string
default:"5"
Video duration in seconds (3-15s).Allowed values:
"3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15".array
Elements (characters/objects) to include in the video. Reference in prompt as @Element1, @Element2, etc. Maximum 7 total (elements + reference images + start image).
string[]
Additional reference images for style/appearance. Reference in prompt as @Image1, @Image2, etc. Maximum 7 total (elements + reference images + start image).Maximum items:
4.string
Image to use as the last frame of the video
boolean
default:true
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.
string
Start Image Url
string
default:"16:9"
The aspect ratio of the generated video frame.Allowed values:
"16:9", "9:16", "1:1".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.
