Skip to main content

Fetch Queued Request Endpoint

Overview

The Fetch Queued Request API retrieves videos that are queued or already generated.
Complex video generation requests often require additional processing time and are queued. These videos can be fetched using this endpoint.

Request

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

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

Body Attributes

ParameterDescriptionValues
keyYour API Key used for request authorization.String

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/v6/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
}