Skip to main content
GET
Agents' prompt cache

Authorizations

Authorization
string
header
required

nia_sk_...

Query Parameters

since
string<date> | null
until
string<date> | null
group_by
string[] | null
source_id
string<uuid> | null

Response

Successful Response

GET /v1/usage/prompt-cache: the agents' prompt cache, from what the providers reported.

buckets
PromptCacheBucket · object[]
required
group_by
string[]
required
prices
ModelPriceOut · object[]
required

The price of every model the estimate used.

prices_as_of
string
required

When the product's table was taken from the public price lists.

since
string<date>
required
until
string<date>
required
estimate
boolean
default:true

Always true: the savings are an estimate, never what a provider billed.