Skip to main content

Enterprise: Fetch Queued Images Endpoint

Overview

Fetch Queued response.

Request

--request POST 'https://modelslab.com/api/v1/enterprise/flux_headshot/fetch/{id}' \

Send a POST request to https://modelslab.com/api/v1/enterprise/flux_headshot/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://modelslab.com/api/v1/enterprise/flux_headshot/fetch/{id}", 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"
]
}