News

日本語 · English · 中文

FLUX.3 Image Klein by Black Forest Labs Now Available in Diffusers - Generate, Edit, and Control Layout with a Single Model

FLUX.3 Image Klein, an image generation model from Black Forest Labs, is now compatible with Diffusers on Hugging Face. It achieves text-to-image generation, editing with multiple reference images, and layout control via bounding boxes using a single model. According to Hugging Face's blog, the distilled version generates a 1024x1024 image in approximately 2 seconds on an H100. It supports quantized weights and LoRA fine-tuning and is available via Hugging Face's Diffusers.

Announcement Summary

Black Forest Labs’ image generation model, “FLUX.3 Image Klein,” is now available in Diffusers on Hugging Face. A single model can generate images from text, perform image editing using multiple reference images, and control layout via bounding boxes. The model is provided as a Diffusers pipeline (Modular Diffusers) on Hugging Face, and its usage and technical details were introduced in a Hugging Face blog post published on October 15, 2026. The blog states that it “works out of the box with Diffusers.”

Key Features

  • Text-to-Image Generation: The distilled checkpoint generates 1024×1024 images in 16 steps. Prompts specify the subject, setting, lighting, composition, and style.
  • Image-to-Image Editing: Pass one or more reference images and describe the desired changes in the prompt. When using multiple references, tag them as <ref_image_0>, <ref_image_1>, etc.
  • Layout Control: Regions can be specified in the prompt as a JSON list. Each region has an id, bbox, and desc, with bounding boxes described on a 0–1000 scale as [y_min, x_min, y_max, x_max]. This also supports editing by moving regions within reference images.

Provision Format and Fine-Tuning

Two types of checkpoints are available. The distilled version is for fast inference with 16 steps, while the base version uses CFG (Classifier-Free Guidance) with 50 steps. Quantized weights, including NVFP4 and FP8, are provided in a single file format and can be loaded using from_single_file. NVFP4 runs fast on Blackwell GPUs, while FP8 runs fast on Ada, Hopper, and Blackwell GPUs.

DreamBooth scripts for LoRA fine-tuning are provided for both text-to-image and image-to-image editing. Options to reduce memory usage include gradient checkpointing, cached latents, and 8-bit Adam.

Performance (Measurement Conditions)

The figures below are measurement results for the distilled version (16 steps) published in the Hugging Face blog. They represent the average of three runs after warmup, using a single NVIDIA H100 80GB GPU, without offloading, and with the default attention backend.

WorkflowOutput SizeTimePeak Memory
Text-to-Image1024×10241.93s23.8 GiB
Image-to-Image (1 reference)1024×10243.87s23.8 GiB
Layout Edit (1 reference)1360×7684.10s23.8 GiB

Adding reference images increases processing time to approximately double, as the reference image tokens are added to the same sequence as the text and generated images. Peak memory after model loading varies by weight type (13.4 GiB for NVFP4 on RTX6000, 14.35 GiB for FP8 on H100, and 18.80 GiB for BF16 on H100). Peak memory after inference is 15.3, 16.27, and 20.72 GiB, respectively.

Architecture Highlights

  • A flow matching model in latent space that uses a VAE with the same structure as FLUX.2. Images are compressed such that every 16×16 pixels becomes one token.
  • The text encoder is Qwen3-VL. Eight hidden state layers are stacked to extend dimensions to 20,480, then projected to 3072 dimensions via a linear layer before input into the transformer.
  • The transformer is two-staged. In the first stage, text, images, and reference images are processed in separate blocks, which are then combined into a single sequence in the second stage.
  • Each token carries timestep modulation, and reference images are always treated as timestep 0. The distilled version makes large jumps using additional timestep embeddings.
  • Positional encoding uses 4D RoPE (timestep, height, width, sequence length), sharing the same coordinate system between reference images and output images.

Analysis

The announcement makes public the model checkpoints, quantized weights, LoRA training scripts, and architectural details. The speed and memory metrics were measured and documented by the Hugging Face blog author under specified conditions (e.g., a single H100 80GB GPU) and do not constitute comparative measurements by third parties other than Black Forest Labs. The checkpoints are publicly available on Hugging Face upon application, and the model page is set under the proprietary “FLUX Kommunity License.” It can also be tested via the Hugging Face Space featured in the blog.

This article was translated from the Japanese original. 日本語で読む

← Latest articles