Inpaint Image
inpaint-imageEdit specific areas of images using masks. Provide an image, a mask indicating the area to edit, and a prompt describing the desired changes. Returns a request ID that can be used with fetch-image to retrieve results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description of what to paint in the masked area. | |
| webhook | No | URL to receive webhook notification when generation completes. | |
| model_id | Yes | The model ID to use for inpainting. | |
| strength | No | Strength of the transformation (0-1). Higher values mean more change. | |
| track_id | No | Custom tracking ID for the request. | |
| init_image | Yes | URL or base64 string of the input image to edit. | |
| mask_image | Yes | URL or base64 string of the mask image (white areas will be edited, black areas preserved). | |
| negative_prompt | No | Things to avoid in the generated content. |