Get usage
Usage today and over the last 30 days, and the limits of your key.
GEThttps://api.typesearch.ai/v1/usage
Returns what the calling key has used today (since 00:00 UTC) and over the last 30 days, and its limits. It spends no tokens.
Response
object"usage"Always
usage.keyobjectThe key making the request.
Show child attributes
idstringThe key’s visible prefix.
namestringThe name given to the key.
limitsobjectThe key’s limits.
Show child attributes
tokens_per_dayintegerDaily model-token quota. Resets at 00:00 UTC.
requests_per_minuteintegerRequests allowed per minute.
requests_per_secondinteger | null
todayobjectUsage since 00:00 UTC.
Show child attributes
requestsintegerRequests.
tokensintegerModel tokens.
cost_usdnumberCost in US dollars.
remaining_tokensintegerTokens left today.
last_30_daysobjectUsage over the last 30 days.
Show child attributes
requestsintegerRequests.
tokensintegerModel tokens.
cost_usdnumberCost in US dollars.
creditobject | nullShow child attributes
balance_usdnumberplanenum<string>spent_this_month_usdnumbermonthly_limit_usdnumber | null