Get task detail by ID
Fetch a generation task by ID to check its status (waiting, running, completed, cancelled or failed) and read the IDs and URLs of the media it produced.
Authorization
bearerAuth In all requests that require authentication, please add the following to the HTTP header:
In: header
Path Parameters
ID of task to return
Response Body
application/json
curl -X GET "https://api.pixai.art/v1/task/string"{
"id": "string",
"status": "waiting",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"startedAt": "2019-08-24T14:15:22Z",
"endAt": "2019-08-24T14:15:22Z",
"outputs": {
"mediaIds": [
"string"
],
"mediaUrls": [
"string"
]
},
"mediaSafetyLevel": "nsfw",
"textSafetyLevel": "nsfw"
}Create an image generation task POST
Start an asynchronous image generation task with the simplified v2 API. The response returns the new task's ID. The v2 API provides a streamlined interface with user-friendly parameters such as `aspectRatio`, `mode`, and named `style` presets, replacing the raw pixel dimensions and internal parameter names of v1.
Get media by ID GET
Look up a media item by ID and get its type, dimensions and the URLs of each of its variants.