inpaint
Fill masked regions of an image with AI-generated content using a text prompt. Provide input image, mask, and prompt to regenerate selected areas.
Instructions
Fill in masked regions of an image with AI-generated content.
All parameters except prompt, input_image, and mask_image are optional with sensible defaults. Change any parameter to customize.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cfg | No | Guidance scale. Default: 8.0. Typical: 1.0-20.0. | |
| seed | No | Random seed. Default: -1 (random). | |
| steps | No | Sampling steps. Default: 20. Typical: 15-50. | |
| prompt | Yes | Text description of what to generate in the masked area. | |
| denoise | No | Denoising strength for inpainted area. Default: 1.0. Range: 0.0-1.0. | |
| sampler | No | Sampler algorithm. Default: "euler". Use list_samplers_and_schedulers() to see all. | euler |
| scheduler | No | Noise scheduler. Default: "normal". Use list_samplers_and_schedulers() to see all. | normal |
| checkpoint | No | Checkpoint model. Default: "" (auto-selects). Use list_models(folder="checkpoints") to see options. | |
| mask_image | Yes | Filename of the mask image. White areas will be inpainted. | |
| input_image | Yes | Filename of the source image in ComfyUI's input directory. | |
| grow_mask_by | No | Pixels to expand the mask boundary for smoother blending. Default: 6. Range: 0-64. | |
| negative_prompt | No | Things to avoid. Default: "" (none). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||