Light Mode
Get Task
GET
/api/v1/task/{task_id}This is provided as part of the AI Hug API from PiAPI.
This endpoint checks the status of a hugging video generation task.
Request
Path Params
task_id
string
required
Header Params
X-API-Key
string
required
Your API KEY used for request authorization
Request samples
Responses
OK(200)
Unauthorized(401)
Record Not Found(404)
HTTP Code: 200
Content Type : JSONapplication/json
OK-Returns the status and result of the task
Data Schema
object {0}
Example
{
"code": 200,
"message": "success",
"data": {
"task_id": "0f647527-12bd-48b1-b813-111111111",
"model": "Qubico/hug-video",
"task_type": "image_to_video",
"status": "", // pending/processing/failed/completed
"input": {},
"output": {},
"meta": {
},
"logs": [],
"error": {
"code": 1100,
"message": ""
}
}
}
Modified at 17 hours ago