Text-to-image models by Black Forest Labs with high-quality photorealistic output
FLUX
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
by Black Forest Labs: https://bfl.ai.
Documentation for our API can be found here: docs.bfl.ai.
This repo contains minimal inference code to run image generation & editing with our Flux open-weight models.
Local installation
Local installation with TensorRT support
If you would like to install the repository with TensorRT support, you currently need to install a PyTorch image from NVIDIA instead. First install enroot, next follow the steps below:
Open-weight models
We are offering an extensive suite of open-weight models. For more information about the individual models, please refer to the link under **Usage**.
| Name | Usage | HuggingFace repo | License |
| --------------------------- | ---------------------------------------------------------- | -------------------------------------------------------------- | --------------------------------------------------------------------- |
| FLUX.1 [schnell] | Text to Image | https://huggingface.co/black-forest-labs/FLUX.1-schnell | apache-2.0 |
| FLUX.1 [dev] | Text to Image | https://huggingface.co/black-forest-labs/FLUX.1-dev | FLUX.1-dev Non-Commercial License |
| FLUX.1 Fill [dev] | In/Out-painting | https://huggingface.co/black-forest-labs/FLUX.1-Fill-dev | FLUX.1-dev Non-Commercial License |
| FLUX.1 Canny [dev] | Structural Conditioning | https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev | FLUX.1-dev Non-Commercial License |
| FLUX.1 Depth [dev] | Structural Conditioning | https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev | FLUX.1-dev Non-Commercial License |
| FLUX.1 Canny [dev] LoRA | Structural Conditioning | https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev-lora | FLUX.1-dev Non-Commercial License |
| FLUX.1 Depth [dev] LoRA | Structural Conditioning | https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev-lora | FLUX.1-dev Non-Commercial License |
| FLUX.1 Redux [dev] | Image variation | https://huggingface.co/black-forest-labs/FLUX.1-Redux-dev | FLUX.1-dev Non-Commercial License |
| FLUX.1 Kontext [dev] | Image editing | https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev | FLUX.1-dev Non-Commercial License |
| FLUX.1 Krea [dev] | Text to Image | https://huggingface.co/black-forest-labs/FLUX.1-Krea-dev | FLUX.1-dev Non-Commercial License |
The weights of the autoencoder are also released under apache-2.0 and can be found in the HuggingFace repos above.
API usage
Our API offers access to all models including our Pro tier non-open weight models. Check out our API documentation docs.bfl.ai to learn more.
Licensing models for commercial use
You can license our models for commercial use here: https://bfl.ai/pricing/licensing
As the fee is based on a monthly usage, we provide code to automatically track your usage via the BFL API. To enable usage tracking please select *track_usage* in the cli or click the corresponding checkmark in our provided demos.