usage

Get Inference Usage Aggregate

Aggregate the team's inference usage into time buckets, optionally grouped.

get/v2/usage/inference

Query parameters

startstring date-time nullable

Window start; defaults to end-7d

Window start; defaults to end-7d

endstring date-time nullable

Window end; defaults to now

Window end; defaults to now

bucket_width'1h' | '1d'
group_by'api_key' | 'byok' | 'model' | 'user' | 'route' nullable
user_idstring uuid nullable
api_key_idstring uuid nullable
byok_credential_idstring uuid nullable

Response

Successful Response

startstring date-time required
endstring date-time required
bucket_width'1h' | '1d' required
group_by'api_key' | 'byok' | 'model' | 'user' | 'route' nullable
total_requestsinteger required
total_costnumber required

Changes

No recorded changes to this endpoint across all 1 revision of this API.