Usage logs
Usage logs of the LLM gateway: every call made by the organization, with its tokens and the credits it cost, and a daily summary. Login tokens only.
List gateway usage logs
Returns the organization's LLM gateway calls, newest first, 10 per page (`page`): who made each call, the model, its tokens and the credits it cost. Calls of cloud runs are included. Login tokens only: API keys get 401.
Retrieve a gateway usage log
Returns one LLM gateway call of the organization. Login tokens only: API keys get 401.
Summarize gateway usage by day
Totals the organization's LLM gateway calls per day between `start_date` and `end_date` (inclusive, at most 92 days apart), with days counted in the time zone `tz`. Only days with calls are listed. With `by_key=true`, each day is also broken down by API key. 400 for a missing or invalid date, range or time zone. Login tokens only: API keys get 401.