This app includes a full Stripe integration with a credits-based payment system. See BILLING_SETUP.md for complete setup instructions.
- Set up Stripe: Create products, prices, and webhook endpoint (see BILLING_SETUP.md)
- Configure environment variables: Add Stripe keys and price IDs
- Run database migrations:
supabase migration up - Deploy Edge Functions: Deploy
stripe-webhook,create-checkout-session,create-portal-session
- Studio Access: $99/month subscription (unlocks studio features - includes 0 credits)
- Credits: Pay-as-you-go credit purchases (1 credit ≈ 1 segment / ~8 seconds)
- Credit Gating: Automatic credit checks before video generation
- Billing Management: Full Stripe Customer Portal integration
- Transaction Ledger: Complete history of credit purchases and usage
/pricing- View Studio Access subscription + credit pricing/checkout- Secure Stripe checkout (access subscription or credit purchase)/account/billing- Manage Studio Access subscription and view credit balance/checkout/success- Post-purchase confirmation/checkout/cancel- Cancelled checkout page
-
Studio Access - Monthly subscription ($99/month) that unlocks:
- Studio & orchestration UI
- Provider integrations framework
- Team collaboration tools
- Compliance tooling
- Includes 0 credits - Credits are purchased separately
-
Credits - Pay-as-you-go usage:
- 1 credit ≈ 1 segment (~8 seconds)
- Credits do not expire
- Price per credit: configurable (defaults to ~$3.34)
- Buy any quantity you need
- User initiates video generation → Credit check
- Insufficient credits → Redirect to buy credits
- Sufficient credits → Reserve credits → Start generation
- On completion → Charge credits
- On failure → Refund credits