Recraft: Color Control Image Generation

This ComfyUI workflow uses Recraft partner nodes to generate images from text prompts while enforcing a custom color palette. At its core, RecraftTextToImageNode handles image synthesis, with style presets provided by RecraftStyleV3DigitalIllustration, RecraftStyleV3RealisticImage, and RecraftStyleV3LogoRaster. You define brand or project colors with one or more RecraftColorRGB nodes, then route them through RecraftControls to guide how strictly the model adheres to your palette. The final raster output is written with SaveImage. Note: in this integration the seed only controls whether a node re-runs; it does not make results deterministic.

For vector-ready deliverables, the optional "Convert into SVG (need credits)" group passes the generated image to RecraftVectorizeImageNode and saves scalable output via SaveSVGNode—ideal for logos and flat illustrations. MarkdownNote nodes in the graph provide in-workflow guidance and links to the Recraft API tutorial and partner node overview. Because these are API-backed nodes, you must run in a secure environment (localhost or 127.0.0.1 for local testing, or https for web contexts) with working connectivity to the Recraft service.

API

Use this workflow from code

Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.

GET https://comfy.org/workflows/download/f4e6a39713e4.json
Fetching workflow JSON…

Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

# Install (beta)
pip install comfy-sdk        # Python
npm i @comfyorg/sdk          # TypeScript

# Run "Recraft: Color Control Image Generation" (Python)
from comfy_sdk import Comfy

client = Comfy(api_key="comfyui-...")

# This workflow, exported in API format (see note below)
wf = client.workflows.from_file("api_recraft_image_gen_with_color_control_api.json")

job = client.run(wf)
for output in job.get_outputs("21"):  # SaveSVGNode
    output.to_file(output.name)

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key

FAQ

Frequently Asked Questions

View all workflows
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates