Read spend and usage
lobstack_spendBreak down gateway spending by day, model, key, or agent over a chosen range, with request, token, error, and latency figures. Requires usage:read scope.
Instructions
What this organization has spent through the gateway over a range, broken down by day, model, key or agent, with request counts, tokens, error counts and latency percentiles. Requires an API key with the usage:read scope. Reports how many requests could not be priced, because a total that includes them is a floor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | How far back to look. Defaults to 7d. | |
| group_by | No | How to break the total down. Defaults to model. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | ||
| groups | Yes | ||
| enabled | Yes | False when request tracing is not enabled on this deployment. | |
| message | Yes | ||
| summary | Yes | ||
| group_by | Yes | ||
| is_floor | Yes | True when some rows were unpriced or the row cap bound, so the totals are a lower bound, not a total. |