makevid
  1. Kling
makevid
  • Introduction
  • Luma
    • Create Luma Video
      POST
    • Get Luma Video
      GET
  • Runway
    • Create Runway Video
      POST
    • Get Runway Video
      GET
  • Kling
    • Text to Video
      POST
    • Get Text2Video Result
      GET
    • Image to Video
      POST
    • Get Image2Video Result
      GET
  1. Kling

Image to Video

POST
/api/v1/kling/image2video/create_kling

Request

Body Params application/json
prompt
string 
optional
video prompt
negative_prompt
string 
optional
Negative text prompt, optional, cannot exceed 200 characters
cfg_scale
integer 
optional
The degree of freedom of the generated video, optional. The larger the value, the stronger the correlation. The value range is: [0,1]
mode
string 
optional
The mode of generating video, optional, enumeration value: std (high performance) or pro (excellent performance)
duration
string 
optional
The duration of the generated video, in seconds, optional, enumeration value: 5, 10
image
string 
required
Reference image, required, supports Base64 encoding or image URL, supports .jpg / .jpeg / .png format, size cannot exceed 10MB, resolution cannot be less than 300*300px
image_tail
string 
optional
Reference image - end frame control, optional, supports Base64 encoding or image URL, supports .jpg / .jpeg / .png format, size cannot exceed 10MB, resolution cannot be less than 300*300px
Example
{
  "prompt": "camera pull out",
  "negative_prompt": "ugly",
  "cfg_scale": 0.8,
  "mode": "std",
  "duration": "5",
  "image": "https://www.example.com/image.png",
  "image_tail": "https://www.example.com/image_tail.png"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://makevid.ai/api/v1/kling/image2video/create_kling' \
--header 'Content-Type: application/json' \
--data-raw '{
    "prompt": "camera pull out",
    "negative_prompt": "ugly",
    "cfg_scale": 0.8,
    "mode": "std",
    "duration": "5",
    "image":"https://www.example.com/image.png",
    "image_tail":"https://www.example.com/image_tail.png"
}'

Responses

🟢200Success
application/json
Body
code
integer 
required
message
string 
required
Task status, when it is ‘SUCCEED’, it means the task was created successfully
request_id
string 
required
request id
data
object 
required
task_id
string 
required
task id
task_status
string 
required
Task status, when it is ‘submitted’, it means the task was submited successfully
created_at
integer 
required
updated_at
integer 
required
Example
{
  "code": 0,
  "message": "SUCCEED",
  "request_id": "CmC9rGbtVzEAAAAAADQY-A",
  "data": {
    "task_id": "CmC9rGbtVzEAAAAAADQY-A",
    "task_status": "submitted",
    "created_at": 1726939154945,
    "updated_at": 1726939154945
  }
}
Previous
Get Text2Video Result
Next
Get Image2Video Result
Built with