Enterprise: Load Model

Load model to your dedicated server.


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

Make a POST request to https://stablediffusionapi.com/api/v1/enterprise/load_model endpoint. It needs to be diffusers model.

How to Video Guide
Click HERE to watch a how to video.

key : Your API Key
url :url of huggingface model, .ckpt download link, or trained model from our dreambooth api
model_id : this is model_id model will be saved as, you can load model using this id to generate images.
from_safetensors : Pass "yes" if you are loading .safetensor file. Else pass "no"
model_type : "huggingface", "api_trained", "custom_ckpt" , "lora", "embeddings","controlnet"
revision : if model is "fp16" or "fp32"
webhook : webhook to receive response on model load events
upcast_attention : pass "yes" only when you are loading stable diffusion 2.1 model

Controlnet model url list:
lllyasviel/sd-controlnet-canny
lllyasviel/sd-controlnet-depth
lllyasviel/sd-controlnet-hed
lllyasviel/sd-controlnet-mlsd
lllyasviel/sd-controlnet-normal
lllyasviel/sd-controlnet-openpose
lllyasviel/sd-controlnet-scribble
lllyasviel/sd-controlnet-seg

Request Body

Load .ckpt Model from civitai
{
 "key": "enterprise_api_key",
 "url": "https://civitai-prod.5ac0637cfd0766c97916cefa3764fbdf.r2.cloudflarestorage.com/9742/training-images/urpmv12Pruned.pW4x.ckpt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=2fea663d76bd24a496545da373d610fc%2F20230125%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20230125T124757Z&X-Amz-Expires=10800&X-Amz-Signature=7432bb3b59a78fd9f746dc2ada3cae760957959a66af6a3c0f22bb04e23867fc&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3D%22uberRealisticPornMerge_urpmv12.ckpt%22&x-id=GetObject",
 "model_id": "nckpt-model",
 "model_type": "custom_ckpt",
 "webhook": "https://stablediffusionapi.com",
 "revision": "fp32",
 "upcast_attention": "no"
}
Load Huggingface Model
{
 "key": "enterprise_api_key",
 "url": "wavymulder/Analog-Diffusion",
 "model_id": "analog-diffusion",
 "model_type": "huggingface",
 "webhook": "https://stablediffusionapi.com",
 "revision": "fp32",
 "upcast_attention": "no"
}
Load Controlnet Model
{
 "key": "enterprise_api_key",
 "url": "lllyasviel/sd-controlnet-hed",
 "model_id": "hed",
 "model_type": "controlnet",
 "webhook": "https://stablediffusionapi.com",
 "revision": "fp32",
 "upcast_attention": "no"
}
Example Response
{
"message": "model load started",
"status": "success"
}