# FLUX Workflow Recipe

Use this when you want a local FLUX image workflow in ComfyUI.

## What to use

- a FLUX workflow saved in API format
- a FLUX diffusion model in `.safetensors` format
- the matching text encoders and VAE expected by your workflow

## Where to put the model

- put the FLUX diffusion model in `ComfyUI/models/diffusion_models/`
- put any required text encoders and VAE in the folders expected by your workflow

## What to set in the app

1. Set `Engine` to `comfyui`
2. Set `Mode` to `image`
3. Set `Preset` to `FLUX.1-schnell`
4. Set `Server URL` to your local ComfyUI server
5. Pick your saved API-format FLUX workflow JSON
6. Leave `Expected Output` as `png`
7. Click `Refresh Models`
8. Choose `diffusion_models`
9. Pick your FLUX model in `Model Override`

## Recommended node fields

For a typical FLUX-style workflow:

- `Model Node`: `UNETLoader`
- `Model Input`: `model_name`
- `Prompt Node`: the positive text encode node in your workflow
- `Prompt Input`: `text`

If your workflow has a separate negative text node:

- `Negative Prompt Node`: the negative text encode node title or id
- `Negative Prompt Input`: `text`

If node titles differ:

- use the exact node ids from the workflow instead

## Practical defaults

- test one prompt in ComfyUI first
- do not assume every FLUX workflow has identical node titles
- let the workflow keep control of sampler, steps, text encoders, and VAE
- once one render works, the app can handle batching, filenames, manifest, and retries

## Important note

The app preset only fills the common local defaults for FLUX-style graphs.

The workflow still owns:

- text encoder wiring
- VAE
- sampler
- steps
- save node

That keeps the app practical instead of trying to guess every FLUX graph shape.
