# Tracking and limiting AI usage and cost

## Tracking the cost of a Data Agent conversation

For a Data Agent chat, to track the cost of a conversation, hover over the usage icon.

The tooltip includes the cost so far of the conversation.

<figure><img src="/files/NeA54WOLCgViVwAnvhZx" alt=""><figcaption><p>AI usage tooltip for the Data Agent with the cost of the conversation</p></figcaption></figure>

## Monitoring your AI cost

On the **Plan & Billing** page of **Account Settings**, the **AI Usage** section tracks your AI usage costs.

<figure><img src="/files/n9vqtNi1vjFTlQ2Of3hL" alt=""><figcaption><p>AI Usage chart to track AI usage costs for the current billing cycle</p></figcaption></figure>

For each day when there was AI usage, the chart shows the usage.

### Filtering the chart

To filter the chart:

1. From the **User** dropdown list, select the user to display the usage for.
2. From the **Period** dropdown list, select the time period to display the usage for.

### Selecting the metric to display

From the **Metric** dropdown list, select whether to display:

* The dollar amount for the AI usage.
* The number of tokens used.

### Subdividing individual entries by model or user

You can subdivide individual entries to show either:

* The amount used by each user.
* The amount used by specific AI models.

From the **Split by** dropdown list:

* To identify the specific users, select **User**.
* To identify the specific models, select **Model**.

Fabricate updates the entries to indicate the usage for the individual users or models.

<figure><img src="/files/IvoRdEqj4ke9j23tsRua" alt=""><figcaption><p>AI usage that identifies the distribution among diffferent models</p></figcaption></figure>

## Configuring the default per-user AI usage limit

On the **Plan & Billing** page of **Account Settings**, in the **AI Spend Limits** section, you configure the default AI usage limit for individual users.

<figure><img src="/files/IL5PXJxnPiwYDF9sJla4" alt=""><figcaption><p>AI Spend limits to limit each user's AI usage for a specific period of time</p></figcaption></figure>

1. In the **Per-User Limit** field, specify the maximum dollar amount of AI usage for an individual user.
2. From the **Per-User Limit Period** dropdown list, select the time period for use the limit applies. You can have the limit apply per day, every 7 days, every 30 days, or every 90 days.\
   \
   For example, if you set the limit to $5 and the time period to 30 days, then each user by default can use up to five dollars' worth of AI usage every 30 days.
3. Click **Save Changes**.
4. If there are users that have a custom limit, then select whether to keep those overrides:

   * To preserve overrides for individual users, click **Keep per-user limits**.
   * To apply the new limit to all users, and remove the current individual overrides, click **Override per-user limits**.

   After you select the option, click **Save**.

## Tracking and limiting AI usage for specific users

On the **Users** page of **Account Settings**, the information for each user includes:

* The amount of AI usage for that user.
* The current AI usage limit for that user.

<figure><img src="/files/pvcWo7aNUpntWGnDOGtC" alt=""><figcaption><p>Users list for an account</p></figcaption></figure>

From the **Users** list, you can override the default limit for individual users. For example, you might have a user who is more of a power user and needs a higher limit.

To change the limit for an individual user:

1. In the **AI Spend Limit** column for the user, click the edit icon.
2. On the **Edit AI Spend Limit** panel, either:
   * In the **AI Spend Limit** field, provide a specific value for the user.
   * To reset the user to use the default limit, click **Reset to default**.
3. Click **Save**.

## Configuring the maximum AI usage overage (Plus plan) <a href="#ai-usage-max-overage-plus" id="ai-usage-max-overage-plus"></a>

For the Plus plan, which does not support multiple users, instead of setting a limit per user, you set a maximum amount of AI usage overage for each billing cycle.

You set the limit from the **Plan & Billing** page of **Account Settings**, in the **AI Spend Limits** section.

In the **Overage Limit** field, provide the maximum overage per billing cycle. If the field is empty, then there is no limit on the AI usage overage.

When the usage cost reaches the total of your allowance plus the maximum overage, AI features are paused until the next billing cycle.

For example, your account is billed each month for the AI overage above the allowance that you receive. Your allowance is $25 for each month. The overage is set to $500. Assuming you use the $500 overage limit, your account:

* Can use up to $525 in total AI usage cost each month. After that, AI features are paused until the next billing cycle.
* Can be billed for up to $500 for overage each month.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tonic.ai/fabricate/about-fabricate/fabricate-pricing-and-ai-usage/tracking-and-limiting-ai-usage-and-cost.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
