Inputs
| Parameter | Description | Data Type | Required | Range |
|---|---|---|---|---|
image | The input image to be modified | IMAGE | Yes | - |
mask | The mask defining which areas of the image should be modified | MASK | Yes | - |
prompt | Prompt for the image generation (default: empty string, maximum length: 1000 characters) | STRING | Yes | - |
n | The number of images to generate (default: 1, minimum: 1, maximum: 6) | INT | Yes | 1-6 |
seed | Seed to determine if node should re-run; actual results are nondeterministic regardless of seed (default: 0) | INT | Yes | 0-18446744073709551615 |
recraft_style | Optional style parameter for the Recraft API. If not provided, defaults to “realistic_image” style | STYLEV3 | No | - |
negative_prompt | An optional text description of undesired elements on an image (default: empty string) | STRING | No | - |
image and mask must be provided together for the inpainting operation to work. The mask will be automatically resized to match the image dimensions. The prompt is validated and has a maximum length of 1000 characters. If a style_id from the Infinite Style Library is used, ensure it is not a Vector art style, as this may cause the API to return SVG data instead of an image.
Outputs
| Output Name | Description | Data Type |
|---|---|---|
image | The modified image(s) generated based on the prompt and mask. Returns one image per input image multiplied by the n parameter | IMAGE |
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
Source fingerprint (SHA-256):
c0871ae6510d42f5525701dd622f2f84a65103a7eec053635c4bd64102a2a4e6