# AI Costs and Usage Limits

Source: https://help.dashboardfox.com/ai-query/ai-costs-and-usage-limits

DashboardFox does not charge for AI. You use your own AI provider account and pay your vendor directly for what you use. This article explains what drives cost and how to keep it under control.

## What a Question Costs

Plan on **about 16,000 tokens per question**. That is typically a few cents on a mid-priced model, and less with prompt caching.

- **Every follow-up counts as a question** of about the same size.
- **A question that needs a retry** can use up to three times as much.
- **Cost depends on the category, not your data.** A category with more tables and fields turned on for AI uses more tokens. The amount of data in your database does not matter.

**Note:** Your vendor's invoice is the final word. Estimates in DashboardFox are based on the prices you enter.

## See Estimated Cost

Enter your vendor's prices on the provider under **Prices per million tokens**: **Input**, **Cached input** and **Output**. Estimated cost then appears in:

- **Test** results on the provider
- The **Last 30 days** column on the Providers list
- The **AI Audit** totals

Prices entered later do not change the cost recorded for earlier questions.

## Usage Limits

Set these per app under **Settings → AI Query → Apps → Edit**.

**Daily token limit:** The most tokens the app may use in a day, across all users. When it is reached, AI is unavailable on that app until the next day. It is a safety net against runaway use, not a meter.

**Questions per conversation:** How many follow-ups a conversation allows before the user starts a new question. The default is 10.

### Setting the Daily Limit

Use this formula: **questions per day × 16,000 × 1.5**

| Questions per day | Suggested limit |
|---|---|
| 50 | about 1.2 million tokens |
| 100 | about 2.4 million tokens |
| 200 | about 5 million tokens |

After the first week, check actual use in the AI Audit and adjust.

## Ways to Lower Cost

1. **Turn off what the AI doesn't need.** In Prepare for AI, switch off tables and fields nobody reports on. This is the biggest saving.
2. **Keep prompt caching on.** The repeated part of each question is reused at a lower price.
3. **Use a current, mid-priced model.** Fewer retries often make it cheaper than an older budget model.
4. **Use a routing model** for small steps on very large categories.
5. **Prepare categories well.** Clear descriptions and sample questions mean fewer clarifying questions and retries.

## Split Costs by Client or Department

Create one provider per group, each with its own API key. Usage then shows separately in the AI Audit and on your vendor's bill. Filter the AI Audit by app or user and export it for chargeback.

## Additional Resources

- [Choose and Test an AI Model](https://help.dashboardfox.com/ai-query/choose-and-test-an-ai-model)
- [Review AI Activity in the AI Audit](https://help.dashboardfox.com/ai-query/review-ai-activity-in-the-ai-audit)
- **DashboardFox Academy:** [Turn AI on for an app](https://dashboardfox.com/academy/ai-app-settings/)
