ComfyUI > Nodes > ComfyUI > Recraft Replace Background

ComfyUI Node: Recraft Replace Background

Class Name

RecraftReplaceBackgroundNode

Category
api node/image/Recraft
Author
ComfyAnonymous (Account age: 763days)
Extension
ComfyUI
Latest Updated
2026-05-13
Github Stars
112.77K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Recraft Replace Background Description

Automated background replacement node using user prompts for image editing efficiency and creative flexibility.

Recraft Replace Background:

The RecraftReplaceBackgroundNode is designed to seamlessly replace the background of an image based on a user-provided prompt. This node leverages advanced image processing techniques to interpret the prompt and generate a new background that aligns with the described scene or theme. It is particularly beneficial for artists and designers looking to quickly alter the context or mood of an image without manually editing each element. By automating the background replacement process, this node saves time and enhances creativity, allowing you to focus on the artistic aspects of your work. The node's ability to generate multiple variations based on a single prompt further enriches the creative process, offering diverse options to choose from.

Recraft Replace Background Input Parameters:

image

This parameter accepts the input image whose background you wish to replace. It serves as the base for the transformation process, and the quality and resolution of this image can impact the final output.

prompt

The prompt is a textual description that guides the generation of the new background. It should be detailed enough to convey the desired scene or elements you want in the background. This parameter supports multiline input, allowing for comprehensive descriptions. The default value is an empty string.

n

This integer parameter specifies the number of images to generate. It allows you to create multiple variations of the background replacement, providing a range of options to choose from. The minimum value is 1, the maximum is 6, and the default is 1.

seed

The seed is an integer used to determine if the node should re-run. While the actual results are nondeterministic, setting a seed can help in reproducing similar outcomes across different runs. The default value is 0, with a range from 0 to 18,446,744,073,709,551,615.

recraft_style

This optional parameter allows you to apply a specific style to the generated background. It accepts a custom input of type RecraftIO.STYLEV3, enabling stylistic consistency across different images.

negative_prompt

The negative prompt is an optional text description of elements you wish to exclude from the generated background. It helps refine the output by avoiding undesired features. The default value is an empty string, and it is a forced input, meaning it must be explicitly set if used.

Recraft Replace Background Output Parameters:

image

The output is an image with the newly generated background based on the provided prompt. This image reflects the creative transformation applied by the node, showcasing the integration of the new background with the original foreground elements.

Recraft Replace Background Usage Tips:

  • Experiment with different prompts to explore a variety of background styles and themes, enhancing the creative possibilities of your project.
  • Utilize the n parameter to generate multiple background variations, allowing you to select the most suitable option for your artistic vision.
  • Consider using the negative_prompt to fine-tune the output by excluding specific elements that may not align with your desired outcome.

Recraft Replace Background Common Errors and Solutions:

Invalid image input

  • Explanation: This error occurs when the input image is not in a supported format or is corrupted.
  • Solution: Ensure that the image is in a compatible format (e.g., JPEG, PNG) and is not damaged before inputting it into the node.

Prompt too vague

  • Explanation: A vague prompt can lead to unsatisfactory or unexpected background generation.
  • Solution: Provide a more detailed and specific prompt to guide the background generation process effectively.

Seed value out of range

  • Explanation: The seed value provided is outside the acceptable range.
  • Solution: Ensure the seed value is between 0 and 18,446,744,073,709,551,615 to avoid this error.

Recraft Replace Background Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Recraft Replace Background