This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHubThis node modifies images based on a text prompt and mask. It uses the Recraft API to intelligently edit specific areas of an image that you define with a mask, while keeping the rest of the image unchanged.
Inputs
| Parameter | Data Type | Required | Range | Description |
|---|---|---|---|---|
image | IMAGE | Yes | - | The input image to be modified |
mask | MASK | Yes | - | The mask defining which areas of the image should be modified |
prompt | STRING | Yes | - | Prompt for the image generation (default: empty string) |
n | INT | Yes | 1-6 | The number of images to generate (default: 1, minimum: 1, maximum: 6) |
seed | INT | Yes | 0-18446744073709551615 | Seed to determine if node should re-run; actual results are nondeterministic regardless of seed (default: 0, minimum: 0, maximum: 18446744073709551615) |
recraft_style | STYLEV3 | No | - | Optional style parameter for Recraft API |
negative_prompt | STRING | No | - | An optional text description of undesired elements on an image (default: empty string) |
image and mask must be provided together for the inpainting operation to work. The mask will be automatically resized to match the image dimensions.
Outputs
| Output Name | Data Type | Description |
|---|---|---|
image | IMAGE | The modified image(s) generated based on the prompt and mask |