{
"prompt": "A girl sat on the train, looking out the window with a melancholic expression, her head swaying with the train.",
"settings": {
"duration": 10,
"resolution": "1080p",
"aspect_ratio": "16:9"
},
"options": {
"callback_url": "https://xxx/callback",
"external_task_id": "",
"watermark_info": {
"enabled": false
}
}
}curl --location '/kling/text-to-video/kling-4.0' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
"prompt": "A girl sat on the train, looking out the window with a melancholic expression, her head swaying with the train.",
"settings": {
"duration": 10,
"resolution": "1080p",
"aspect_ratio": "16:9"
},
"options": {
"callback_url": "https://xxx/callback",
"external_task_id": "",
"watermark_info": {
"enabled": false
}
}
}'{
"code": 0,
"message": "success",
"request_id": "req_1234567890abcdef",
"data": {
"id": "task_9876543210",
"status": "submitted",
"create_time": 1781080778802,
"update_time": 1781080794151,
"external_id": "my_custom_001"
}
}