![]() |
AI image generation API
Now we have provided the API for remove object. Cleanup API |
This is a WEBUI extension that provides image erasure functionality. It supports both UI and API simultaneously. Powered by lama
Clone this project in the WEBUI extensions folder
git clone https://github.com/novitalabs/sd-webui-cleaner.git
https://github.com/novitalabs/sd-webui-cleaner/assets/55743667/3f9f652b-d3b7-4c08-a4c6-0e9fe731c77c
//request-----------------------------------
POST http://127.0.0.1:7860/cleanup
body:
{
"input_image": "<image base64 string>",
"mask": "<mask base64 string>"
}
//response-----------------------------------
{
"code": 0, // 0:success
"message": "ok",
"image": "<image base64 string>"
}
If you don't have a GPU, please set the cleaner_use_cpu parameter to true through the setting page or api.