A sleek and user-friendly Streamlit interface for Black Forest Labs' Flux AI image generation API. Create stunning AI-generated images with powerful controls and settings.
- 🎨 Simple and intuitive user interface
- ✨ Advanced image generation controls
- 📐 Multiple aspect ratio presets
- 🎯 Fine-tuned image quality settings
- 🚫 Negative prompt support
- 🎲 Seed control for reproducible results
- 🔄 Multiple sampling methods
- Python 3.8 or higher
- A Black Forest Labs API key (Get one here)
- Clone the repository:
git clone https://github.com/yourusername/chronoflux.git
cd chronoflux
- Install dependencies:
pip install -r requirements.txt
-
Set up your API key:
- Create a
.env
file in the project root - Add your API key:
FLUX_API_KEY=your_api_key_here
- Create a
-
Run the app:
streamlit run streamlit_app.py
-
Enter your prompt in the text area
-
(Optional) Configure advanced settings:
- Image Quality:
- Quality Steps (20-50)
- Creativity vs Precision
- Sampling Method
- Random Seed
- Image Content:
- Negative Prompt
- Aspect Ratio
- Image Quality:
-
Click "Generate Image" and wait for your creation!
- Quality Steps: Higher values (20-50) produce better quality but take longer
- Creativity vs Precision: Lower values (0-10) give more creative results
- Sampling Method:
- euler_a: Fast and good quality (default)
- euler: Similar to euler_a
- heun: High quality but slower
- dpm_2: Good for detailed images
- dpm_2_a: Variant of dpm_2
- lms: Linear multistep method
- Negative Prompt: Specify what you don't want in the image
- Aspect Ratio:
- Square (1:1) - 1024x1024
- Portrait (3:4) - 768x1024
- Landscape (4:3) - 1024x768
- Wide (16:9) - 1024x576
- Tall (9:16) - 576x1024
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Black Forest Labs for their amazing Flux API
- Streamlit for the awesome web framework
If you encounter any issues or have questions, please open an issue on GitHub.