Billing

Get Recent Usage

get/billing/usage/recent

Query parameters

pageinteger

Page number (1-indexed)

Page number (1-indexed)

page_sizeinteger

Items per page

Items per page

startstring nullable

Start date YYYY-MM-DD (inclusive)

Start date YYYY-MM-DD (inclusive)

endstring nullable

End date YYYY-MM-DD (inclusive)

End date YYYY-MM-DD (inclusive)

modelstring nullable

Filter by model name (substring match)

Filter by model name (substring match)

credit_typestring nullable

Filter by credit type: subscription, regular, mixed, none

Filter by credit type: subscription, regular, mixed, none

model_namestring nullable

Exact model name match (distinct from model which is substring)

Exact model name match (distinct from model which is substring)

input_tokensinteger nullable

Exact input_tokens match

Exact input_tokens match

output_tokensinteger nullable

Exact output_tokens match

Exact output_tokens match

sort_bystring

Sort field: date, amount, total_tokens

Sort field: date, amount, total_tokens

sort_orderstring

Sort direction: asc, desc

Sort direction: asc, desc

Headers

authorizationstring nullable
x_session_tokenstring nullable

Response

Successful Response

Changes