Light Mode
Get Task
GET
/api/v1/task/{task_id}This endpoint from PiAPI's Flux API retrieves the output of a Flux 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)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
code
integer
optional
data
object
optional
task_id
string
optional
model
string
optional
task_type
string
optional
status
string
optional
input
object
optional
output
null
optional
meta
object
optional
detail
null
optional
logs
array [object]
optional
error
object
optional
message
string
optional
Example
{
"code": 200,
"data": {
"task_id": "49638cd2-4689-4f33-9336-164a8f6bef07",
"model": "Qubico/flux1-dev",
"task_type": "txt2img",
"status": "pending",
"input": {
"prompt": "a bear"
},
"output": null,
"meta": {
"account_id": 0,
"account_name": "Qubico_test_user",
"created_at": "2024-08-16T16:13:21.194049Z",
"started_at": "",
"completed_at": ""
},
"detail": null,
"logs": [],
"error": {
"code": 0,
"message": ""
}
},
"message": "success"
}
Last modified: 2 months ago