> ## 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/pony/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_category": "stable_diffusion",  
  "model_format": "safetensors",  
  "webhook": "https://modelslab.com"
}
```

## Load a Huggingface Model

```json json theme={null}
{  
  "key": "enterprise_api_key",  
  "url": "wavymulder/Analog-Diffusion",  
  "model_id": "analog-diffusion",  
  "model_category": "stable_diffusion",  
  "model_format": "diffusers",  
  "webhook": "https://modelslab.com"
}
```

## Load a ControlNet Model

```json json theme={null}
{  
  "key": "enterprise_api_key",  
  "url": "lllyasviel/control_v11p_sd15_canny",  
  "model_id": "canny",  
  "model_category": "controlnet",  
  "model_format": "diffusers",  
  "webhook": "https://modelslab.com"
}
```

## 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="model_category" type="string" enum="[&#x22;lora&#x22;,&#x22;embeddings&#x22;,&#x22;stable_diffusion&#x22;,&#x22;stable_diffusion_xl&#x22;,&#x22;controlnet&#x22;]" required>
  The category of the model to load. Options: lora, embeddings, stable\_diffusion, stable\_diffusion\_xl, controlnet.
</ParamField>

<ParamField path="model_format" type="string" enum="[&#x22;ckpt&#x22;,&#x22;safetensors&#x22;,&#x22;pt&#x22;,&#x22;diffusers&#x22;]" required>
  The format of the model to load. Options: ckpt, safetensors, pt, diffusers.
</ParamField>

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