Text to Video
POST
/api/v1/kling/text2video/create_kling
Request
Body Params application/json
prompt
string
required
negative_prompt
string
optional
cfg_scale
integer
optional
mode
string
optional
camera_control
object
optional
type
string
optional
config
object
optional
aspect_ratio
string
optional
duration
string
optional
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
request_id
string
required
data
object
required
task_id
string
required
task_status
string
required
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
}
}
Modified at 2024-09-24 09:37:08