A powerful Flask-based AI image generation application using the Bytez API.
Generate stunning images from text prompts with multiple artistic styles, automatic downloads, and gallery view.
- 🖼 Generate images from any text prompt
- 🎨 Multiple style presets (Realistic, Anime, Cinematic, Fantasy, Portrait, Landscape, Artistic)
- 💾 Automatic image saving to
/outputs - 🖥 Built-in Gallery viewer
- 🔐 Secure API key handling using
.env
git clone https://github.com/Musafir02/text2image.git
cd text2imageWindows
python -m venv venv
venv\Scripts\activateMac / Linux
python3 -m venv venv
source venv/bin/activatepip install -r requirements.txtMac / Linux
cp .env.example .envWindows PowerShell
copy .env.example .envCreate an account and generate a key: https://bytez.com
Use the mumix-xl-v20-sdxl model key.
Then open .env file and insert key:
BYTEZ_API_KEY=your_api_key_here
Run the Application
python app.pyhttp://localhost:5000Pull requests are welcome. Suggestions & improvements appreciated!
Developed by Ibrahim Shaikh If you like the project, ⭐ star the repo!