
This ComfyUI workflow, titled 'Flux.1 Dev: Text to Image', is designed to generate high-quality images from text prompts using the Flux Dev full version. The workflow leverages multiple model files and requires substantial VRAM to operate effectively. It is particularly noted for its superior prompt-following capabilities and exceptional image quality. Key components of this workflow include the VAEDecode and SaveImage nodes, which are responsible for decoding the latent representations into images and saving the final output, respectively. The KSampler node plays a crucial role in sampling the latent space to generate diverse image outputs. The workflow also utilizes the UNETLoader and VAELoader nodes for loading the UNET and VAE models, which are essential for the diffusion process. Additionally, the CLIPTextEncodeFlux node encodes the text prompt into a format that the model can understand, ensuring that the generated images closely align with the input text.
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.
GET https://comfy.org/workflows/download/b993c1885a29.jsonFetching workflow JSON…
Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
# Install (beta)
pip install comfy-sdk # Python
npm i @comfyorg/sdk # TypeScript
# Run "Flux.1 Dev: Text to Image" (Python)
from comfy_sdk import Comfy
client = Comfy(api_key="comfyui-...")
# This workflow, exported in API format (see note below)
wf = client.workflows.from_file("flux_dev_full_text_to_image_api.json")
job = client.run(wf)
for output in job.get_outputs("9"): # SaveImage
output.to_file(output.name)The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key
FAQ














