CreatiVision is an AI-driven tool built for the GenAI Exchange Hackathon (Google Cloud), addressing Big Basket's marketing automation challenge. It enables effortless creation of banners (and soon videos) from product images using powerful generative AI models.
- 🖼️ Banner Generator – Generate stunning promotional banners from uploaded images.
- 🎬 Video Generator (Coming Soon) – Auto-generate short video ads.
- 🧠 AI-Powered – Uses Google Gemini, Imagen, and Hugging Face models for content generation.
- 🎯 Customizable – Add promotional offers, themes, and color palettes.
-
Clone the repo
git clone https://github.com/your-repo/CreatiVision.git cd CreatiVision -
Create virtual environment & install dependencies
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -r requirements.txt
-
Set environment variables (optional) Create a
.envfile in the root directory if needed:GOOGLE_CLOUD_PROJECT_ID=your_project_id HUGGING_FACE_API_KEY=your_hf_key GOOGLE_APPLICATION_CREDENTIALS=your_json_file_path -
Run the Flask server
export FLASK_APP=app # On Windows: set FLASK_APP=app flask run
The backend will be available at
http://127.0.0.1:5000.
-
Navigate to the frontend directory
cd frontend -
Install dependencies
npm install
-
Start the development server
npm run serve
The frontend will run at
http://localhost:8080and should connect to the Flask backend automatically.
- Upload 1–2 product images (
.pngor.jpg) - Enter your promotional offer (e.g., “35% Off!”)
- Choose a theme and color palette (e.g., “Valentine's Day”, “Red and Pink”)
- Pick image generation model (
Google ImagenorHugging Face) - Hit “Generate Banner”
- Review the banner, warnings, fallback info, and download result
- Use high-resolution product images
- Keep inputs minimal for better AI coherence
- Try varying themes and colors for multiple creatives
The /generate_banner API handles:
- Caption generation (fallback if APIs fail)
- Prompt crafting with Gemini
- Image synthesis using Google Imagen / Hugging Face
- File storage and final return
| Prompt | Output |
|---|---|
| "Interstellar theme for Pepsi" | ![]() |
| "Football world cup theme for Lays" | ![]() |
- Video ad generation from product clips
- Improved UI with real-time preview
- Template-based banner styles
- Better captioning using multimodal APIs
This hackathon build has minimal security. Planned security updates include:
- ✅ Authentication and rate limiting
- ✅ Input validation
- ✅ API key masking and usage quotas
- ✅ HTTPS + secure storage handling
We encourage ethical use:
- 📸 Use only copyright-free or owned images
- ✍️ Keep content brand-safe and appropriate
- 🧑🎨 Don’t misuse outputs for harmful automation
CreatiVision is currently hosted on Render. Plans to move to scalable options (like Google Cloud Run or GKE) are in progress.
CreatiVision was built for the GenAI Exchange Hackathon, showcasing rapid prototyping and applied AI in digital marketing.
Open issues, fork, or raise pull requests:
- 📂 GitHub: Monitor Repo
- 📬 Suggestions welcome via Issues tab

