InstaFlux is a fast straightforward image generation tool that leverages the fast and affordable Runware API, built using Gradio. This application enables users to generate images from text prompts with various configuration options, requiring minimal coding knowledge or GPU environment setup with install scripts for windows and linux.
- Input text prompts to generate images.
- Configure the model, number of results, and image dimensions.
- Option to provide negative prompts and use caching.
- Fast flux 3 to 6 sec generation depending on model.
- Must setup runware.ai account for API key. (free $15 will make 1000 512x512 images for about $1)
To use the installation scripts:
- On Windows, save the
install.bat
file and double-click it to run. - On Linux, save the
install.sh
file, give it execute permissions withchmod +x install.sh
, and then run it with./install.sh
.
(Note: The scripts pause before attempting to start the web UI, which won’t work until you add the API key to the InstaFlux.py
file. After that, visit http://127.0.0.1:7860 in your browser.)
Ensure you have Git, Python, and pip installed. (The above scripts should check for and install these if they are not present.)
-
Clone this repository:
git clone https://github.com/PixifyAI/insta-flux
-
Navigate to the project directory:
cd insta-flux
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
- Replace
RUNWARE_API_KEY
inInstaFlux.py
with your actual Runware API key.
Run the application using:
python InstaFlux.py
The application will start a local server. Open your browser and navigate to http://127.0.0.1:7860 to access the Gradio interface.
If you encounter issues related to themes or styling, ensure that your theme settings are correct or revert to default settings.
This project is licensed under the MIT License - see the LICENSE file for details.