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)
camera_control
object
optional
The protocol for controlling camera movement, optional. If not specified, it will be matched intelligently (only applicable to text2video, when mode is std and duration is 5s)
type
string
optional
type must be simple, down_back, forward_up, right_turn_forward or left_turn_forward
config
object
optional
Contains six fields that specify the movement or change of the camera. It is only applicable when type is simple.
aspect_ratio
string
optional
The aspect ratio of the generated video, optional, enumeration value: 16:9, 9:16, 1:1
duration
string
optional
The duration of the generated video, in seconds, optional, enumeration value: 5, 10
Example
{"prompt":"product photography of an ice tea, block of ice, in lava, steam coming off, dramatic lights, sparks of fire and miniature explosions, luxury, in style of maximalism","negative_prompt":"ugly","cfg_scale":0.8,"mode":"std","camera_control":{"type":"simple","config":{"horizontal":0,"vertical":0,"pan":0,"tilt":0,"roll":0,"zoom":-10}},"aspect_ratio":"16:9","duration":"5"}
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/text2video/create_kling' \
--header'Content-Type: application/json' \
--data-raw'{
"prompt": "product photography of an ice tea, block of ice, in lava, steam coming off, dramatic lights, sparks of fire and miniature explosions, luxury, in style of maximalism",
"negative_prompt": "ugly",
"cfg_scale": 0.8,
"mode": "std",
"camera_control": {
"type": "simple",
"config": {
"horizontal": 0,
"vertical": 0,
"pan": 0,
"tilt": 0,
"roll": 0,
"zoom": -10
}
},
"aspect_ratio": "16:9",
"duration": "5"
}'
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