A powerful Streamlit app for generating professional product ads using Bria AI's advanced image generation and manipulation APIs.
- 🖼️ Generate HD product images from text prompts
- 🎯 Remove backgrounds with custom colors
- 🌅 Add realistic shadows
- 🏠 Create lifestyle shots with text or reference images
- ✨ AI-powered prompt enhancement
- 📝 Optional CTA text overlay
- 🎮 Intuitive UI controls
- 💾 Easy image download
- Clone the repository:
git clone https://github.com/yourusername/ai-snaps.git
cd ai-snap- Install dependencies:
pip install -r requirements.txt- Create a
.envfile in the root directory:
BRIA_API_KEY=your_api_key_here- Run the app:
streamlit run app.py- Enter a product description or upload an image
- Configure generation options in the sidebar:
- Enhance prompt with AI
- Remove background
- Add shadows
- Generate lifestyle shots
- Adjust advanced settings like background color and shadow intensity
- Click "Generate Ad" to create your images
- Download the results
# ai snaps
Lightweight Streamlit tools for generating professional product ad images using AI-powered image generation and editing.
## Features
- Generate HD product images from text prompts
- Remove or replace backgrounds
- Add realistic shadows and CTAs
- Create lifestyle shots from text or reference images
- Optional prompt enhancement via AI
- Download generated images
## Quick Start
1. Clone the repository:
```bash
git clone https://github.com/dipanshurdev/ai-snaps.git
cd ai-snaps- Create and activate a virtual environment:
python -m venv .venv
.\\.venv\\Scripts\\Activate.ps1- Install dependencies:
pip install -r requirements.txt- Create a
.envfile in the project root and add any required API keys:
BRIA_API_KEY=your_api_key_here
- Run the app (Streamlit):
streamlit run app.py- Provide a product description or upload an image in the UI.
- Use the sidebar to adjust generation options (prompt enhancement, background removal, shadows, etc.).
- Click Generate to create images and download results.
- Prompt enhancement and generation settings are available in the UI.
- Store secrets in a local
.envfile (do not commit) and use GitHub Secrets for CI.
Contributions are welcome. Suggested workflow:
- Fork the repo
- Create a feature branch:
git checkout -b feature/your-feature - Commit changes:
git commit -m "Add feature" - Push and open a PR
This project is licensed under the MIT License — see the LICENSE file.
- Bria AI for image generation APIs
- Streamlit for the web UI