API DocumentationMedia
Get media by ID
Look up a media item by ID and get its type, dimensions and the URLs of each of its variants.
curl -X GET "https://api.pixai.art/v1/media/string"{
"id": "string",
"type": "string",
"urls": [
{
"variant": "string",
"url": "string"
}
],
"width": 0,
"height": 0
}Empty
Get task detail by ID GET
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.
Get media image by ID GET
Redirect with HTTP 302 to the image file of a media item, so a media ID can be used directly as an image URL.