APIAnalytics

LLM spend summary

Subscription-vs-API cost split for a time range, using configured seat pricing. Accepts only seat-coherent filters: provider, user, and group scope both the usage legs and the priced seats; a model can't scope a seat, so there is no model param (and no auth_mode — the endpoint decomposes by auth path itself).

GET/analytics/llm-spend-summary

Subscription-vs-API cost split for a time range, using configured seat pricing. Accepts only seat-coherent filters: provider, user, and group scope both the usage legs and the priced seats; a model can't scope a seat, so there is no model param (and no auth_mode — the endpoint decomposes by auth path itself).

Query Parameters

start_time*string
Formatdate-time
end_time*string
Formatdate-time
provider?array<>
user_id?array<>
user_group?array<string>

Response Body

application/json

application/json

curl -X GET "https://example.com/analytics/llm-spend-summary?start_time=2019-08-24T14%3A15%3A22Z&end_time=2019-08-24T14%3A15%3A22Z"
{  "api_equivalent": 0.1,  "api_spend": 0.1,  "subscription_spend": 0.1,  "subscription_savings": 0.1,  "seat_pricing_configured": true}