{
"model": "kling-turbo",
"task_type": "video_generation",
"input": {
"prompt": "Close-up, static camera, a woman in swim suit near the sea is introducing herself.",
"negative_prompt": "",
"image_url": "",
"duration": 5,
"aspect_ratio": "16:9",
"mode": "pro",
"version": "2.5-turbo"
},
"config": {
"webhook_config": {
"endpoint": "https://webhook.site/20d9b15f-bfb8-4237-8e4a-993f462f9eb9",
"secret": ""
}
}
}curl --location --request POST 'https://api.piapi.ai/api/v1/task' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "kling-turbo",
"task_type": "video_generation",
"input": {
"prompt": "Close-up, static camera, a woman in swim suit near the sea is introducing herself.",
"negative_prompt": "",
"image_url": "",
"duration": 5,
"aspect_ratio": "16:9",
"mode": "pro",
"version": "2.5-turbo"
},
"config": {
"webhook_config": {
"endpoint": "https://webhook.site/20d9b15f-bfb8-4237-8e4a-993f462f9eb9",
"secret": ""
}
}
}'{
"code": 200,
"data": {
"task_id": "98aad4db-41a1-42ca-b06a-aa77714b4ff8",
"model": "kling-turbo",
"task_type": "video_generation",
"status": "pending",
"config": {
"service_mode": "",
"webhook_config": {
"endpoint": "https://webhook.site/20d9b15f-bfb8-4237-8e4a-993f462f9eb9",
"secret": ""
}
},
"input": {
"prompt": "Close-up, static camera, a woman in swim suit near the sea is introducing herself.",
"aspect_ratio": "16:9",
"duration": 5
},
"output": null,
"meta": {
"created_at": "2025-12-24T10:08:00.260200381Z",
"started_at": "0001-01-01T00:00:00Z",
"ended_at": "0001-01-01T00:00:00Z",
"usage": {
"type": "llm",
"frozen": 0,
"consume": 2800000
},
"is_using_private_pool": false
},
"detail": null,
"logs": [],
"error": {
"code": 0,
"raw_message": "",
"message": "",
"detail": null
}
},
"message": "success"
}