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

Utiliser ce workflow depuis le code

Chaque workflow Comfy est un graphe JSON. Le contenu ci-dessous est ce workflow, exactement comme ComfyUI l’exécute — récupérez-le depuis l’URL, gardez-le dans le contrôle de version, ou chargez-le dans ComfyUI et exécutez-le nœud par nœud.

3f2afb56cdb2.json
Récupération du JSON du workflow…

Exécutez-le depuis TypeScript ou Python avec le Comfy SDK. Le même code cible Comfy Cloud ou un ComfyUI auto-hébergé — seule l’URL de base change.

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

Le SDK prend un workflow au format API : ouvrez ce workflow dans ComfyUI et utilisez Fichier → Exporter le workflow (API).

L’accès à l’API Comfy Cloud nécessite un forfait avec clé API.

Voir tous les workflows
Showing 30 of 30 templates