1. Auth
Clerk handles email sign-in by default. New users are synced to Supabase by webhook.
Mirage Studio is a polished AI image creation workspace for creators, agencies, and ecommerce teams. Access is gated by a paid pass or subscription before generation starts.
Image generation endpoints require a signed session cookie. Unauthenticated users see the sign-in flow instead of consuming model credits.
Buy a pass or sign in before using generation credits.
All plans are subscriptions with monthly image generation credits.
Low-friction plan for solo creators testing ideas.
Best default for creator and ecommerce workflows.
Higher credit pool for client production workflows.
For a US launch, use Clerk for email auth, Paddle Checkout for card and wallet payments, and Postgres storage for credits and generated image assets.
Clerk handles email sign-in by default. New users are synced to Supabase by webhook.
Hosted checkout, customer portal, and webhook sync handle paid access and subscription status.
Store subscription status, monthly credits, and generated images in Supabase/Postgres.