Stable Diffusion Inpaint

Use any diffusion model on Civitai to inpaint the mask region of your image!

Try it in the Widget Center

Click this url to try this widget and copy the Pro Config template.

Usage

Utilize diffusion model to fill in the masked region of your image!

Input Parameters

Output Parameters

Output Example

{
  "url": "https://image.myshell.ai/image/chat/embed_obj/40295/20240423/2f1f812747e6468b959ea7dde217b78b.jpg"
}

Detailed Guidelines

  • inpaint

    • Main parameter:

      • image : The input image, can be a url or base64 sting. Any size

      • mask: The correspond mask, can be a url or base64 sting. 1 means the masked region

      • mask_blur : Mask blur refers to the feathering of a mask (from edges to inside the mask), adjusted between 0-64. A smaller value results in sharper edges. Default to 4

      • inpainting_fill : Choose the fill content in mask: 0 - fill, 1 - original, 2 - latent noise, 3 - latent nothing. Default to 1

      • inpainting_mask_invert: 0 - Inpaint masked region, 1 - Inpaint not masked region

      • denoising_strength: Strength of image transfomation during inpainting precess. High means more influence during transformation

Last updated