Light Mode
Get Task
GET
/api/v1/task/{task_id}This endpoint from PiAPI's midjourney API could check the status of a midjourney 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
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{
"code": 200,
"data": {
"task_id": "9c20af76-5751-47a4-812c-c0a54f6858b7",
"model": "midjourney",
"task_type": "imagine",
"status": "",
"config": {
"webhook_config": {
"endpoint": "",
"secret": ""
}
},
"input": {},
"output": {},
"meta": {},
"detail": null,
"logs": [],
"error": {
"code": 0,
"raw_message": "",
"message": "",
"detail": null
}
},
"message": "success"
}
Last modified: 2 months ago