kling-video/v2.5-turbo/pro/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.
string
required
The prompt to generate an image from.Minimum characters:
1.
Maximum characters: 2500.string
required
URL of the image to be used for the video
string
default:"5"
The duration of the generated video in secondsAllowed values:
"5", "10".number
default:0.5
The CFG (Classifier Free Guidance) scale is a measure of how close you want he model to stick to your prompt.Minimum:
0.
Maximum: 1.
Multiple of: 0.1.string
default:"blur, distort, and low quality"
Negative PromptMaximum characters:
2500.string
URL of the image to be used as the last frame of the video
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.
