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
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

ParameterData TypeRequiredRangeDescription
imageIMAGEYes-The input image to process
promptSTRINGYes-Prompt for the image generation (default: empty)
nINTYes1-6The number of images to generate (default: 1)
seedINTYes0-18446744073709551615Seed to determine if node should re-run; actual results are nondeterministic regardless of seed (default: 0)
recraft_styleSTYLEV3No-Optional style selection for the generated background
negative_promptSTRINGNo-An optional text description of undesired elements on an image (default: empty)
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 NameData TypeDescription
IMAGEIMAGEThe generated image(s) with replaced background