Skip to main content
Replace background on image, based on provided prompt. This node uses the Recraft API to generate new backgrounds for your images according to your text description, allowing you to completely transform the background while keeping the main subject intact.

Inputs

ParameterDescriptionData TypeRequiredRange
imageThe input image to processIMAGEYes-
promptPrompt for the image generation (default: empty)STRINGYes-
nThe number of images to generate (default: 1)INTYes1-6
seedSeed to determine if node should re-run; actual results are nondeterministic regardless of seed (default: 0)INTYes0-18446744073709551615
recraft_styleOptional style selection for the generated background. If not provided, defaults to “realistic_image” styleSTYLEV3No-
negative_promptAn optional text description of undesired elements on an image (default: empty)STRINGNo-
Note: The seed parameter controls when the node re-executes but does not guarantee deterministic results due to the nature of the external API.

Outputs

Output NameDescriptionData Type
IMAGEThe generated image(s) with replaced backgroundIMAGE
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): ce14005093aaac30de3de84c43bd46c0a3327d0ba8de4ea7ec62afa2028c1cae