billing/analytics.getOrgCostSummary
Type: query
Module: convex/billing/analytics.ts
Arguments
Section titled “Arguments”{ orgId: string, startDate: number, endDate: number, }Aggregate AI cost breakdown for an organization within a date range. Returns total tokens, cost, and per-model breakdowns. @param orgId - Organization ID @param startDate - Range start (epoch ms) @param endDate - Range end (epoch ms)