Create Task
POST
/api/v1/taskThis is provided as part of the AI Hug API from PiAPI.
This service allows you to generate a hugging video of two people from an image using Qubico's hardware. It uses Qubico's unified task structure.
Request
Your API Key for request authorization
Input parameters including the image URL
Webhook provides timely task notifications. Check PiAPI webhook for detail.
This allows users to choose whether this specific task will get processed under PAYG or HYA mode. If unspecified, then this task will get processed under whatever mode (PAYG or HYA)
the user chose on the workspace setting of your account.
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"
}
}
Request samples
Responses
OK-Successful Response.
Hover on the "Completed" option and you coult see the explaintion of all status: completed/processing/pending/failed/staged
If you get non-null error message, here are some steps you chould follow:
- Check our common error message
- Retry for several times
- If you have retried for more than 3 times and still not work, file a ticket on Discord and our support will be with you soon.
{
"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"
}