LLM cost time series
API-equivalent LLM cost over time (USD list price of the usage) — an estimate, not billed spend.
API-equivalent LLM cost over time (USD list price of the usage) — an estimate, not billed spend.
ApiKeyAuthAuthorizationBearer <token>Bearer token authentication. Send an API key (a saai_api_-prefixed token) as Authorization: Bearer <token>.
Required permission
view_llm_analyticsstart_time*stringStart of the time range to report on, inclusive.
date-timeend_time*stringEnd of the time range to report on, exclusive.
date-timeinterval?stringTime bucket size for the series: hour or day.
"hour""day"provider?array<>Filter to specific LLM telemetry providers.
model?array<string>Filter to specific model names.
user_id?array<>Filter to specific users by id.
user_group?array<string>Filter to users in specific groups.
auth_mode?array<>The request has succeeded.
application/json- response
Time-bucketed API-equivalent cost (USD list price of the usage) — an estimate, not billed spend.
series*array<>Ordered cost data points, one per time bucket.
curl -X GET "https://example.com/analytics/llm-cost-over-time?start_time=2019-08-24T14%3A15%3A22Z&end_time=2019-08-24T14%3A15%3A22Z"{ "series": [ { "timestamp": "2019-08-24T14:15:22Z", "cost": 0.1 } ]}LLM cost by group GET
Cost per user group over a time range, alongside how much of each group's seats are in use. A user who belongs to several groups has their cost split evenly across them, so group rows always sum to the org total. Usage from users with no group is returned in an Unassigned ("") row, which cannot be filtered to. Filtering by group narrows the split as well as the rows: only the selected groups come back, each charged its members' whole cost, and the rows still sum to the filtered total. Filters are limited to provider and user_group; for one person's cost, filter the per-user endpoints by user_id.
Total LLM cost GET
Total API-equivalent LLM cost (USD list price of the usage) — an estimate, not billed spend.