Get organization usage
Organization-wide spend rollup: day-granular totals, month-granular per-model breakdown, and optional per-project / per-key / per-vendor grouping. Requires the read_usage scope.
Authentication
A management key (prefixed mgmt_), created in the dashboard under Settings, API keys, Management keys. Distinct from a regular gateway API key, and never used to call models.
Query parameters
YYYY-MM-DD, inclusive. Defaults to the start of the current month.
YYYY-MM-DD, inclusive. Defaults to today.
Response
Managed-credential spend, USD.
BYOK usage at list price, USD (raw vendor cost is $0 for unpriced customer vendors).
Server-side web search cost, USD.
Per-model spend, BYOK-corrected. Month-granular: covers the months the range overlaps.
Present with group_by=project.
Present with group_by=api_key.
Present with group_by=vendor.