Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
This 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

ParameterData TypeRequiredRangeDescription
imageIMAGEYes-The input image to be modified
maskMASKYes-The mask defining which areas of the image should be modified
promptSTRINGYes-Prompt for the image generation (default: empty string)
nINTYes1-6The number of images to generate (default: 1, minimum: 1, maximum: 6)
seedINTYes0-18446744073709551615Seed to determine if node should re-run; actual results are nondeterministic regardless of seed (default: 0, minimum: 0, maximum: 18446744073709551615)
recraft_styleSTYLEV3No-Optional style parameter for Recraft API
negative_promptSTRINGNo-An optional text description of undesired elements on an image (default: empty string)
Note: The 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 NameData TypeDescription
imageIMAGEThe modified image(s) generated based on the prompt and mask