Only supported by kling-v2-6 and later models. Set sound to on to generate video with audio.
Request
Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/jsonRequired
Examples
{"model_name":"kling-v2-6","prompt":"A cute little rabbit wearing glasses, sitting at a table, reading a newspaper","duration":"5","mode":"pro","sound":"on","aspect_ratio":"16:9"}
Request Code 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
curl--location--request POST 'https://ai.tikhub.io/kling/v1/videos/text2video' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data-raw'{
"model_name": "kling-v2-6",
"prompt": "A cute little rabbit wearing glasses, sitting at a table, reading a newspaper",
"duration": "5",
"mode": "pro",
"sound": "on",
"aspect_ratio": "16:9"
}'