Perplexity Usage
perplexity_usageReport recorded upstream Perplexity call costs with exact totals grouped by tool, API, model, project, or day. Filter by project and UTC date range to audit usage.
Instructions
Report what recorded upstream Perplexity calls cost: exact totals over every matching call plus one grouping, filtered by project and UTC date range. Read-only.
The cost is a lower bound: error calls count cost 0 and may have been billed. calls_cost_unknown says how many calls have no known cost. Unknown token counts add 0. Projects are matched by the name recorded with each call, so a deleted project still reports. The Agent tools (ask, chat, research) record their calls; nothing is recorded by a tool that does not make costed calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Most groups to return, 1 to 200 (day keeps the latest) | |
| since | No | First UTC day to include, written YYYY-MM-DD (default: no start) | |
| until | No | Last UTC day to include, written YYYY-MM-DD (default: no end) | |
| project | No | Only this project's calls, matched by name (default: all projects) | |
| group_by | No | Group by tool, api, model, project or day | tool |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | Yes | The group limit that was applied | |
| since | No | The first UTC day included, if any | |
| until | No | The last UTC day included, if any | |
| groups | Yes | At most `limit` groups | |
| totals | Yes | Over every matching call, ignoring limit | |
| project | No | The project filter, if any | |
| group_by | Yes | The grouping that was applied | |
| groups_total | Yes | How many groups matched in all | |
| groups_truncated | Yes | True when groups were cut by `limit` |