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.

api_recraft_image_gen_with_color_control.json
Fetching workflow JSON…

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

// Install (beta)
npm i @comfyorg/sdk

// Run "Recraft: Color Control Image Generation" (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });

// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("api_recraft_image_gen_with_color_control_api.json");

const job = await client.run(wf);
await job.getOutputs("21")[0].toFile("output.png"); // SaveSVGNode

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).

Comfy Cloud API access requires a plan with an API key.

FAQ

Frequently Asked Questions

View all workflows
Showing 30 of 30 templates