Video Generation
POST
/api/kling/v1/videoThis endpoint from PiAPI's Kling API utilizes Kling AI model by Kuaishou to produce text/image-to-video generation.
Request
Your API KEY used for request authorization
negative prompt of your video, can be empty
prompt of your video
a number between 0 to 1, the lower the more creative
can only be 5
or 10
, defaults to 5
can only be 16:9
,9:16
,1:1
PAID KLING PLAN NEEDED. Default to false, visit Kling AI official product to get the definition of professional mode
initial frame of the video, DO NOT pass this param if you just want text-to-video
PAID KLING PLAN NEEDED. End frame of the video, DO NOT pass this param if you just want text-to-video
camera control of the video, effective in text-to-image ONLY. TRY it on Kling official website before using this param
{
"negative_prompt": "string",
"prompt": "string",
"creativity": 0,
"duration": 0,
"aspect_ratio": "string",
"professional_mode": true,
"image_url": "string",
"tail_image_url": "string",
"camera": {
"type": "string",
"horizontal": 0,
"vertical": 0,
"zoom": 0,
"tilt": 0,
"pan": 0,
"roll": 0
}
}
Request samples
Responses
OK-Successful Response
{
"code": 0,
"data": {
"task_id": "string"
},
"message": "string"
}