A stunning, professional-grade web application for generating and editing images using Google's Gemini AI (Nano Banana Pro). Built with Next.js, TypeScript, and Framer Motion for a beautiful, responsive user experience.
- Text-to-Image: Generate stunning images from text descriptions using Gemini 2.5 Flash
- Image Editing: Edit existing images with text prompts - add, remove, or modify elements
- Multi-Image Composition: Combine up to 14 reference images to create new scenes
- Search-Grounded Generation: Generate images based on real-time information from Google Search
- High-Resolution Generation: Create professional 4K images with Gemini 3 Pro
- 🚀 Social Media Thumbnail Generator: Create viral-worthy thumbnails with dramatic scenes, bold text, and eye-catching elements
- Secure API Key Management: Your API key is stored locally in your browser
- Dynamic Feature Selection: Choose from 6 different image generation modes
- Configurable Settings: Adjust aspect ratio (9:16, 16:9, 1:1, 4:5, etc.) and quality (1K, 2K, 4K)
- Instant Download: Download generated images with one click
- Mobile Responsive: Beautiful UI that works on all devices
- Cyber-Creative Design: Stunning glassmorphism effects with neon accents
- Node.js 18+ installed
- A Google AI Studio API key (get it [here](https://aistudio.google. com/apikey))
- Clone the repository:
git clone https://github.com/hoodini/nano-banana-ui.git
cd nano-banana-ui- Install dependencies:
npm install- Run the development server:
npm run dev-
Open http://localhost:3000 in your browser
-
Enter your Google AI Studio API key when prompted
- Visit Google AI Studio
- Sign in with your Google account
- Create a new API key for Gemini
- Copy and paste it into the app
- Select a Feature: Choose from text-to-image, image editing, multi-image composition, or special features
- Upload Images (if required): Upload reference images for editing or composition
- Enter Your Prompt: Describe what you want to generate
- Configure Settings: Adjust aspect ratio and quality
- Generate: Click the generate button and watch the magic happen!
- Download: Download your generated image
The special Social Media Thumbnail Generator creates viral-worthy thumbnails automatically:
- Upload a character reference image
- Describe the scene and emotion you want
- The AI automatically adds:
- Dramatic, shocked facial expressions
- Big, bold text overlays
- Arrows and highlighting elements
- High contrast and saturated colors
- Professional thumbnail styling
Perfect for YouTube, Instagram, and social media content!
- Framework: Next.js 15 with App Router
- Language: TypeScript
- Styling: Tailwind CSS with custom cyber-creative theme
- Animations: Framer Motion
- AI: Google Generative AI SDK (@google/generative-ai)
- Icons: Lucide React
nano-banana-ui/
├── app/
│ ├── api/
│ │ └── generate/
│ │ └── route. ts # API route for image generation
│ ├── globals. css # Custom cyber-creative theme
│ ├── layout. tsx # Root layout
│ └── page.tsx # Main page
├── components/
│ ├── ApiKeyConfig.tsx # API key configuration modal
│ ├── FeatureSelector.tsx # Feature selection grid
│ └── GenerationInterface.tsx # Image generation interface
├── types/
│ └── index.ts # TypeScript type definitions
└── public/ # Static assets
This application features a Cyber-Creative Studio aesthetic:
- Dark theme with vibrant neon accents (electric blues, cyber purples, banana yellows)
- Glassmorphism effects for depth and modern feel
- Bold, geometric typography with Orbitron and Syne fonts
- Smooth animations and micro-interactions
- Professional yet playful vibe
The app uses the Google Gemini API for image generation. Check out the [official API docs](https://ai.google. dev/gemini-api/docs/image-generation) for more details.
- gemini-2.5-flash-image: Fast generation for text-to-image and basic editing
- gemini-3-pro-image-preview: Advanced features with 4K support, multi-image, and search grounding
- API keys are stored in browser localStorage
- Keys are never sent to any server except Google's Gemini API
- No backend storage of user data or images
- All generation happens securely through Next.js API routes
Contributions are welcome! Feel free to:
- Report bugs
- Suggest new features
- Submit pull requests
- Improve documentation
Yuval Avidani
- 🌐 Website: yuv.ai
- 🐦 Twitter: @yuvalav
- 📸 Instagram: @yuval_770
- 🔗 LinkTree: linktr.ee/yuvai
Founder of YUV.AI - Building the future of AI-powered creativity.
This project is open source and available under the MIT License.
- Google Gemini team for the amazing AI models
- Vercel for Next.js
- The open-source community
Made with 💜 by Yuval Avidani
Star ⭐ this repo if you find it useful!


