Skip to main content

Fetch Queued Video Endpoint

Overview​

The Fetch Queued Video API retrieves videos that are currently queued or have been processed.
Complex video generation requests often require additional processing time and are queued. These videos can be fetched using this endpoint.

Fetch Queued Videos endpoint result

Request​

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

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

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

Response​

{
"status": "success",
"id": 147,
"output": [
"https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/generations/2be1702e-3a1f-46ee-811c-350cee84b66e.gif"
],
"proxy_links": [
"https://cdn2.stablediffusionapi.com/generations/2be1702e-3a1f-46ee-811c-350cee84b66e.gif"
]
}