Skip to main content
Lovable (lovable.dev) is an AI web app builder that uses a credit-based subscription model. Unlike token-based systems, Lovable simplifies the user experience by charging one credit per message. This model combines a monthly credit pool with a daily bonus drip to encourage consistent engagement while allowing for burst usage.

Lovable’s Billing Model

Lovable’s pricing is built around message credits and separate metered billing for cloud infrastructure.
  • Credit-based subscription: 1 credit = 1 message/prompt to the AI.
  • Credits are shared across unlimited users: Team-wide pool, not per-seat.
  • Credits reset each billing cycle: Monthly credits refresh on renewal.
  • On-demand credit top-ups: Users can buy more credits if they run out.
  • Separate usage-based Cloud + AI billing: Metered billing for hosting and compute.
  • Daily bonus credits reset each day: A use-it-or-lose-it daily drip of 5 credits.

What Makes It Unique

  • Message-based simplicity: 1 credit = 1 message regardless of complexity. No token counting or model weighting.
  • Daily drip + monthly pool hybrid: The 5 daily bonus credits create a daily engagement incentive, while the 100 monthly credits allow burst usage.
  • Team-wide shared pool: Credits shared across unlimited users for a flat team price, not per-seat.
  • Two-layer billing: Credits for AI interactions + separate metered billing for cloud infrastructure.

Build This with Dodo Payments

You can replicate Lovable’s hybrid model using Dodo Payments’ credit entitlements and usage-based meters.
1

Create a Custom Unit Credit Entitlement

Define the message credit system in your Dodo Payments dashboard. This entitlement handles the monthly credit pool.
  • Credit Type: Custom Unit
  • Unit Name: “Messages”
  • Precision: 0
  • Credit Expiry: 30 days
  • Overage: Disabled (hard cap when credits hit 0)
2

Create Subscription Products

Create your plans and attach the credit entitlement. For the Free plan, you’ll handle the daily bonus via application logic.
  • Free: $0/mo, 0 credits (daily bonus handled by app logic)
  • Pro: $25/mo, 100 credits/cycle, attach credit entitlement
  • Business: $50/mo, 100 credits/cycle, attach credit entitlement
3

Create a Usage Meter for Cloud + AI

Lovable bills separately for cloud infrastructure. Create a meter to track these costs.
  • Meter name: cloud.compute_seconds
  • Aggregation: Sum on compute_seconds property
Attach this meter to your subscription products with per-unit pricing. When you ingest usage, Dodo calculates the cost based on your rates.
4

Implement Daily Bonus Credits (Application Logic)

The daily bonus drip is handled at the application level. You can use a cron job to grant these credits or track them separately in your database.To track the usage of these bonus credits in Dodo without depleting the main entitlement balance immediately, you can use a separate event name or handle the logic in your app to check the bonus pool first.
5

Send Usage Events for Messages

Track each AI message as a usage event. Link the ai.message event to your “Messages” credit entitlement in the Dodo dashboard.
6

Handle Webhooks for Low Balance

Notify users when they are running low on credits so they can top up or upgrade.

Accelerate with the LLM Ingestion Blueprint

The LLM Ingestion Blueprint simplifies tracking by wrapping your AI client.
Check out the full blueprint documentation for more details on automatic tracking.

Architecture Overview

Key Dodo Features Used

Explore the features that make this implementation possible.

Credit-Based Billing

Manage message credits and shared team pools.

Subscriptions

Set up recurring plans for Pro and Business tiers.

Usage-Based Billing

Meter cloud infrastructure usage separately from AI credits.

Event Ingestion

Send high-volume message and compute events to Dodo.

Webhooks

Automate notifications for low credit balances.

LLM Ingestion Blueprint

Simplify AI usage tracking with pre-built integrations.
Last modified on March 25, 2026