public
means this task will be processed under PAYG mode.private
means this task will be processed under HYA mode.{
"model": "Qubico/hug-video",
"task_type": "image_to_video",
"input": {
"image_url": "https://i.ibb.co/znPyjxy/person2.jpg"
}
}
curl --location --request POST 'https://api.piapi.ai/api/v1/task' \
--header 'X-API-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "Qubico/hug-video",
"task_type": "image_to_video",
"input": {
"image_url": "https://i.ibb.co/znPyjxy/person2.jpg"
}
}'
{
"code": 200,
"data": {
"task_id": "49439a00-465c-4501-9ce2-14581e01f616",
"model": "Qubico/hug-video",
"task_type": "image_to_video",
"status": "",// pending/processing/failed/completed
"config": {
"webhook_config": {
"endpoint": "",
"secret": ""
}
},
"input": { },
"output": {},
"meta": {},
"detail": null,
"logs": [],
"error": {
"code": 0,
"raw_message": "",
"message": "",
"detail": null
}
},
"message": "success"
}