ComfyUI-RecraftAI

ComfyUI-RecraftAI
★ 66

文本到图像Recraft AIAPI集成品牌风格定制
在ComfyUI中调用Recraft AI API进行文本到图像生成,支持长文本输入、丰富风格与品牌配色定制,便于集成SOTA模型。
💡 在ComfyUI内调用Recraft生成带品牌风格的高质量图片。
🍴 6 Forks💻 Python🔄 2025-06-04
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/9d76119b2ef2
📦 requirements.txt
requests
torch
Pillow
numpy
📄 README

ComfyUI-RecraftAI

Recraft AI Logo

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.