Open-source Nano Banana image generator β production-ready Next.js SaaS for text-to-image and multi-image reference editing. Stripe billing, credits, NextAuth, and Prisma out of the box.
35
stars
46
commits
JavaScript
primary language
Jul 27, 2026
updated
A beautifully designed, fully-integrated AI image studio. Built with Next.js, this open-source template serves as a complete, self-contained SaaS boilerplate for generating, editing, and managing high-quality AI imagery fueled by the Nano Banana engine.
https://github.com/user-attachments/assets/8fedfcbe-b8e0-42e3-a67f-8e84b79c8f7b
Hosted Demo: nano-banana-generator-psi.vercel.app
Experience the full glassmorphic, responsive interface. Sign in with Google to explore the Generation Studio, Edit Mode, and Credit Tiers directly from your browser.
Nano Banana Generator is not just another wrapper β it's a production-ready, highly-optimized AI web application. Out of the box, it seamlessly manages User Authentication, Credits & Billing, Image Persistence, and asynchronous AI generation polling using a sleek Next.js (App Router) architecture. It empowers you to build professional-grade AI workflows with built-in mobile optimization, making it the perfect starting point for your next AI SaaS.
Why use Nano Banana Generator?

Aspect Ratio tuning (from 1:1 Square to 21:9 UltraWide), and tiered Resolutions (1K, 2K, 4K) tied directly to a flexible credit cost system.Deploying an instance of Nano Banana Generator to the web requires minimal configuration. The architecture is engineered explicitly for Vercel serverless environments.
Pro Tip: Fork this repository, replace
YOUR_GITHUB_USERin the link above, to streamline deployments for your private forks.
To successfully deploy and run, you must populate the following environment variables in your Vercel project settings:
| Service | Variable | Description & Source |
|---|---|---|
| Database | DATABASE_URL | PostgreSQL connection string (Supabase or Neon) |
DIRECT_URL | Direct DB connection for Prisma migrations | |
| NextAuth / Google | NEXTAUTH_SECRET | Secure random string generated via openssl rand -base64 32 |
NEXTAUTH_URL | Your production domain (e.g. https://my-app.vercel.app) | |
GOOGLE_CLIENT_ID | Get from Google Cloud Console | |
GOOGLE_CLIENT_SECRET | Get from Google Cloud Console | |
| Stripe Billing | STRIPE_SECRET_KEY | Get from Stripe Dashboard |
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY | Get from Stripe Dashboard | |
STRIPE_WEBHOOK_SECRET | Webhook secret for resolving credit purchases | |
| AI Generator | NANO_BANANA_API_KEY | Create an account and get key from muapi.ai/access-keys |
DATABASE_URL) and direct connection string (DIRECT_URL).npm run build).npx prisma db push && to your Vercel build command, or manually run it locally pointing to your production database URL.https://your-app.vercel.app/api/auth/callback/googlehttps://your-app.vercel.app/api/stripe/webhook and selecting the checkout.session.completed event to grab your webhook signing secret.Ready to iterate locally? Setup is straightforward.
# 1. Clone the repository
git clone https://github.com/SamurAIGPT/nano-banana-generator
cd nano-banana-generator
# 2. Install dependencies
npm install
# 3. Setup Environment
cp .env.example .env
# Open .env and insert your specific keys. You can use a local DB or your dev cloud DB.
# 4. Initialize Database Schema
npx prisma generate
npx prisma db push
# 5. Start the Development Server
npm run dev
The graphical console should now be heavily responsive on http://localhost:3000.
This application decouples visually rich UI elements from core business logic layers, emphasizing modularization.
nano-banana-generator/
βββ prisma/
β βββ schema.prisma # Postgres tables: Users, Accounts, Creations
βββ src/
β βββ app/ # Next.js 14 App Router
β β βββ api/ # Backend API Routes (Stripe, Banana AI, Auth, Uploads)
β β βββ creations/ # User's historical web app generations archive
β β βββ pricing/ # Interactive tier and credit purchase view
β β βββ page.js # Main AI Generation Engine Interface
β βββ components/
β β βββ saas/ # Reusable Modular UI Components
β β βββ AuthButtons.jsx # Reusable secure auth workflows
β β βββ Navbar.jsx # Sticky, responsive global navigation
β βββ lib/
β βββ prisma.js # Shared ORM client singleton
β βββ utils.js # Image array manipulation, downloading tools
βββ next.config.mjs # Next Configuration
βββ tailwind.config.js # Project theme specs
βββ package.json
MIT Licensed.
Nano Banana Generator: A modular, mobile-ready, production-grade AI web application engine built for creators and builders.
JavaScript
95.7%
CSS
3.9%
Open-source Nano Banana image generator β production-ready Next.js SaaS for text-to-image and multi-image reference editing. Stripe billing, credits, NextAuth, and Prisma out of the box.
35
stars
46
commits
JavaScript
primary language
Jul 27, 2026
updated
A beautifully designed, fully-integrated AI image studio. Built with Next.js, this open-source template serves as a complete, self-contained SaaS boilerplate for generating, editing, and managing high-quality AI imagery fueled by the Nano Banana engine.
https://github.com/user-attachments/assets/8fedfcbe-b8e0-42e3-a67f-8e84b79c8f7b
Hosted Demo: nano-banana-generator-psi.vercel.app
Experience the full glassmorphic, responsive interface. Sign in with Google to explore the Generation Studio, Edit Mode, and Credit Tiers directly from your browser.
Nano Banana Generator is not just another wrapper β it's a production-ready, highly-optimized AI web application. Out of the box, it seamlessly manages User Authentication, Credits & Billing, Image Persistence, and asynchronous AI generation polling using a sleek Next.js (App Router) architecture. It empowers you to build professional-grade AI workflows with built-in mobile optimization, making it the perfect starting point for your next AI SaaS.
Why use Nano Banana Generator?

Aspect Ratio tuning (from 1:1 Square to 21:9 UltraWide), and tiered Resolutions (1K, 2K, 4K) tied directly to a flexible credit cost system.Deploying an instance of Nano Banana Generator to the web requires minimal configuration. The architecture is engineered explicitly for Vercel serverless environments.
Pro Tip: Fork this repository, replace
YOUR_GITHUB_USERin the link above, to streamline deployments for your private forks.
To successfully deploy and run, you must populate the following environment variables in your Vercel project settings:
| Service | Variable | Description & Source |
|---|---|---|
| Database | DATABASE_URL | PostgreSQL connection string (Supabase or Neon) |
DIRECT_URL | Direct DB connection for Prisma migrations | |
| NextAuth / Google | NEXTAUTH_SECRET | Secure random string generated via openssl rand -base64 32 |
NEXTAUTH_URL | Your production domain (e.g. https://my-app.vercel.app) | |
GOOGLE_CLIENT_ID | Get from Google Cloud Console | |
GOOGLE_CLIENT_SECRET | Get from Google Cloud Console | |
| Stripe Billing | STRIPE_SECRET_KEY | Get from Stripe Dashboard |
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY | Get from Stripe Dashboard | |
STRIPE_WEBHOOK_SECRET | Webhook secret for resolving credit purchases | |
| AI Generator | NANO_BANANA_API_KEY | Create an account and get key from muapi.ai/access-keys |
DATABASE_URL) and direct connection string (DIRECT_URL).npm run build).npx prisma db push && to your Vercel build command, or manually run it locally pointing to your production database URL.https://your-app.vercel.app/api/auth/callback/googlehttps://your-app.vercel.app/api/stripe/webhook and selecting the checkout.session.completed event to grab your webhook signing secret.Ready to iterate locally? Setup is straightforward.
# 1. Clone the repository
git clone https://github.com/SamurAIGPT/nano-banana-generator
cd nano-banana-generator
# 2. Install dependencies
npm install
# 3. Setup Environment
cp .env.example .env
# Open .env and insert your specific keys. You can use a local DB or your dev cloud DB.
# 4. Initialize Database Schema
npx prisma generate
npx prisma db push
# 5. Start the Development Server
npm run dev
The graphical console should now be heavily responsive on http://localhost:3000.
This application decouples visually rich UI elements from core business logic layers, emphasizing modularization.
nano-banana-generator/
βββ prisma/
β βββ schema.prisma # Postgres tables: Users, Accounts, Creations
βββ src/
β βββ app/ # Next.js 14 App Router
β β βββ api/ # Backend API Routes (Stripe, Banana AI, Auth, Uploads)
β β βββ creations/ # User's historical web app generations archive
β β βββ pricing/ # Interactive tier and credit purchase view
β β βββ page.js # Main AI Generation Engine Interface
β βββ components/
β β βββ saas/ # Reusable Modular UI Components
β β βββ AuthButtons.jsx # Reusable secure auth workflows
β β βββ Navbar.jsx # Sticky, responsive global navigation
β βββ lib/
β βββ prisma.js # Shared ORM client singleton
β βββ utils.js # Image array manipulation, downloading tools
βββ next.config.mjs # Next Configuration
βββ tailwind.config.js # Project theme specs
βββ package.json
MIT Licensed.
Nano Banana Generator: A modular, mobile-ready, production-grade AI web application engine built for creators and builders.
JavaScript
95.7%
CSS
3.9%