recraft_inpaint
Replace or regenerate specific image areas using a mask: white regions are redrawn, black regions stay unchanged. Use it to edit isolated parts of an image without affecting the rest.
Instructions
Edit specific regions of an image using a mask. White mask areas are regenerated, black areas are preserved. V3/V3 Vector only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of images to generate (1-6) | |
| model | No | Model (V3 only) | recraftv3 |
| style | No | Style name | |
| prompt | Yes | What to generate in the masked region | |
| controls | No | Generation controls | |
| style_id | No | Custom style UUID | |
| file_path | Yes | Local path to source image | |
| mask_path | Yes | Local path to mask image (white=inpaint, black=preserve) | |
| text_layout | No | Text placement on image | |
| negative_prompt | No | What to exclude | |
| response_format | No | Response format | url |