Recraft 4.1 flash: Text to Image

This minimal, fast text-to-image workflow uses the RecraftV4TextToImageNode to call the Recraft V4.1 Flash model and return a single image from your prompt. It’s designed for speed and low cost, making it ideal for rapid iteration, high-volume generation, photography/portrait drafts, atmospheric scene ideation, and quick logo concept exploration. There are no file inputs—just write a prompt, run the node, and get one image back.

Technically, the RecraftV4TextToImageNode serializes your prompt and sends it to the Recraft API for inference with the V4.1 Flash backend, then outputs a ComfyUI image tensor. That tensor flows directly into SaveImage, which writes the result to your ComfyUI/output directory using the filename prefix and format set in the node. Depending on the node’s implementation, you may also have common controls (such as image size and seed). Because the workflow produces exactly one image per execution, it’s straightforward to queue many runs for A/B testing or bulk prompt variations.

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.

3f2afb56cdb2.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 this workflow (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });
const wf = await client.workflows.fromFile("workflow_api.json");
const job = await client.run(wf);
await job.getOutputs("<output-node-id>")[0].toFile("output.png");

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