Get my usage details
Returns the calling user’s LiteLLM spend and token usage for the requested date window — totals, per-day breakdown, and per-model breakdown. The window defaults to the last 30 days ending today (UTC) and is capped at 92 days. Gated by the admin show_user_budget_in_chat setting: when the setting is off, usage is null and no spend data is surfaced. Requires authentication; returns 401 for unauthenticated callers. Returns 502 when LiteLLM is unreachable.
Authorizations
Organisation API key. Format: sk_<secret>/<keyname> — the secret portion, a literal slash, and the human-readable key name. The header exulu-api-key is accepted as an alias. A Bearer prefix is tolerated and stripped. Keys with an agent scope are only valid for the scoped agent instance.
Query Parameters
Start of the window. Accepts YYYY-MM-DD or an ISO datetime string. Defaults to 30 days before end_date.
End of the window. Accepts YYYY-MM-DD or an ISO datetime string. Defaults to today (UTC).
Response
Usage view for the requested window, or null when spend data is hidden by the admin.
null when show_user_budget_in_chat is disabled or the user has no LiteLLM budget tag.