Sign In

Ultimate Flux Workflow | Beginner Friendly (Upscaler + AI Prompt Enhancer)

50
924
20
Type
Workflows
Stats
924
Reviews
Published
Aug 11, 2024
Base Model
Flux.1 D
Hash
AutoV2
0B0CDEF581
default creator card background decoration
Flux Training Contest Participant
cthl's Avatar
cthl
The FLUX.1 [dev] Model is licensed by Black Forest Labs. Inc. under the FLUX.1 [dev] Non-Commercial License. Copyright Black Forest Labs. Inc.
IN NO EVENT SHALL BLACK FOREST LABS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH USE OF THIS MODEL.

The Preset Text Node from ComfyUI-Custom-Scripts was broken by the recent ComfyUI update.

Temporary solution: launch your ComfyUI with the following arguments:

--front-end-version Comfy-Org/[email protected]


* Check out my latest workflow, Simplified ComfyUI Workflow Pack!
It includes the new Xlabs Sampler workflows and offers the same functionalities as before, plus support for negative prompts and LoRA loaders for Flux. It's more up-to-date and packed with powerful features!

Overview


This workflow is optimized for the Flux.1 model, using Grok's API (free as of now) with the llama3-70b-8192 model. It supports both Flux.1-Dev fp16 and fp8 versions (other versions are untested).

Features

  • Built-in Upscaler: Enhance your images with the Ultimate SD Upscaler node for high-resolution results.

  • LLM Support: Generate or enhance text and captions with the LLM node. Supports both Grok API (free) and OpenAI (paid) via Tara-LLM-Integration.

  • Predefined Prompt Guides: Four prompt guidance options available: General, Person Photography, Anime, Digital Art. (You can add your own.)

  • Beginner Friendly: Instructions, model download links, and parameters are included as notes in the workflow.


⚠️ Warning ⚠️

The images you generate will not only contain your workflow but your API key as well. This will expose your Grok/OpenAI API key! Make sure you take care of that before posting it anywhere. You can use this exif remover for free, or any of your choice.

Installation

ComfyUI Manager

  1. Install ComfyUI Manager from this link.

  2. If you encounter red nodes, open ComfyUI Manager, click “Install Missing Custom Nodes,” and restart ComfyUI.

Models

  • Flux.1-dev-fp8: Download here

    • Place in: ComfyUI/ComfyUI/models/unet

  • Clip1: Download here

    • Place in: ComfyUI/ComfyUI/models/clip

  • Clip2: Download here

    • Place in: ComfyUI/ComfyUI/models/clip

  • VAE: Download here

    • Place in: ComfyUI/ComfyUI/models/vae

  • Upscaler Model (ESRGAN_4x): Install via ComfyUI Manager

    • Go to “Model Manager,” search for “ESRGAN_4x,” and install.

API Key

To get a free Grok API key:

  1. Visit Grok API Console.

  2. Generate your API key.

  3. Add the API key to the ‘Tara LLM Config Node 🌐’ api_key section.

Loading the Workflow

  1. Restart ComfyUI.

  2. Clear the workflow.

  3. Load the Flux_Ultimate_Workflow_With_Upscaler-cthl.json.

Manual vs Enhanced LLM Prompts

  • Manual Prompt: Connect the Manual Prompt node to the CLIP Text Encode (Prompt)'s 'text' input. Bypass the Tara Advanced LLM Node.

  • Enhanced LLM Prompts: Connect the Tara Advanced LLM Node’s positive output to the CLIP Text Encode (Prompt)'s 'text' input and enable the bypassed Tara Advanced LLM Node.

Image Dimensions

Set your image width and height in the 'Load Model' group under Image width and Image height. If using the upscaler, ensure the tile_width and tile_height match these dimensions. Otherwise, you can bypass the upscaler node by right-clicking and selecting “bypass.”

Prompt Guide Selection (Presets)

I've realized that the presets are also stored in the browser's local storage, which might cause issues when loading the workflow on different computers or browsers.
You can find the predefined preset instructions in the zip file, labeled as Prompt_Guide_Presets.txt, or you can get it here.

Simply click on the 'manage' button in 'Prompt Guide Selection' node, and you can add them.


This is my first public workflow. Give it a ❤️ if you like it :)