usage

Get global usage by date and pricing source

get/admin/v1/usage/by-date-pricing-source

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /admin/v1/usage/by-date-pricing-source
  • Auth: HTTP bearer

Query parameters

start_datestring nullable

Start date (YYYY-MM-DD)

end_datestring nullable

End date (YYYY-MM-DD)

record_typestring nullable

Hadrian Extension: Filter by record type: "model" (LLM requests) or "tool" (server-side tool invocations). Omit to include both.

Response

Daily usage breakdown by pricing source

audio_secondsinteger required

Hadrian Extension: Audio duration in seconds

character_countinteger required

Hadrian Extension: Character count (TTS input)

datestring required

Date (YYYY-MM-DD)

image_countinteger required

Hadrian Extension: Number of images generated

input_tokensinteger required

Input tokens

output_tokensinteger required

Output tokens

pricing_sourcestring required

Pricing source

request_countinteger required

Number of requests

total_costnumber double required

Total cost in dollars for this day/pricing source

total_tokensinteger required

Total tokens

Changes

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