Nodes Browser
ComfyDeploy: How ComfyUI-RecraftAI works in ComfyUI?
What is ComfyUI-RecraftAI?
Recraft AI official ComfyUI custom nodes. Recraft V3 (code-named red_panda) is a text-to-image model with the ability to generate long texts, images in a wide list of styles, including custom brand styles.
How to install it in ComfyDeploy?
Head over to the machine page
- Click on the "Create a new machine" button
- Select the
Edit
build steps - Add a new step -> Custom Node
- Search for
ComfyUI-RecraftAI
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
ComfyUI-RecraftAI
<p align="center"><img src="./assets/logo.png" alt="Recraft AI Logo" width="200"></p>This is a custom node for ComfyUI that allows you to use the Recraft AI API. Recraft V3 (code-named red_panda) is a text-to-image model with the ability to generate long texts, images in a wide list of styles, including custom brand styles. It's also possible to set up brand colors. As of today, it is SOTA in image generation, proven by Hugging Face’s industry-leading Text-to-Image Benchmark by Artificial Analysis.
Requirements
Before using this node, you need to have a Recraft AI API key. To generate a key, log in to Recraft, and enter API page and hit 'Generate' (available only if your API units balance is above zero).
Installation
Installing manually
-
Navigate to the
ComfyUI/custom_nodes
directory. -
Clone this repository:
git clone https://github.com/recraft-ai/ComfyUI-RecraftAI.git
The files should be located as
ComfyUI/custom_nodes/ComfyUI-RecraftAI/*
, where*
represents all the files in this repo. -
Install the dependencies:
- Windows (ComfyUI portable):
.\python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\ComfyUI-RecraftAI\requirements.txt
- Linux or MacOS:
cd ComfyUI-RecraftAI && pip install -r requirements.txt
-
If you don't want to expose your key, you can add it into the
config.ini
file and keep it empty in the node. -
Start ComfyUI and enjoy using the Recraft AI API node!
Nodes
RecraftAI Client
This node is used to create a Recraft AI client.
RecraftAI Image Generator
This node is used to generate an image given a text prompt.
RecraftAI Image To Image Transformer
This node is used to transform an input image into an output image given a text prompt.
RecraftAI Background Remover
This node is used to remove background of an image.
RecraftAI Crisp Upscaler
This node is used to enhance an image using ‘crisp upscale’ tool, increasing image resolution, making the image sharper and cleaner.
RecraftAI Creative Upscaler
This node is used to enhance an image using ‘creative upscale’ tool, boosting resolution with a focus on refining small details and faces.
RecraftAI Background Replacer
This node is used to detect and replace background of an image according to a given text prompt.
RecraftAI Inpainter
This node is used to modify specific parts of an image according to mask and text prompt. You should use ComfyUI mask for an input mask. Note, that pixels with mask values >= 0.5 will be filled based on the prompt, while others will keep intact.
API Documentation
For more information about the Recraft AI API, follow the documentation.
Pricing
For pricing, follow Recraft AI Pricing.