Skip to main content
GET
Error

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

days
integer

Number of days (default 30)

start_date
string

Start date (YYYY-MM-DD)

end_date
string

End date (YYYY-MM-DD)

model
string[]

Filter by exact model names; repeat or comma-separate for several

provider
string[]

Filter by provider names or types; repeat or comma-separate for several

label
string[]

Filter by request labels (exact match); repeat for several

endpoint
string[]

Filter by exact request endpoints, e.g. /v1/chat/completions,/v1/messages; repeat or comma-separate for several

operation
string

Filter by comma-separated operations, e.g. chat_completions,embeddings

session_id
string

Filter by exact detected session ID

auth_key_id
string[]

Filter by managed auth key IDs; repeat or comma-separate for several

user_path
string[]

Filter by tracked user path subtrees; repeat for several

cache_mode
string

Cache mode filter: uncached, cached, all (default uncached)

Response

OK

cache_write_input_tokens
integer
cached_input_tokens
integer
rewrite_cost_saved
number
rewrite_tokens_saved
integer

Rewrite savings: prompt tokens request rewriters removed before the provider call, and the estimated input cost avoided (nil when no matched row had a priced savings estimate).

total_billed_cost
number | null

TotalBilledCost is what the period was billed at: provider cost plus markup. Unlike the other cost fields it includes billed response-cache hits in every cache mode, because those are billed to the caller too.

total_cost
number
total_input_cost
number
total_input_tokens
integer
total_output_cost
number
total_output_tokens
integer
total_requests
integer
total_tokens
integer
uncached_input_tokens
integer