Kling Elements Video Generation API
Overview
Element Image Requirements
API Specifications
Input Object Parameters
prompt
: Description of the desired video outputduration
: Video length in seconds (5 or 10)elements
: Array of image elements (1-4 items)mode
: Generation mode (e.g., "std")aspect_ratio
: Output video ratio ("16:9", "9:16", or "1:1")version
: Must be "1.6" for elements featureExample Request
{
"model": "kling",
"task_type": "video_generation",
"input": {
"prompt": "Two toy figures fighting",
"negative_prompt": "",
"duration": 5,
"elements": [
{
"image_url": "https://i.ibb.co/p6rmPwdm/2025-01-17-133430.png"
},
{
"image_url": "https://i.ibb.co/RfHW0tK/2025-01-17-133106.png"
}
],
"mode": "std",
"aspect_ratio": "16:9",
"version": "1.6"
},
"config": {
"service_mode": "public",
"webhook_config": {
"endpoint": "",
"secret": ""
}
}
}
Modified at 2025-02-07 08:31:47