POST向 https://stablediffusionapi.com/api/v1/enterprise/load_model 接口发送请求。笔记 选择用于加载的模型必须是扩散器模型。
| 网址 | 型号_id |
|---|---|
| lllyasviel/control_v11p_sd15_inpaint | 修复 |
| lllyasviel/control_v11e_sd15_ip2p | ip2p |
| lllyasviel/control_v11f1e_sd15_tile | 瓦 |
| lllyasviel/control_v11e_sd15_shuffle | 随机播放 |
| lllyasviel/control_v11p_sd15_softedge | 软边 |
| lllyasviel/control_v11p_sd15_scribble | 涂 |
| lllyasviel/control_v11p_sd15_lineart | 线条艺术 |
| lllyasviel/control_v11p_sd15_normalbae | 正常情况 |
| lllyasviel/control_v11f1p_sd15_深度 | 深度 |
| lllyasviel/control_v11p_sd15_mlsd | 最小二乘法 |
| lllyasviel/control_v11p_sd15_canny | 精明的 |
{
"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://stablediffusionapi.com",
"revision": "fp32",
"upcast_attention": "no"
}{
"key": "enterprise_api_key",
"url": "wavymulder/Analog-Diffusion",
"model_id": "analog-diffusion",
"model_type": "huggingface",
"from_safetensors": "no",
"webhook": "https://stablediffusionapi.com",
"revision": "fp32",
"upcast_attention": "no"
}{
"key": "enterprise_api_key",
"url": "lllyasviel/control_v11p_sd15_canny",
"model_id": "canny",
"model_type": "controlnet",
"webhook": "https://stablediffusionapi.com",
"revision": "fp32",
"upcast_attention": "no"
}curl --location --request POST 'https://stablediffusionapi.com/api/v1/enterprise/load_model' \
--header 'Content-Type: application/json' \
--data-raw '{
"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://stablediffusionapi.com",
"revision": "fp32",
"upcast_attention": "no"
}'{
"message": "string",
"status": "string"
}