Skip to main content

Enterprise: Fetch Queue Image

Overview

Dreambooth Fetch Queued Images API fetches queued images.

Fetch Queued Images endpoint result

Usually more complex image generation requests take more time for processing. Such requests are being queued for processing and the output images are retrievable after some time. The estimated processing time is specified by the eta parameter in the response returned upon the request execution.

Request

--request POST 'https://stablediffusionapi.com/api/v1/enterprise/fetch' \

Send a POST request to https://stablediffusionapi.com/api/v1/enterprise/fetch endpoint to return the corresponding queued images, specified by the request_id parameter in the request body.

This endpoint does not generate new images, it returns already generated/queued images.

Attributes

ParameterDescription
keyYour enterprise API Key used for request authorization.
request_idReturned by the id parameter in the response upon an image generation request.

Example

Body

Body Raw
{
"key": "",
"request_id": "your_request_id"
}

Request

var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
"key": "",
"request_id": "your_request_id"
});

var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};

fetch("https://stablediffusionapi.com/api/v1/enterprise/fetch", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Response

Example Response
{
"status": "success",
"id": 13443927,
"output": [
"https://pub-8b49af329fae499aa563997f5d4068a4.r2.dev/generations/6ef3f81f-14e1-4835-b07a-e00dbe80b6ff-0.png"
]
}