Skip to main content

Enterprise: Fetch 3D Response Endpoint

Overview

Fetch Queued generated response.

Request

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

Send a POST request to https://modelslab.com/api/v1/enterprise/3d/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/3d/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"
]
}