Skip to main content

Enterprise: Fetch Queued Request Endpoint

Overview​

Fetch Queued Request API fetches queued request.

Usually more complex video generation requests take more time for processing. Such requests are being queued for processing and the output videos are retrievable after some time

Request​

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

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

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/deepfake/fetch/{id}", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Response​

Example Response
{
"status": "success",
"id": 263,
"output": [
"https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/generations/6351a2b3-82ce-4d27-8c3d-2f7fa1e19e30.mp4"
],
"tip": "Get 20x faster image generation using enterprise plan. Click here : http://sdapi_backend.test/enterprise",
"proxy_links": null
}