HyperAI

ComfyUI Flex.2-preview Workflow Online Tutorial

1. Tutorial Introduction

Build

Flex.2-preview is a text-to-image diffusion model released by Ostris on April 24, 2025.

Key features:

  • Text-to-image generation: Generate high-quality images based on input text descriptions, support text input of up to 512 tokens, and understand complex descriptions to generate corresponding image content.
  • Built-in inpainting function: supports inpainting or replacing specific areas of an image. The user provides the inpainting image and inpainting mask, and the model generates new image content in the specified area.
  • General control input: Supports multiple control inputs, such as line graphs, state graphs, and depth graphs, to guide the direction of image generation.

This tutorial uses a single RTX 4090 card as the resource and only supports English prompts.

2. Project Examples

3. Operation steps

1. After starting the container, click the API address to enter the Web interface

If "Bad Gateway" is displayed, it means the model is initializing. Since the model is large, please wait about 1-2 minutes and refresh the page.

2. After entering the webpage, you can start a conversation with the model

How to use

The first time you clone, you need to manually open the workflow in the folder and load it. 

4. Discussion

🖌️ If you see a high-quality project, please leave a message in the background to recommend it! In addition, we have also established a tutorial exchange group. Welcome friends to scan the QR code and remark [SD Tutorial] to join the group to discuss various technical issues and share application effects↓