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

Usa este flujo de trabajo desde código

Cada flujo de trabajo de Comfy es un grafo JSON. El siguiente payload es este flujo de trabajo, exactamente como lo ejecuta ComfyUI: descárgalo desde la URL, guárdalo en control de versiones o cárgalo en ComfyUI y ejecútalo nodo por nodo.

3f2afb56cdb2.json
Obteniendo JSON del flujo de trabajo…

Ejecuta desde TypeScript o Python con el Comfy SDK. El mismo código funciona en Comfy Cloud o en un ComfyUI propio: solo cambia la URL base.

// 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");

El SDK utiliza un flujo de trabajo en formato API: abre este flujo de trabajo en ComfyUI y usa Archivo → Exportar flujo de trabajo (API).

El acceso a la API de Comfy Cloud requiere un plan con clave API.

Ver todos los workflows
Showing 30 of 30 templates