Skip to main content

Enterprise: Load Vae

Overview

The Enterprise: This endpoint helps to load vae

Request

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

Send a POST request to https://stablediffusionapi.com/api/v1/enterprise/load_vae endpoint to load vae

Attributes

ParameterDescription
keyYour enterprise API Key used for request authorization.
webhookSet an URL to get a POST API call once the image generation is complete.
vae_idid of the vae.
vae_urlurl of the vae
vae_typetype of the vae.

Example

Body

Body Raw
{
"key": "enterprise_api_key",
"webhook": "http://webhook-url.com",
"vae_id": "vae-kl-f8-anime2",
"vae_url": "bullhug/kl-f8-anime2",
"vae_type": "diffusers"
}

Request

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

var raw = JSON.stringify({
"key": "",
"webhook": "http://webhook-url.com",
"vae_id": "vae-kl-f8-anime2",
"vae_url": "bullhug/kl-f8-anime2",
"vae_type": "diffusers"
});

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

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

Response

{
"status": "success",
"message": "VAE load started"
}