This API currently supports the following image formats: PNG and JPG.
Request
Make a POST request to below endpoint and pass the required parameters as a request body.
--request POST 'https://modelslab.com/api/v6/realtime/inpaint' \
Body
{
"key": "your_api_key",
"prompt": "a cat sitting on a bench",
"negative_prompt": "bad quality",
"init_image": "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png",
"mask_image": "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo_mask.png",
"width": "512",
"height": "512",
"samples": 1,
"safety_checker": false,
"strength": 0.7,
"base64": false,
"seed": null,
"webhook": null,
"track_id": null
}
Required range: 0 <= x <= 1
Required range: x <= 1024
Required range: x <= 1024
Option 1
Option 2
Option 3
Available options:
success