# Choose and Test an AI Model

Source: https://help.dashboardfox.com/ai-query/choose-and-test-an-ai-model

The model you choose affects answer quality, speed and cost. DashboardFox reads the model list straight from your vendor, so new models appear without a product update.

## Prerequisites

- **Admin** role
- A provider with an API key entered. See [Set Up an AI Provider](https://help.dashboardfox.com/ai-query/set-up-an-ai-provider).

## Choose a Model

1. Open the provider under **Settings → AI Query → Providers**.
2. Select **Fetch models**. The list your key can use opens, sorted into groups.
3. Select **Model** beside the model you want. To set a cheaper model for small steps, select **Routing** beside it.

| Group | What it holds | Best for |
|---|---|---|
| **Suggested** | Good fits from your vendor's current list | The place to start |
| **Everyday** | The vendor's main, mid-priced models | Building documents, for most teams |
| **Budget** | The vendor's smallest, cheapest models | The routing model |
| **Premium** | The vendor's top models: slower and much more expensive | Rarely needed |
| **Older and other** | Earlier models | Avoid for new setups |

**Tip:** Start with a current Everyday model. Newer models make fewer mistakes and need fewer retries, so they often cost less in practice than older, cheaper ones. Prefer a model name without a date at the end, as dated versions are retired by vendors.

## Test a Model

Select **Test** on the provider form. You can test before saving.

Test checks the connection, then asks the model one sample question on a small sample app built into DashboardFox. None of your apps or data are used.

| Result | What it means | What to do |
|---|---|---|
| **Connected. This model built a report correctly.** | The model works well | Save |
| **Connected, but this model needed a second try…** | It works, with more retries and cost | Usable. A newer or larger model will likely do better. |
| **Connected, but this model could not build a valid report.** | The model is not suited to Ask AI | Choose a newer or larger model and test again |
| **Connected, but the model did not answer…** | The vendor did not respond | Test again |

The result also shows the time taken, tokens used and, if you entered prices, the estimated cost.

If Test cannot connect, the message explains why in plain words. See [Troubleshooting Ask AI](https://help.dashboardfox.com/ai-query/troubleshooting-ask-ai).

## Compare Models

Before switching a provider people already use to a new model, compare the two on your users' real questions.

1. Open the provider and enter the new model's name in the **Model** box.
2. In the **Preview** pane, select **Compare models**.
3. DashboardFox asks the new model up to 10 of your users' recent questions and shows the results side by side: **Built, first try**, **Built after a retry**, **Not built**, or **Asked back or declined**.

Nothing changes until you select **Save**. Documents are built but not run, so no data is read.

**Note:** Compare needs questions to work from. On a new provider, use **Test** until people have asked a few questions.

## Best Practices

- **Use a current, mid-priced model** for building documents.
- **Keep small models for routing.** Budget models usually produce weaker documents.
- **Compare before moving to a cheaper model**, then switch a pilot group first.
- **Check the Last 30 days column** on the Providers list after a week. If many questions are not built, try another model, or improve the category in Prepare for AI.
- **Local models** (self-hosted) need a large context window, at least 32k tokens. Test and compare carefully before giving one to users.

## Additional Resources

- [AI Costs and Usage Limits](https://help.dashboardfox.com/ai-query/ai-costs-and-usage-limits)
- [Review AI Activity in the AI Audit](https://help.dashboardfox.com/ai-query/review-ai-activity-in-the-ai-audit)
- **DashboardFox Academy:** [Choose, test and cost an AI model](https://dashboardfox.com/academy/ai-model-testing/)
