BoatGen.app | Add style to a photo of your boat
AI Image Editing and Generation
- BFL Flux Pro and derivative models
- Replicate for AI model hosting and inference
Authentication & Payments
- Clerk for user authentication and management
- Stripe for payments
- Neon Postgres for data storage (via Vercel Marketplace)
Storage
- Vercel Blob for image storage
UI Template
UI Components
Core
GET /api/credits- Get current user's credit balancePOST /api/checkout- Create Stripe checkout sessionGET /api/library- Get user's generated images from libraryPOST /api/predictions- Create image generation (deducts credits)GET /api/predictions/[id]- Get prediction statusPOST /api/webhooks/stripe- Handle Stripe payment webhooksPOST /api/webhooks- Handle Replicate webhooks (optional)