header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/jsonRequired
Example
{"model_name":"kling-v3","prompt":"The girl gently smiles and looks at the camera","image":"https://example.com/image.png","duration":"5","mode":"std","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--location--request POST 'https://ai.tikhub.io/kling/v1/videos/image2video' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data-raw'{
"model_name": "kling-v3",
"prompt": "The girl gently smiles and looks at the camera",
"image": "https://example.com/image.png",
"duration": "5",
"mode": "std",
"aspect_ratio": "16:9"
}'