Skip to main content
Lovable (lovable.dev) एक AI web app builder है जो credit-based subscription model का उपयोग करता है। token-based systems के विपरीत, Lovable हर message के लिए एक credit लेकर user experience को सरल बनाता है। यह model monthly credit pool को daily bonus drip के साथ जोड़ता है, ताकि लगातार engagement को प्रोत्साहित किया जा सके और burst usage की सुविधा भी बनी रहे।

Lovable’s Billing Model

Lovable की pricing message credits और cloud infrastructure के लिए separate metered billing पर आधारित है।
  • Credit-based subscription: 1 credit = AI को 1 message/prompt।
  • Credits are shared across unlimited users: पूरे team के लिए shared pool, per-seat नहीं।
  • Credits reset each billing cycle: Renewal पर monthly credits refresh होते हैं।
  • On-demand credit top-ups: Credits समाप्त होने पर users और credits खरीद सकते हैं।
  • Separate usage-based Cloud + AI billing: Hosting और compute के लिए metered billing।
  • Daily bonus credits reset each day: प्रतिदिन 5 credits का use-it-or-lose-it daily drip।

What Makes It Unique

  • Message-based simplicity: Complexity की परवाह किए बिना 1 credit = 1 message। Token counting या model weighting नहीं।
  • Daily drip + monthly pool hybrid: 5 daily bonus credits प्रतिदिन engagement को प्रोत्साहित करते हैं, जबकि 100 monthly credits burst usage की सुविधा देते हैं।
  • Team-wide shared pool: Flat team price पर unlimited users के बीच shared credits, per-seat नहीं।
  • Two-layer billing: AI interactions के लिए credits + cloud infrastructure के लिए separate metered billing।

Build This with Dodo Payments

आप Dodo Payments के credit entitlements और usage-based meters का उपयोग करके Lovable के hybrid model को दोहरा सकते हैं।
1

Create a Custom Unit Credit Entitlement

अपने Dodo Payments dashboard में message credit system को define करें। यह entitlement monthly credit pool को संभालता है।
  • Credit Type: Custom Unit
  • Unit Name: “Messages”
  • Precision: 0
  • Credit Expiry: 30 days
  • Overage: Disabled (credits के 0 पर पहुंचने पर hard cap)
2

Create Subscription Products

अपने plans बनाएं और credit entitlement attach करें। Free plan के लिए daily bonus को application logic के माध्यम से संभालें।
  • 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 करता है। इन costs को track करने के लिए एक meter बनाएं।
  • Meter name: cloud.compute_seconds
  • Aggregation: compute_seconds property पर Sum
इस meter को per-unit pricing वाले अपने subscription products से attach करें। जब आप usage ingest करते हैं, तो Dodo आपकी rates के आधार पर cost calculate करता है।
4

Implement Daily Bonus Credits (Application Logic)

Daily bonus drip को application level पर संभाला जाता है। इन credits को grant करने या अपने database में अलग से track करने के लिए cron job का उपयोग कर सकते हैं।इन bonus credits के usage को Dodo में track करने के लिए, main entitlement balance को तुरंत deplete किए बिना, आप अलग event name का उपयोग कर सकते हैं या अपने app में logic संभाल सकते हैं, ताकि पहले bonus pool check किया जा सके।
5

Send Usage Events for Messages

प्रत्येक AI message को usage event के रूप में track करें। ai.message event को Dodo dashboard में अपने “Messages” credit entitlement से link करें।
6

Handle Webhooks for Low Balance

Users को notify करें जब उनके credits कम हो रहे हों, ताकि वे top up या upgrade कर सकें।

Accelerate with the LLM Ingestion Blueprint

LLM Ingestion Blueprint आपके AI client को wrap करके tracking को सरल बनाता है।
Automatic tracking के बारे में अधिक जानकारी के लिए full blueprint documentation देखें।

Architecture Overview

Key Dodo Features Used

उन features को explore करें जो इस implementation को संभव बनाते हैं।

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 पर भेजें।

Webhooks

Low credit balances के लिए notifications automate करें।

LLM Ingestion Blueprint

Pre-built integrations के साथ AI usage tracking को सरल बनाएं।
अंतिम संशोधन 31 जुलाई 2026