Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
⚡ NEW: Flux Klein 9B — Faster inference, stunning quality · Try Now
cURL
Load a ckpt or safetensors Model from Civitai
{ "status": "success", "message": "model load started" }
{ "status": "error", "message": "<string>", "code": 123 }
This endpoint is used to load a private or public model
POST
--request POST 'https://modelslab.com/api/v3/load_model' \
{ "key": "your_api_key", "url": "https://civitai.com/api/download/models/132760?type=Model&format=SafeTensor&size=pruned&fp=fp16", "revision": "fp32", "model_id": "stable-diffusion-1.0-inpainting-0.1", "force_load": "yes", "model_category": "stable_diffusion_xl", "model_format": "safetensors", "model_visibility": "public", "model_name": "stable-diffusion-1.0-inpainting-0.1", "model_image": "https://assets.modelslab.ai/generations/95aebdb1-302f-42c4-b461-64b6ce9214e4", "hf_upload": "no" }
{ "key": "your_api_key", "url": "diffusers/stable-diffusion-xl-1.0-inpainting-0.1", "model_id": "stable-diffusion-xl-1.0-inpainting-0.1", "force_load": "yes", "revision": "fp16", "model_category": "stable_diffusion_xl", "model_format": "diffusers", "model_visibility": "public", "model_name": "stable-diffusion-xl-1.0-inpainting-0.1", "model_image": "https://assets.modelslab.ai/generations/95aebdb1-302f-42c4-b461-64b6ce9214e4", "hf_upload": "no" }
Your API Key used for request authorization
The URL of the Huggingface model, CKPT download link, or Safetensors model
Choose a name (ID) for your model. The loaded model will be saved under this ID
Available options are "diffusers", "safetensors", or "ckpt"
diffusers
safetensors
ckpt
The category of the model you want to upload
stable_diffusion
stable_diffusion_xl
flux
z_image
It accepts "private" or "public"
private
public
The name you want to give your model
Set this to "yes" if you want to reload automatically once upload fails; otherwise pass "no"
yes
no
Specify whether the loaded model is "fp16" or "fp32"
fp16
fp32
for lora models, specify the model sub category as lora
lora
A valid image URL to display the model when uploaded
It accepts "yes" or "no"
Model load started successfully
"success"
"model load started"
Was this page helpful?