ComfyUI > Nodes > ComfyUI > Recraft Image Inpainting

ComfyUI Node: Recraft Image Inpainting

Class Name

RecraftImageInpaintingNode

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 Image Inpainting Description

Image inpainting node for intelligent image modification guided by prompts, ideal for repairing, removing, or altering image content creatively.

Recraft Image Inpainting:

The RecraftImageInpaintingNode is designed to modify images by intelligently filling in areas specified by a mask, guided by a user-provided prompt. This node is particularly useful for tasks such as repairing damaged images, removing unwanted elements, or creatively altering parts of an image while maintaining a coherent and aesthetically pleasing result. By leveraging advanced inpainting techniques, it allows you to seamlessly integrate new content into existing images, guided by descriptive prompts that dictate the desired outcome. This node is a powerful tool for artists and designers looking to enhance or transform images with precision and creativity.

Recraft Image Inpainting Input Parameters:

image

This parameter accepts the input image that you wish to modify. The image serves as the base canvas upon which the inpainting process will be applied. It is crucial as it determines the context and background for the modifications.

mask

The mask parameter specifies the areas of the image that should be modified. It acts as a guide for the inpainting process, indicating which parts of the image should be altered based on the provided prompt. The mask is essential for targeting specific regions for modification.

prompt

The prompt is a text input that describes the desired modifications to the image. It guides the inpainting process by providing a creative direction for how the masked areas should be filled. This parameter supports multiline input and has a default value of an empty string.

n

This integer parameter determines the number of images to generate. It allows you to specify how many variations of the inpainted image you would like to create, with a minimum value of 1 and a maximum of 6. The default value is 1.

seed

The seed parameter is an integer used to control the randomness of the inpainting process. While the actual results are nondeterministic, the seed can influence whether the node should re-run. It has a default value of 0 and can range from 0 to 0xFFFFFFFFFFFFFFFF.

recraft_style

This optional parameter allows you to specify a style for the inpainting process. It accepts a custom input of type RecraftIO.STYLEV3, enabling you to apply stylistic elements to the generated images.

negative_prompt

The negative prompt is an optional text input that describes elements you wish to avoid in the inpainted image. It provides additional guidance to the inpainting process by specifying undesired features or objects. The default value is an empty string, and it is a force input, meaning it must be explicitly provided if used.

Recraft Image Inpainting Output Parameters:

image

The output parameter is the modified image(s) resulting from the inpainting process. This output reflects the changes made based on the mask and prompt, providing you with the final inpainted image(s) that incorporate the specified modifications.

Recraft Image Inpainting Usage Tips:

  • Use a detailed and specific prompt to guide the inpainting process effectively, ensuring that the generated content aligns with your creative vision.
  • Experiment with different mask shapes and sizes to achieve various effects, such as subtle modifications or significant transformations.
  • Adjust the n parameter to generate multiple variations of the inpainted image, allowing you to choose the best result from several options.

Recraft Image Inpainting Common Errors and Solutions:

Invalid mask dimensions

  • Explanation: The mask provided does not match the dimensions of the input image.
  • Solution: Ensure that the mask is resized to match the dimensions of the input image before using it in the node.

Prompt exceeds maximum length

  • Explanation: The prompt text exceeds the maximum allowed length of 1000 characters.
  • Solution: Shorten the prompt to fit within the 1000-character limit, focusing on the most critical elements for the inpainting process.

Seed value out of range

  • Explanation: The seed value provided is outside the acceptable range.
  • Solution: Ensure that the seed value is within the range of 0 to 0xFFFFFFFFFFFFFFFF.

Recraft Image Inpainting 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 Image Inpainting