Billing & Tokens
Garmint uses a token-based billing system with subscription tiers and pay-as-you-go options.Subscription Plans
Trial
100 tokens/month
- ~8 fast generations
- 1 workspace
- Basic garment library
Starter
2,500 tokens/month — $29/mo
- ~200 fast generations
- Full garment library
- Email support
Pro
10,000 tokens/month — $99/mo
- 3 workspaces
- Priority queue
- Token rollover
Studio
40,000 tokens/month — $299/mo
- Unlimited workspaces
- Production dashboard
- Dedicated support
Token Costs
Generation costs vary by model and operation:| Operation | Model | Tokens |
|---|---|---|
| Fast generation | nano-banana | 12 |
| Quality generation | nano-banana-pro | 45 |
| Print-ready 4K | nano-banana-pro-4k | 90 |
| Model photo | model-photo | 23 |
| Background removal | remove-bg | 3 |
| Image upscale | upscale | 1 |
Token Packs (PAYG)
Buy additional tokens anytime through the billing portal.Database Schema
billing_plans
token_grants
Each grant represents tokens added to a user’s balance:usage_ledgers
Every token consumption is logged:Balance Calculation
user_token_balances view calculates:
Checking Balance
Before generation, verify sufficient tokens:Recording Usage
After successful generation:Plan Detection
Stripe Integration
Checkout Session
Webhook Handler
Granting Tokens
On subscription payment:UI Components
Token Display
Upgrade Prompt
Seeding Plans
Initial plans insupabase/seed.sql: