Skip to main content

Enterprise: Verify Model Endpoint

Overview

The Enterprise: Verify Model endpoint is used to check if a particular model exists.

This endpoint is useful when you have loaded a new model and want to check if it is already available for usage.

Request

--request POST 'https://stablediffusionapi.com/api/v1/enterprise/verify_model' \

Send a POST request to https://stablediffusionapi.com/api/v1/enterprise/verify_model endpoint to verify if a certain model exists on your dedicated server. Specify the model by using the model_id parameter in the request body.

Watch the how-to video to see it in action.

Attributes

ParameterDescription
keyYour enterprise API Key used for request authorization.
model_idThe ID of the model to be verified.

Example

Body

Body Raw
{
"key": "enterprise_api_key",
"model_id": "ckpt-model"
}

Request

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

var raw = JSON.stringify({
"key": "",
"model_id": "model_id"
});

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

model_reload("https://stablediffusionapi.com/api/v1/enterprise/verify_model", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Response

{
"status": "success",
"message": "Model exists on server"
}