Skip to main content

Fetch Queued Video Endpoint

Overview

Fetch Queued Video API fetches queued video.

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.

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

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

Response

Example 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"
]
}