A simple, clean interface for the BFL Flux image generation API. This web-based tool allows users to create AI-generated images using various Flux models (Pro, Pro 1.1, Ultra, Dev) without needing to write code or format API requests.
- Support for all Flux models: Flux Pro 1.1, Flux Pro, Flux Dev, and Flux Ultra
- Model-specific parameter options that adapt to your selected model
- Image prompt capability
- Preset dimensions and aspect ratios for different models
- Adjustable generation parameters (steps, guidance, safety tolerance, etc.)
- Prompt upsampling option
- Random seed generation
- Image preview and download
- Parameter copying for reproducibility
- Client-side API key storage
Visit https://tremontaine.github.io/flux-ui to use the tool without setting up anything locally.
- Clone this repository:
git clone https://github.com/Tremontaine/flux-ui.git
cd flux-ui
- Install dependencies:
npm install
- Start the server:
node server.js
- Open
http://localhost:3589
in your browser.
- Enter your API key from BFL (get one at https://blackforestlabs.ai if you don't have one)
- Select your desired model
- Enter a prompt describing the image you want to generate
- Choose from available dimensions or aspect ratios
- Adjust parameters as needed
- Click "Generate Image"
- Use the buttons below the image to open, copy URL, or copy the parameters
Your API key is stored locally in your browser and is never sent to our servers. All API requests are made directly from your browser to the BFL API.
You can deploy just the HTML file to any static hosting provider (GitHub Pages, Netlify, etc.). However, the image preview functionality won't work due to CORS limitations - users will need to use the "Open Image" button.
Deploy both the HTML and Node.js server to a provider that supports Node.js (Heroku, Render, Railway, etc.) to preserve the image preview functionality.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.