Lovable’s Billing Model
Lovable की pricing में message credits के साथ cloud hosting और AI features के लिए अलग metering शामिल है।
Lovable का pricing FAQ इन नियमों का वर्णन करता है (lovable.dev/pricing):
- Credit-based subscription: AI को भेजे गए messages credits खर्च करते हैं। Plan Mode में, 1 credit = 1 message। Default Mode में, लागत task की complexity के अनुसार बदलती है।
- Credits are shared across unlimited users: Workspace का हर member एक ही pool से credits लेता है। Plans की pricing credits के आधार पर होती है, प्रति seat के आधार पर नहीं।
- Monthly credits refresh on renewal: हर renewal पर plan के credits फिर से जुड़ते हैं। उपयोग न किए गए monthly credits जारी होने के दो महीने बाद expire हो जाते हैं।
- On-demand credit top-ups: Credits समाप्त होने पर users और credits खरीद सकते हैं। Top-up credits 12 महीने तक valid रहते हैं।
- Separate usage-based Cloud + AI billing: User apps में hosting और AI features को अपना monthly grant मिलता है, जिसके बाद वे credit balance से credits लेते हैं।
- Daily bonus credits reset each day: हर दिन 5 credits का use-it-or-lose-it bonus मिलता है, जो अगले दिन carry over नहीं होता।
इसे अनोखा क्या बनाता है
- Message-based simplicity: Users tokens या model weights के बजाय messages में सोचते हैं। यह deconstruction सबसे सरल रूप को model करता है: 1 credit = 1 message।
- Daily drip + monthly pool hybrid: 5 daily bonus credits रोज़ाना उपयोग को प्रोत्साहित करते हैं, और 100 monthly credits काम के अचानक बढ़े हुए भार को संभालते हैं।
- Team-wide shared pool: Flat team price पर unlimited users के बीच credits share किए जाते हैं, प्रति seat नहीं।
- Two-layer billing: Credits AI interactions के लिए भुगतान करते हैं, जबकि cloud infrastructure को अलग से meter किया जाता है।
इसे Dodo Payments के साथ बनाएँ
आप Dodo Payments credit entitlements और usage-based meters के साथ Lovable का hybrid model बना सकते हैं।1
Create a Custom Unit Credit Entitlement
अपने Dodo Payments dashboard में Products → Credits पर जाएँ और message credit बनाएँ। यह credit monthly pool रखता है।
- Credit Type: Custom Unit
- Unit Name: “Messages”
- Precision: 0
- Credit Expiry: 60 days (monthly credits के लिए Lovable की two-month expiry से मेल खाता है)
- Allow Overage: Disabled
2
Create Subscription Products
अपने plans बनाएँ और paid plans में credit attach करें। Free plan के daily bonus को आपका application संभालेगा।
- Free: $0/mo, 0 credits (daily bonus app logic द्वारा संभाला जाता है)
- Pro: $25/mo, 100 credits/cycle, credit entitlement attach करें
- Business: $50/mo, 100 credits/cycle, credit entitlement attach करें
3
Create a Usage Meter for Cloud + AI
Lovable cloud infrastructure का billing messages से अलग करता है। इसे track करने के लिए एक meter बनाएँ।
- Event name:
cloud.compute_seconds - Aggregation: Sum, जिसमें
compute_secondsको Over Property के रूप में उपयोग करें
client का पुनः उपयोग करता है।4
Implement Daily Bonus Credits (Application Logic)
आपका application daily bonus drip संभालता है। Scheduled job के साथ daily counter reset करें और Dodo Payments balance से पहले bonus credits खर्च करें।Bonus messages एक अलग event name,
ai.message.bonus, का उपयोग करते हैं, जिसे कोई credit-linked meter उपयोग नहीं करता। इन्हें monthly pool से deduction किए बिना analytics के लिए record किया जाता है।5
Send Usage Events for Messages
प्रत्येक AI message को usage event के रूप में track करें।
ai.message event के लिए Count meter बनाएँ, इसमें Bill usage in Credits toggle on करें, “Messages” credit चुनें और Meter units per credit को 1 पर set करें।6
Handle Webhooks for Low Balance
Users को credits कम होने पर notify करें, ताकि वे top up या upgrade कर सकें।
LLM Ingestion Blueprint के साथ तेज़ी से बनाएँ
LLM Ingestion Blueprint आपके AI client को wrap करता है और हर call के लिए एक usage event भेजता है।Architecture Overview
नीचे दिया गया sequence एक message दिखाता है: app पहले daily bonus खर्च करता है, फिर Dodo Payments credit balance, और cloud usage को अलग से meter करता है।उपयोग किए गए Dodo Features
ये Dodo Payments features implementation को power करते हैं:Credit-Based Billing
Message credits और shared team pools manage करें।
Subscriptions
Pro और Business tiers के लिए recurring plans set up करें।
Usage-Based Billing
Cloud infrastructure usage को AI credits से अलग meter करें।
Event Ingestion
High-volume message और compute events Dodo Payments को भेजें।
Webhooks
Low credit balances के लिए notifications automate करें।
LLM Ingestion Blueprint
Pre-built integrations के साथ AI usage tracking को सरल बनाएँ।