Skip to main content

Get Queued Response Endpoint

Overview

The Get Queued Chat endpoint helps to get a chat that is being queued. Pass the chat_id of the conversion to get the currently queued chat.

Request

--request POST 'https://modelslab.com/api/v6/llm/get_queued_response' \

Make a POST request to https://modelslab.com/api/v6/llm/get_queued_response endpoint and pass the required parameters in the request body.

Body Attributes

ParameterDescription
keyYour API Key used for request authorization
chat_idID of the chat you want to retrieve. All metadata of your chat will be returned.

Example

Body

Body
{
"key": "",
"chat_id" : "49afc793-803b-4b4a-bac9-d2f9318c2b8f"
}

Request

var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
"key": "",
"chat_id" : "49afc793-803b-4b4a-bac9-d2f9318c2b8f",
});

var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};

fetch("https://modelslab.com/api/v6/llm/get_queued_response", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Response

Example Response
{
"status": "success",
"output": [
"https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/chats/49afc793-803b-4b4a-bac9-d2f9318c2b8f.json"
],
"message": "",
"chat_id": "49afc793-803b-4b4a-bac9-d2f9318c2b8f",
"meta": {
"chat_id": "49afc793-803b-4b4a-bac9-d2f9318c2b8f",
}
}