> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lovable.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Project usage and costs

> See what drives your project's run credit usage across hosting and the built-in backend (Cloud), and how monthly grants work.

**Run credits** are consumed when Lovable [hosts your app](/features/hosting) and runs its [built-in backend (Cloud)](/features/cloud): database work, AI calls, file storage, network traffic, and backend compute. The **Usage** view shows exactly what a project consumes, so you can see what drives spend before adjusting anything.

To open it, go to **Cloud tab → Usage**. Access follows your workspace role, not your project role: workspace owners can always open the view, and workspace admins can on paid plans. On workspaces that haven't moved to unified billing yet, the view is visible to everyone who can open the project.

## The Usage view

The Usage view shows the project's run credit usage: a chart of the credits its deployed app uses per day, with a total for the selected time range. It is the same breakdown you get from **Settings → Plans & credit usage → Usage details** by selecting **Run credits**, already filtered to the project. See [Cloud costs](/introduction/credits-and-usage#cloud-costs) for what drives this usage.

The time range defaults to **Last 30 days**. You can switch to **Last 90 days** or pick a custom range of up to 90 days. Run credit usage may not appear immediately after your app is used.

Below the chart, usage is broken down by category, sorted from highest to lowest:

* **Database**: storing and working with your app's data, such as users, orders, and messages. Split into **Database server**, the work of reading and saving that data, and **Database storage**, the amount of data your database stores. Larger [instance sizes](/features/advanced-settings#upgrade-instance) support more traffic but use more credits.
* **AI**: AI features in your app, such as chat or image generation, broken down by model.
* **Compute**: your app's code running behind the scenes, such as processing payments or sending emails.
* **Network**: data sent or received by your app, such as API responses, downloads, uploads, images, and media.
* **Storage**: uploaded or generated files your app stores, such as images, documents, and videos.
* **Realtime**: live updates sent through your app, such as chat messages, notifications, or collaborative updates.

The number next to each category shows how many credits it used in the selected time range. For example, if **Compute** shows 1.6, then 1.6 credits of your Cloud spend in that period came from compute usage. Use the breakdown to see which resources drive the project's Cloud spend, for example before [resizing your instance](/features/advanced-settings#upgrade-instance) or [fixing slow queries](/features/database#find-and-fix-database-performance-problems).

## Monthly grants

<Note>
  **Temporary offering, subject to change:** Free, Pro, and Business workspaces receive a **20-credit monthly Cloud grant** for hosting and built-in backend usage, and a **4-credit monthly AI grant** for AI gateway usage in deployed apps.

  On Free plans, monthly Cloud and AI grants reset on the 1st of each calendar month at **00:00 UTC** and do not roll over. On Pro and Business plans, the monthly Cloud and AI grants refresh with the subscription billing cycle and do not roll over.
</Note>

For details about Cloud and AI gateway usage costs, top-ups, auto top-up, alerts, and usage tracking, see [Credits and usage](/introduction/credits-and-usage).

## What drives Cloud usage

A project's usage usually increases when more people visit your app or when it stores more data and files. Larger uploads and downloads, more API responses and media, more background code, and more Realtime messages all add usage too.

| Usage driver     | What affects cost                                                                                                                                                                     |
| :--------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Database server  | The instance size your database runs on, how long it stays active, and how much traffic or querying it handles. See [Upgrade instance](/features/advanced-settings#upgrade-instance). |
| Database storage | The amount of data your database stores, such as users, orders, messages, and app records                                                                                             |
| Network          | Data sent or received by your app, such as API responses, downloads, uploads, images, and media                                                                                       |
| Storage          | The amount of uploaded or generated files your app stores, such as images, documents, and videos                                                                                      |
| Compute          | Your app's code running behind the scenes, such as processing payments or sending emails                                                                                              |
| Realtime         | Live updates sent through your app, such as chat messages, notifications, or collaborative updates                                                                                    |

## What drives AI usage

AI gateway usage is measured when AI features inside your deployed app make model calls. These requests are separate from the Lovable agent that helps you plan, build, and edit your project. Each model call deducts credits based on the model used and the number of tokens processed.

| Usage driver  | What affects cost                                                                                                      |
| :------------ | :--------------------------------------------------------------------------------------------------------------------- |
| Model choice  | More capable models usually cost more than smaller or faster models                                                    |
| Input tokens  | Longer prompts, documents, chat history, or retrieved context increase usage                                           |
| Output tokens | Longer AI responses increase usage                                                                                     |
| Call volume   | More users or more frequent AI actions create more model calls                                                         |
| Feature type  | Chatbots, document question answering, image generation, embeddings, and automations can have different usage patterns |

AI gateway usage rates are based on the underlying provider model costs. See [AI features for your app](/features/ai) and the [supported model list](/features/ai#supported-models-for-ai-features-in-your-app).

## Reduce a project's usage

If a project uses more credits than it should, work through these in order of impact:

* **Pause the project's Cloud backend** when it isn't actively used, from **Cloud tab → Overview → Advanced settings**. Lovable also pauses Cloud projects automatically after a period of inactivity, so manual pausing mainly helps for projects with scheduled jobs or other background activity. See [Pause Cloud](/features/advanced-settings#pause-cloud).
* **Right-size your instance**. A larger instance uses more credits per hour while your app runs. On paid plans, review and change the instance size from **Cloud tab → Overview → Advanced settings**. See [Upgrade instance](/features/advanced-settings#upgrade-instance).
* **Fix slow database queries** so your database does less work per request. Ask Lovable in chat to find and optimize the slowest queries. See [Find and fix database performance problems](/features/database#find-and-fix-database-performance-problems).
* **Remove unused files** from [storage](/features/storage), since stored files continue to use credits, including while a project is paused.
* **Review [Jobs](/features/jobs)**: frequent or long-running scheduled jobs add up.
* **Remove Lovable Cloud** from projects that don't need a backend at all. This stops all backend usage for the project, but it permanently deletes the project's Cloud data, so export anything you need first. See [Remove Lovable Cloud](/features/advanced-settings#remove-lovable-cloud).

<Note>
  Per-member credit limits apply to build credits only. Cloud and AI usage from deployed apps does not count against a member's monthly credit limit. See [Credits and usage](/introduction/credits-and-usage).
</Note>

If your workspace runs out of credits, your published site stays live. AI features in deployed apps stop working, and apps that rely on the built-in backend (Cloud) can pause until credits are added. See [What happens when you run out of credits](/introduction/credits-and-usage#what-happens-when-you-run-out-of-credits).

## FAQ

<AccordionGroup>
  <Accordion title="Are credits deducted for Cloud and AI gateway usage?">
    Yes. Lovable uses one credit balance for building your app, hosting it and running its built-in backend (Cloud), and AI features in deployed apps.

    Cloud and AI gateway usage are shown as **Run credits** in **Settings → Plans & credit usage → Usage details**.

    * **Cloud usage** covers the hosting and built-in backend resources used by deployed apps, such as database, network, storage, Edge Functions, and Realtime.
    * **AI gateway usage** covers AI features inside deployed apps, such as model calls made by your app.

    For more information, see [Credits and usage](/introduction/credits-and-usage).
  </Accordion>

  <Accordion title="Do I have control over my monthly expenses?">
    Yes. Lovable gives you several ways to control credit usage and top-up charges.

    * **Add credits manually:** On Pro and Business plans, workspace owners and admins can buy one-time top-ups when more credits are needed.
    * **Use auto top-up:** On Pro and Business plans, workspace owners and admins can enable auto top-up so Lovable automatically adds credits when the workspace balance reaches or falls below a threshold you set. You can also set a monthly spend limit to control how many credits auto top-up can add in a calendar month.

    To manage credits, top-ups, and auto top-up, go to **Settings → Plans & credit usage**. For more information, see [Credits and usage](/introduction/credits-and-usage).
  </Accordion>

  <Accordion title="What is the cost of Lovable AI gateway?">
    AI gateway usage rates are based on the underlying provider model costs. AI gateway usage is charged in credits based on the model used and the number of tokens processed. To estimate relative model costs, refer to the official provider pricing sources linked from the [supported model list](/features/ai#supported-models-for-ai-features-in-your-app).
  </Accordion>

  <Accordion title="How do I know which projects are generating the most usage?">
    Go to **Settings → Plans & credit usage → Usage details**.

    You can filter by project across **All credits**, **Build credits**, and **Run credits**. Use **Run credits** to review Cloud and AI gateway usage by project.

    For more information, see [Tracking credit usage](/introduction/credits-and-usage#tracking-credit-usage).
  </Accordion>
</AccordionGroup>
