tools ai billing - BevvyTech/BrewskiDocs GitHub Wiki
Tools – AI Billing (/tools/ai-billing)
- Give super users visibility into AI usage and cost estimates across providers (OpenAI, Gemini, etc.).
- Combine live billing summaries with cached pricing tables so teams can forecast spend.
- Fetches usage summary from
/ai/billing/summary and pricing from /ai/pricing/fetch via apiFetch.
- Access restricted to super users; non-authorised users are redirected away.
- Summary header shows total window, last updated timestamp, and aggregate usage metrics.
- Provider cards list token counts, effective rates, bill estimates, and model-level breakdowns.
- Pricing tables surface per-model context length, availability status, and USD rates (input/output/embedding).
- Loading skeletons cover initial fetch; alerts display when API calls fail; manual “Refresh” button re-queries endpoints.
⚠️ **GitHub.com Fallback** ⚠️