Introduction
Production architecture for the AI Engagement Photos product.
What is AI Engagement Photos?
AI Engagement Photos is a commercial AI portrait product that combines two separately uploaded reference photos into one styled engagement portrait. It includes authentication, paid preview and HD credits, production storage, generation history, an admin dashboard, and internationalized routes.
Key Features
- Authentication — Email/password + Google OAuth via Better Auth
- Credit-Based Billing — Per-use credit system with auditable ledger + subscription plans via Creem
- AI Integration — Two-photo portrait generation powered by Kie.ai GPT Image 2
- Admin Dashboard — User management, credit adjustment, subscription control
- Internationalization — Full English and Chinese support via next-intl
- Email System — Transactional emails via Resend (verification, password reset, purchase confirmation)
- Marketing Pages — Landing page, pricing, blog (MDX), legal pages
Tech Stack
| Layer | Technology |
|---|---|
| Framework | Next.js 16 (App Router) + React 19 |
| Styling | Tailwind CSS + Framer Motion |
| Database | PostgreSQL + Drizzle ORM |
| Auth | Better Auth |
| Payments | Creem |
| AI | Kie.ai GPT Image 2 |
| Resend | |
| i18n | next-intl |
Getting Started
Head to the Quickstart guide to get your project running in minutes.