Upload any Model
You can upload any model to use on Image Pipeline. Please ensure that you only upload models licensed for commercial use as Public Models
.Models that you have developed for your own or your company's use can be uploaded as Private Models
.
Public Models
Once you upload a Public Model
, it to be available in the Models Page once verification is complete that is it working correctly and adheres to our Terms & Conditions. Please note that any violation of Terms & Conditions will result in a temporary ban or a complete ban.
When uploading a Public Model
, ensure that
- You correctly mark is as NSFW or not
- NSFW includes nudity and obscenity
- Child Pornography, Violence, Gore is a violation of our Terms & Conditions
- Credit the original uploader in the description or it can be reported and taken down
- Add any instructions for using the model in the description
Here's an example for Public Models
- Public Model Load
- Public Model Status
ENDPOINT:
https://api.imagepipeline.io/load_model/v1/
AUTHORIZATION: API-Key
JSON BODY:
{
"model_name": "Add-more-details",
"model_url": "https://civitai.com/api/download/models/87153?type=Model&format=SafeTensor",
"base_model": "sd1.5",
"model_type": "lora",
"description": "Developed for adding more details to SD 1.5 images. Tweak the lora weights between 0.5 to 1.",
"sample_images": ["https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/c1697174-7c8d-4bde-b053-7b1ec0692b64/width=450/xyz_grid-0361-132340235-8k%20portrait%20of%20beautiful%20cyborg%20with%20brown%20hair,%20intricate,%20elegant,%20highly%20detailed,%20majestic,%20digital%20photography,%20art%20by%20artg_.jpeg"],
"tags": "SD 1.5, LoRA",
"nsfw": false,
"revision": "fp16",
"model_extension": "lora",
"trigger_words": "",
"visibility": "public"
}
ENDPOINT:
https://api.imagepipeline.io/load_model/status/{{task_id}}
AUTHORIZATION: API-Key
Body needs to be set to none
Private Models
You can upload Private models to ensure the other users cannot generate images with that model. Use cases include:
- If you have trained a model on your own photos and you do not want them to go public
- If you are using models that are copyrighted by your company
- If you are working on a secret project 😉
Here's an example for Private Models
- Private Model Load
- Private Model Status
ENDPOINT:
https://api.imagepipeline.io/load_model/v1/
AUTHORIZATION: API-Key
JSON BODY:
{
"model_name": "Add-more-details",
"model_url": "https://civitai.com/api/download/models/87153?type=Model&format=SafeTensor",
"base_model": "sd1.5",
"model_type": "lora",
"description": "Developed for adding more details to SD 1.5 images. Tweak the lora weights between 0.5 to 1.",
"sample_images": ["https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/c1697174-7c8d-4bde-b053-7b1ec0692b64/width=450/xyz_grid-0361-132340235-8k%20portrait%20of%20beautiful%20cyborg%20with%20brown%20hair,%20intricate,%20elegant,%20highly%20detailed,%20majestic,%20digital%20photography,%20art%20by%20artg_.jpeg"],
"tags": "SD 1.5, LoRA",
"nsfw": false,
"revision": "fp16",
"model_extension": "lora",
"trigger_words": "",
"visibility": "private"
}
ENDPOINT:
https://api.imagepipeline.io/load_model/status/{{task_id}}
AUTHORIZATION: API-Key
Body needs to be set to none
Response
You will receive a model_id
that you will then need to pass when generating images. Please pass it in the correct parameter depending on the model type.
Model upload Schema:
Field Name | Type | Description |
---|---|---|
model_name | string | Pass the model name. This name will be displayed in Models Page |
pretrained_model_path | string | Pass only if using HuggingFace |
model_url | string | Pass download url of the model file |
base_model | string | Allowed values: "sd1.5", "sdxl" |
model_type | string | Allowed values: "lora", "controlnet", "checkpoint", "embedding" |
description | string | Pass the tips for users to use this model |
model_extension | string | Allowed values: "safetensors", "ckpt" |
revision | string | Allowed values: "fp16", "fp32" |
trigger_words | string | Pass trigger words that need to be added in prompts |
sample_images | array, string | Items: string |
tags | string | Optional comma separated tags. Default: "" |
nsfw | boolean | Whether model is not safe for work. Default: false |
visibility | string | Allowed values: "private", "public" |