Skip to main content
GET
Get LLM-spend timeseries

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Query Parameters

from
string<date-time>

Window start, ISO-8601 with offset. Defaults to 7 days (hour) or 30 days (day) before to.

to
string<date-time>

Window end, ISO-8601 with offset. Defaults to now.

granularity
enum<string>
default:day

Bucket size. hour is limited to a 14-day window.

Available options:
hour,
day

Response

200 - application/json

One row per time bucket with total tokens and total spend in integer cents.

The response is of type object.