| Resolution | Enable audio | Price(USD) per second |
|---|---|---|
| 720 | false | 0.1 |
| 720 | true | 0.15 |
| 1080 | false | 0.15 |
| 1080 | true | 0.2 |
prompt and duration will be ignored{
"model": "kling",
"task_type": "video_generation",
"input": {
"prompt": "Close-up, static camera, a woman in swim suit near the sea is introducing herself.",
"duration": 5,
"aspect_ratio": "16:9",
"enable_audio": false,
"prefer_multi_shots": false,
"mode": "std",
"version": "3.0"
},
"config": {
"service_mode": "public",
"webhook_config": {
"endpoint": "https://webhook.site/64e7e8fa-a47a-4d30-b00a-8746d2d04590",
"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",
"task_type": "video_generation",
"input": {
"prompt": "Close-up, static camera, a woman in swim suit near the sea is introducing herself.",
"duration": 5,
"aspect_ratio": "16:9",
"enable_audio": false,
"prefer_multi_shots": false,
"mode": "std",
"version": "3.0"
},
"config": {
"service_mode": "public",
"webhook_config": {
"endpoint": "https://webhook.site/64e7e8fa-a47a-4d30-b00a-8746d2d04590",
"secret": ""
}
}
}'{
"code": 200,
"data": {
"task_id": "40680c72-279e-42c2-a4c0-e96e71865f04",
"model": "kling",
"task_type": "video_generation",
"status": "pending",
"config": {
"service_mode": "public",
"webhook_config": {
"endpoint": "https://webhook.site/5468eca8-1cad-4dd3-9799-b6fbd9770fda",
"secret": ""
}
},
"input": {
"aspect_ratio": "16:9",
"enable_audio": true,
"mode": "std",
"multi_shots": [
{
"duration": 3,
"prompt": "A dog running near the sea"
},
{
"duration": 2,
"prompt": "The dog stop before a cat on beach"
}
],
"prefer_multi_shots": true,
"version": "3.0"
},
"output": {
"video": ""
},
"meta": {
"created_at": "2026-02-13T04:17:29.108326563Z",
"started_at": "0001-01-01T00:00:00Z",
"ended_at": "0001-01-01T00:00:00Z",
"usage": {
"type": "point",
"frozen": 10000000,
"consume": 0
},
"is_using_private_pool": false
},
"detail": null,
"logs": null,
"error": {
"code": 0,
"raw_message": "",
"message": "",
"detail": null
}
},
"message": "success"
}