HyperAI

FLUX.1-Kontext-dev: Text-driven One-click Image Editing

1. Tutorial Introduction

FLUX.1-Kontext-dev is a flow matching model for generating and editing images, jointly released by the Black Forest Labs team on June 26, 2025. FLUX.1 Kontext's image editing is image editing in a broad sense, which not only supports local image editing (targeted modification of specific elements in the image without affecting the rest), but also achieves character consistency (retaining unique elements in the image such as reference characters or objects to keep them consistent in multiple scenes and environments). The related paper results are "FLUX.1 Kontext: Flow Matching for In-Context Image Generation and Editing in Latent Space".

This tutorial uses a single RTX A6000 card. Project prompts only support English.

2. Project Examples

3. Operation steps

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

2. Usage steps

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

Parameter Description

  • Advanced Settings:
    • Seed: Random seed for repeatability of the image generation process.
    • Randomize seed: Randomize the seed. A new seed will be randomly generated each time an image is generated.
    • Guidance Scale: Guiding the image generation process.
    • Steps: The number of iterations for image generation.

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↓

Citation Information

The citation information for this project is as follows:

@misc{labs2025flux1kontextflowmatching,
      title={FLUX.1 Kontext: Flow Matching for In-Context Image Generation and Editing in Latent Space}, Add commentMore actions
      author={Black Forest Labs and Stephen Batifol and Andreas Blattmann and Frederic Boesel and Saksham Consul and Cyril Diagne and Tim Dockhorn and Jack English and Zion English and Patrick Esser and Sumith Kulal and Kyle Lacey and Yam Levi and Cheng Li and Dominik Lorenz and Jonas Müller and Dustin Podell and Robin Rombach and Harry Saini and Axel Sauer and Luke Smith},
      year={2025},
      eprint={2506.15742},
      archivePrefix={arXiv},
      primaryClass={cs.GR},
      url={https://arxiv.org/abs/2506.15742},
}