Skip to main content

Fetch Queued Images Endpoint

Overview

Stable Diffusion V3 APIs Fetch Queued Images API fetches queued images from stable diffusion.

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.

Fetch Queued Images endpoint result

Request

--request POST 'https://stablediffusionapi.com/api/v3/fetch/{id}' \

Send a POST request to https://stablediffusionapi.com/api/v3/fetch/{id} endpoint to return the corresponding queued images. Where {id} is the ID returned together with the image URL in the response upon its generation. This endpoint does not generate new images, it returns already generated/queued images.

Attributes

ParameterDescription
keyYour API Key used for request authorization

Example

Body

Body Raw
{
"key": ""
}

Request

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

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

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

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

Response

Example Response
{
"status": "success",
"id": 12202888,
"output": [
"https://pub-8b49af329fae499aa563997f5d4068a4.r2.dev/generations/e5cd86d3-7305-47fc-82c1-7d1a3b130fa4-0.png"
]
}