Skip to main content

Enterprise: Fetch Queued Voice Endpoint

Overview

Fetch Queued Images API fetches queued images

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.

Request

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

Send a POST request to https://modelslab.com/api/v1/enterprise/voice/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.

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/voice/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"
]
}