# Analytics

Trends, breakdowns, token costs and cache efficiency on the spend basis, with filters and exports.

AI Spendbook documentation, Analysis & planning. Web page: https://www.aispendbook.com/docs/analytics

The Analytics page shows spend for any date range with five tabs: **Trends**, **Breakdown**, **Token costs**, **Cache efficiency** and **Reconciliation**. A freshness indicator in the header shows how current the data is.

## Filters

- Date presets: Last 7 days, Last 30 days (the default), Last 90 days, Month to date, Last month and Year to date, or custom dates. A range can span up to 731 days. Dates are UTC.
- Filters by Provider, Model, Feature, Customer and Category. Members limited to specific projects see only their projects.

## Which numbers you see

- Spend uses the spend basis: for each UTC day and provider, billed spend where it exists, otherwise the provider usage estimate, otherwise the telemetry estimate. The bases never overlap and are never added together.
- Feature, customer and category filters apply to request telemetry only, because billed and provider-reported spend carry no attribution. With those filters the figures are telemetry estimates.
- Allocated spend per customer is on [customer margin](https://www.aispendbook.com/docs/customer-margin), not here.

## Tabs

| Tab | What it shows |
| --- | --- |
| Trends | Spend per day, week or month, as a total or grouped by provider, model, feature, usage category, customer, project, workload or spend basis. The eight largest groups are shown and the rest merge into Other. |
| Breakdown | Spend by one dimension, sortable, with shares of total spend, unattributed spend and whether the figures came from provider billing, request telemetry or both. A link opens the matching usage records. |
| Token costs | Estimated cost by token type for each provider and model, at the price sheet rate for each day (contract rates included). |
| Cache efficiency | Hit rate (cache reads over input plus cache reads) and net savings: the saving on cache reads minus the extra cost of cache writes, against paying the full input price. |
| Reconciliation | Billed spend, provider usage and telemetry side by side. See reconciliation. |

- Token and cache figures use provider usage reports where available, otherwise request telemetry. They are estimates. How the three sources relate is in [reconciliation](https://www.aispendbook.com/docs/reconciliation).
- Trends, Breakdown and Reconciliation export to CSV. Exports need the Analyst role or higher.
- Analytics is in every plan. Viewers and above can read it. The Reconciliation tab is closed to members limited to specific projects.
