> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Load Model

> This endpoint is used to load a model to your dedicated server.

## Request

Send a `POST` request to below endpoint.

```curl curl theme={null}
--request POST 'https://modelslab.com/api/v1/enterprise/load_model' \

<Note>
  The model selected for loading has to be a **diffusers** model.
</Note>
```

### ControlNet Model url and model\_id table[​](#controlnet-model-url-and-model_id-table "Direct link to ControlNet Model url and model_id table")

| url                                       | model\_id |
| :---------------------------------------- | :-------- |
| lllyasviel/control\_v11p\_sd15\_inpaint   | inpaint   |
| lllyasviel/control\_v11e\_sd15\_ip2p      | ip2p      |
| lllyasviel/control\_v11f1e\_sd15\_tile    | tile      |
| lllyasviel/control\_v11e\_sd15\_shuffle   | shuffle   |
| lllyasviel/control\_v11p\_sd15\_softedge  | softedge  |
| lllyasviel/control\_v11p\_sd15\_scribble  | scribble  |
| lllyasviel/control\_v11p\_sd15\_lineart   | lineart   |
| lllyasviel/control\_v11p\_sd15\_normalbae | normalbae |
| lllyasviel/control\_v11f1p\_sd15\_depth   | depth     |
| lllyasviel/control\_v11p\_sd15\_mlsd      | mlsd      |
| lllyasviel/control\_v11p\_sd15\_canny     | canny     |

## Load a .ckpt or .safetensors Model from Civitai

```json json theme={null}
{  
  "key": "enterprise_api_key",  
  "url": "https://civitai.com/api/download/models/94640",  
  "model_id": "majicmix-realistic",  
  "model_type": "custom_ckpt",  
  "from_safetensors": "yes",  
  "webhook": "https://modelslab.com",  
  "revision": "fp32",  
  "upcast_attention": "no"
}
```

## Load a Huggingface Model

```json json theme={null}
{  
  "key": "enterprise_api_key",  
  "url": "wavymulder/Analog-Diffusion",  
  "model_id": "analog-diffusion",  
  "model_type": "huggingface",  
  "from_safetensors": "no",  
  "webhook": "https://modelslab.com",  
  "revision": "fp32",  
  "upcast_attention": "no"
}
```

## Load a ControlNet Model

```json json theme={null}
{  
  "key": "enterprise_api_key",  
  "url": "lllyasviel/control_v11p_sd15_canny",  
  "model_id": "canny",  
  "model_type": "controlnet",  
  "webhook": "https://modelslab.com",  
  "revision": "fp32",  
  "upcast_attention": "no"
}
```

## Attributes

<ParamField path="key" type="string" required>
  Your enterprise API Key used for request authorization.
</ParamField>

<ParamField path="url" type="string" required>
  The URL of the Hugging Face model, a <code>.ckpt</code> download link, or a trained model from our Dreambooth API.
</ParamField>

<ParamField path="model_id" type="string" required>
  Unique name (ID) for your model. The model will be saved under this ID and can be referenced later when generating images.
</ParamField>

<ParamField path="from_safetensors" type="string" enum="[&#x22;yes&#x22;,&#x22;no&#x22;]" default="no">
  Set this to "yes" if loading a <code>.safetensors</code> file; otherwise use "no". Default: no.
</ParamField>

<ParamField path="model_type" type="string" enum="[&#x22;huggingface&#x22;,&#x22;api_trained&#x22;,&#x22;custom_ckpt&#x22;,&#x22;lora&#x22;,&#x22;controlnet&#x22;]" required>
  The type of model to load. Options: huggingface, api\_trained, custom\_ckpt, lora, controlnet.
</ParamField>

<ParamField path="revision" type="string" enum="[&#x22;fp16&#x22;,&#x22;fp32&#x22;]" default="fp32">
  Precision revision of the model. Options: fp16 or fp32. Default: fp32.
</ParamField>

<ParamField path="webhook" type="string">
  A webhook URL to receive a POST callback when the model load event completes.
</ParamField>

<ParamField path="upcast_attention" type="string" enum="[&#x22;yes&#x22;,&#x22;no&#x22;]" default="no">
  Set to "yes" only when loading a Stable Diffusion 2.1 model; otherwise leave as "no". Default: no.
</ParamField>
