Recraft v4: Text to Image

The 'Recraft v4: Text to Image' workflow is designed to transform text prompts into high-resolution images, utilizing the advanced capabilities of the Recraft V4 model. This workflow leverages several nodes, including the RecraftV4TextToImageNode, which is the core component responsible for interpreting textual descriptions and generating corresponding visuals. The RecraftControls node provides users with the ability to fine-tune color settings, ensuring that the output aligns with specific aesthetic preferences. Additionally, the SaveImage node allows for easy storage of the generated images, making it convenient to manage and share results.

Technically, this workflow stands out due to its focus on realism and precision. The Recraft V4 model is renowned for its ability to produce images with high text accuracy and detailed vector graphics, making it particularly useful for applications that require intricate designs or clear textual elements. Users can choose between generating images at 1024x1024 or 2048x2048 resolutions, offering flexibility depending on the project requirements. This workflow is especially beneficial for creatives and professionals who need high-quality visuals quickly and efficiently.

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_v4_t2i.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 v4: Text to Image" (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_v4_t2i_api.json");

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

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