| Resolution | Duration | Price(USD) |
|---|---|---|
| 720 | 5s | 0.39 |
| 720 | 10s | 0.78 |
| 1080 | 5s | 0.52 |
| 1080 | 10s | 1.04 |
{
"model": "kling",
"task_type": "omni_video_generation",
"input": {
"prompt": "Close-up, static camera, a woman in swim suit near the sea is introducing herself.",
"version": "o1",
"resolution": "720p",
"duration": 5,
"aspect_ratio": "16:9"
},
"config": {
"service_mode": "public",
"webhook_config": {
"endpoint": "https://webhook.site/5468eca8-1cad-4dd3-9799-b6fbd9770fda",
"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": "omni_video_generation",
"input": {
"prompt": "Close-up, static camera, a woman in swim suit near the sea is introducing herself.",
"version": "o1",
"resolution": "720p",
"duration": 5,
"aspect_ratio": "16:9"
},
"config": {
"service_mode": "public",
"webhook_config": {
"endpoint": "https://webhook.site/5468eca8-1cad-4dd3-9799-b6fbd9770fda",
"secret": ""
}
}
}'{
"timestamp": 1770423368,
"data": {
"task_id": "f43657f9-5655-4869-a201-651ded8649bb",
"model": "kling",
"task_type": "omni_video_generation",
"status": "completed",
"config": {
"service_mode": "public",
"webhook_config": {
"endpoint": "https://webhook.site/5468eca8-1cad-4dd3-9799-b6fbd9770fda",
"secret": ""
}
},
"input": {
"aspect_ratio": "16:9",
"duration": 5,
"prompt": "Close-up, static camera, a woman in swim suit near the sea is introducing herself.",
"resolution": "720p",
"version": "o1"
},
"output": {
"video": "https://storage.theapi.app/videos/302394780311449.mp4"
},
"meta": {
"created_at": "2026-02-07T00:14:45.539719292Z",
"started_at": "2026-02-07T00:14:45.759947942Z",
"ended_at": "2026-02-07T00:16:08.628146393Z",
"usage": {
"type": "point",
"frozen": 3900000,
"consume": 3900000
},
"is_using_private_pool": false
},
"detail": null,
"logs": null,
"error": {
"code": 0,
"raw_message": "",
"message": "",
"detail": null
}
}
}