Inpaint Image
inpaint_imageReplace masked areas of an image with new content generated from a text prompt. Provide a source image and a grayscale mask where white indicates the region to fill.
Instructions
Inpaint (fill in) a masked region of an image based on a text prompt. Requires the original image and a grayscale mask (white = inpaint, black = preserve).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of output images (1-6). | |
| mask | Yes | Grayscale PNG mask as a URL or base64-encoded string. White = areas to inpaint, black = areas to preserve. | |
| image | Yes | Source image as a URL or base64-encoded string. | |
| model | No | Model to use. | |
| style | No | Style category. | |
| prompt | Yes | Description of what to generate in the masked area. | |
| style_id | No | Custom style ID. | |
| substyle | No | Substyle. | |
| random_seed | No | Seed for reproducibility. | |
| image_format | No | Output format. | |
| negative_prompt | No | What to avoid. |