Stripe Checkout + Supabase credits + BabySea API

Generative media billing beyond checkout.

A minimal deployable starter where users sign in with email, buy prepaid credits with Stripe, add one BabySea API key, generate with bfl/flux-schnell through the BabySea SDK, and settle credits through Supabase/Postgres.

Credit lifecycle1 credit / generation
Email auth creates the user boundary
Stripe Checkout grants credits once
Upstash rate-limits generation requests
Supabase reserves credits atomically
BabySea executes with [replicate, fal, cloudflare] failover
Storage keeps generated assets private