Image GenerationOpen source codeblack-forest-labs/flux

FLUX.1 (Black Forest Labs): Open Source AI Repository & Self-Hosting Guide

Official Black Forest Labs reference repository for FLUX.1 Schnell (Apache 2.0) and Dev rectified-flow image transformers delivering crisp anatomy and typography.

GitHub Stars
26,095 stars
Repository License
Apache-2.0
Last Push (UTC)
Jul 31, 2025
Check the repo's license. Model weights may have a different license.
git clone https://github.com/black-forest-labs/flux.git
View on GitHubOfficial Website
Installpip install -e '.[all]' && python -m flux t2i --name flux-schnell

FLUX.1 (Black Forest Labs): Architecture & Practical Workflow

The `black-forest-labs/flux` codebase houses clean PyTorch inference scripts, TensorRT/diffusers hooks, and Control/Fill/Redux weight configurations for 12B rectified-flow DiT image generation and precision editing.

Recommended End-to-End Pipeline

Validate reference parameters or prototype custom FLUX.1 Fill/Redux inference scripts locally before wrapping production batches inside ComfyUI or SwarmUI.

Runtime Target
Self-Hosted / Python / GPU (GitHub)
Primary Users
Developers, AI Artists, Local Pipelines
Code License
Apache-2.0
Focus Topics
open-source, github, flux, self-hosted, no-watermark

Quick Setup & Installation Steps

Platform target: Self-Hosted / Python / GPU (GitHub). Always verify environment variables and dependencies in the upstream repository README.

  1. 1Clone the repository from GitHub: `git clone https://github.com/black-forest-labs/flux.git && cd flux`.
  2. 2Review the Apache-2.0 license (Check the repo's license. Model weights may have a different license.) and note any separate terms on external model weights.
  3. 3Install or launch the project directly: `pip install -e '.[all]' && python -m flux t2i --name flux-schnell` (use an isolated Python virtualenv, Node workspace, or Docker volume so dependencies remain clean).
  4. 4Validate end-to-end behavior with a small sample input (Validate reference parameters or prototype custom FLUX.1 Fill/Redux inference scripts locally before wrapping production batches inside ComfyUI or SwarmUI.)

Hardware & VRAM Notes

Hardware & VRAM guidance: Requires NVIDIA GPU (12GB–24GB VRAM recommended)

GPU & VRAM

Requires NVIDIA GPU (12GB–24GB VRAM recommended)

System RAM & Storage

16 GB–32 GB system RAM recommended plus 10 GB–40 GB free SSD space for container images, Python dependencies, and model weights.

Runtime Target

Self-Hosted / Python / GPU (GitHub)

Strengths & Best For

  • Official FLUX.1 reference code
  • 100% watermark-free local generation
  • High prompt adherence & legible typography
  • Best suited for: Developers, AI Artists, Local Pipelines

Limitations & Caveats

  • Requires NVIDIA GPU (12GB–24GB VRAM recommended)
  • Check model-specific weight license (Schnell is Apache-2.0; Dev is non-commercial)
  • Check the repo's license. Model weights may have a different license.

3 Similar Tools on /tools (Image)

Prefer a hosted web app instead of managing local weights or Docker containers? Explore these cloud alternatives.

Browse all tools
Self-Hosted FLUX.1 (Black Forest Labs) vs. Hosted Alternatives (FLUX.1 (Black Forest Labs) & ComfyUI)
FactorFLUX.1 (Black Forest Labs) (Self-Hosted)FLUX.1 (Black Forest Labs)ComfyUI
Execution & PrivacyRuns locally via Self-Hosted / Python / GPU (GitHub); data stays on your disk or private server.Hosted cloud web interface; zero local dependency setup required.Hosted cloud web interface; zero local dependency setup required.
Cost & QuotaApache-2.0 code; bound only by local CPU/GPU hardware.Open Source; subject to vendor free-tier limits or paid plans.Open Source; subject to vendor free-tier limits or paid plans.
Primary FitOfficial FLUX.1 reference code; 100% watermark-free local generationOpen-source image model by the original Stable Diffusion team. Fast, high-quality, and free tier.Node-based visual workflow engine for running FLUX, Stable Diffusion, and video generation pipelines locally with total control.
Key Trade-offRequires NVIDIA GPU (12GB–24GB VRAM recommended)Requires internet access and vendor account/quota limits.Requires internet access and vendor account/quota limits.

Matching Ready-Made Prompts

All Prompts →

Customize variables in Live Prompt Studio for FLUX.1 (Black Forest Labs) workflows.

Retro 1980s Swiss International Typographic Style PosterImage · Swiss Style, Typography, Retro, Graphic Design
Open in Studio
Top-Down Flatlay of Accountant's Modern Oak DeskImage · Flatlay, Office, Desk, Photorealistic
Open in Studio

Compare Alternatives

Compare Engine →

Compare FLUX.1 (Black Forest Labs) side-by-side on setup ease, privacy, and role scorecards.

More Open Source Image Generation Repositories

Frequently Asked Questions

What does FLUX.1 (Black Forest Labs) do and how does it work?

FLUX.1 (Black Forest Labs) (black-forest-labs/flux) is an open-source image generation project with 26,095 stars on GitHub. Official Black Forest Labs reference repository for FLUX.1 Schnell (Apache 2.0) and Dev rectified-flow image transformers delivering crisp anatomy and typography. The `black-forest-labs/flux` codebase houses clean PyTorch inference scripts, TensorRT/diffusers hooks, and Control/Fill/Redux weight configurations for 12B rectified-flow DiT image generation and precision editing.

Is FLUX.1 (Black Forest Labs) free to self-host and use commercially?

FLUX.1 (Black Forest Labs) provides open source code licensed under Apache-2.0. Check the repo's license. Model weights may have a different license. Always verify both source code and model weight licenses in the GitHub repository before commercial deployment.

What hardware, runtime, or VRAM does FLUX.1 (Black Forest Labs) require?

FLUX.1 (Black Forest Labs) targets Self-Hosted / Python / GPU (GitHub). Typical installation runs via `pip install -e '.[all]' && python -m flux t2i --name flux-schnell`. Requires NVIDIA GPU (12GB–24GB VRAM recommended)

How does self-hosting FLUX.1 (Black Forest Labs) compare to hosted tools like FLUX.1 (Black Forest Labs)?

Self-hosting FLUX.1 (Black Forest Labs) gives you full local data control, zero per-usage vendor fees, and customizable Self-Hosted / Python / GPU (GitHub) pipelines—at the cost of managing your own setup and compute. By contrast, FLUX.1 (Black Forest Labs) (Open Source) runs in the browser with no local installation, though usage quotas and cloud privacy policies apply.

Is FLUX.1 (Black Forest Labs) actively maintained and what workflow fits it best?

Repository metadata records 26,095 stars on GitHub with the latest recorded push on Jul 31, 2025. Validate reference parameters or prototype custom FLUX.1 Fill/Redux inference scripts locally before wrapping production batches inside ComfyUI or SwarmUI.