
This ComfyUI workflow generates images from text using Flux.1 Schnell (full) with a minimal, fast sampling setup. It combines DualCLIPLoader to load both CLIP-L and T5XXL text encoders, CLIPTextEncodeFlux to turn your prompts into Flux-ready conditioning, and UNETLoader to load the flux1-schnell.safetensors diffusion model. EmptySD3LatentImage defines the latent canvas size and batch, KSampler performs denoising in as few as four steps, and VAELoader + VAEDecode reconstruct the final image for SaveImage to write to disk. A ConditioningZeroOut node provides an unconditional branch for classifier-free guidance when you’re not using a negative prompt. MarkdownNote nodes in the canvas clarify what to do at each stage.
Technically, the workflow follows a standard latent diffusion path adapted for Flux/SD3-style latents: initialize an EmptySD3LatentImage, encode text with CLIPTextEncodeFlux, run the UNet through KSampler with a low step-count tuned for the Schnell variant, then decode with the selected VAE. The “Step 1 - Load Models Here” group centralizes model selection: flux1-schnell in UNETLoader, CLIP-L + T5XXL in DualCLIPLoader, and a compatible VAE in VAELoader. “Step 2 - Image Size” sets your width/height and batch, and “Step 3 - Prompt” handles positive/negative prompts. The result is a fast, 4-step text-to-image pipeline that balances speed and quality under the permissive Apache-2.0 license for the Flux.1 Schnell weights.
API
코드에서 이 워크플로우 사용하기
모든 Comfy 워크플로우는 JSON 그래프입니다. 아래 페이로드는 이 워크플로우 그 자체로, ComfyUI에서 실행되는 것과 동일합니다 — URL에서 가져오거나, 버전 관리에 보관하거나, ComfyUI에서 불러와 노드별로 실행할 수 있습니다.
Comfy SDK로 TypeScript 또는 Python에서 실행하세요. 동일한 코드는 Comfy Cloud 또는 직접 호스팅하는 ComfyUI 모두에 적용됩니다 — 기본 URL만 다릅니다.
// Install (beta)
npm i @comfyorg/sdk
// Run "FLUX.1 Schnell Full: 텍스트 기반 이미지 생성" (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("flux_schnell_full_text_to_image_api.json");
wf.setInput("41", "text", "your prompt here"); // CLIPTextEncode
const job = await client.run(wf);
await job.getOutputs("9")[0].toFile("output.png"); // SaveImageSDK는 API 형식의 워크플로우를 사용합니다: 이 워크플로우를 ComfyUI에서 열고 파일 → 워크플로우 내보내기(API)를 사용하세요.
FAQ













