Unary · Billing
Returns organization-level enterprise AI usage totals for reporting.
Reports BYOK (bring-your-own-key) token spend: cost in the
organization’s billing currency plus token counts, with a per-model
breakdown. Credit-based usage from managed models is not included and
the credits field is not populated by this endpoint.
Use this method to:
- Report total BYOK AI spend (cost and tokens) for a date range
- Break down organization usage by model
Examples
-
Get usage totals for January:
Returns organization-wide BYOK spend for the month. Both dates are
inclusive and the range must not exceed 31 days.
Authorization
Requiresbilling:read_usage permission on the organization.
Endpoint
https://app.ona.com with that domain.
Request example
Request
gitpod.v1.GetEnterpriseAIUsageSummaryRequest
Response
gitpod.v1.GetEnterpriseAIUsageSummaryResponse
Related types
DateRange
DateRange
DateRange specifies a time period for queries.
gitpod.v1.DateRangeEnterpriseAITokenUsage
EnterpriseAITokenUsage
gitpod.v1.EnterpriseAITokenUsageEnterpriseAIUsage
EnterpriseAIUsage
gitpod.v1.EnterpriseAIUsageEnterpriseAIUsageBudget
EnterpriseAIUsageBudget
gitpod.v1.EnterpriseAIUsageBudgetEnterpriseAIUsageByModel
EnterpriseAIUsageByModel
gitpod.v1.EnterpriseAIUsageByModelEnterpriseAIUsageByTokenType
EnterpriseAIUsageByTokenType
gitpod.v1.EnterpriseAIUsageByTokenTypeBYOKRateCardTokenType
BYOKRateCardTokenType
BillingCurrency
BillingCurrency
EnterpriseAIUsageBudgetSource
EnterpriseAIUsageBudgetSource