Nano Banana

Generate stunning AI images directly in your Convex backend with persistent storage, real-time status tracking, and a clean TypeScript API.

Installation

npm install convex-nano-banana

About Nano Banana

🍌 Nano Banana
AI Image Generation Component for Convex, powered by Google Gemini

Generate stunning AI images directly in your Convex backend with persistent storage, real-time status tracking, and a clean TypeScript API. Bring your own Gemini API key.

✨ Features
🎨 Text-to-Image Generation - Create images from text prompts using Gemini's native image generation
✏️ Image Editing - Edit existing images with text instructions
📦 Persistent Storage - Images automatically stored in Convex file storage
⚡ Real-time Status - Reactive queries update as generation progresses
🔮 Future-proof - Accepts any model name for upcoming Gemini models
🔐 BYO API Key - Users provide their own Gemini API key (secure, server-side only)
📊 Generation History - Track all generations with timing metrics

Links