Track your AI usage and estimated costs
Total Requests
<%= number_with_delimiter(@statistics[:total_requests]) %>
Total Tokens
<%= number_with_delimiter(@statistics[:total_tokens]) %>
<%= number_with_delimiter(@statistics[:total_prompt_tokens]) %> prompt / <%= number_with_delimiter(@statistics[:total_completion_tokens]) %> completion
Total Cost
$<%= sprintf("%.2f", @statistics[:total_cost]) %>
Avg Cost/Request
$<%= sprintf("%.4f", @statistics[:avg_cost]) %>
<% if @statistics[:requests_with_cost] < @statistics[:total_requests] %>Based on <%= number_with_delimiter(@statistics[:requests_with_cost]) %> of <%= number_with_delimiter(@statistics[:total_requests]) %> requests with cost data
<% end %>| Date | Operation | Model | Tokens | Cost |
|---|---|---|---|---|
| <%= usage.created_at.strftime("%b %d, %Y %I:%M %p") %> | <%= usage.operation.humanize %> | <%= usage.model %> |
<% if usage.failed? %>
<%= icon "alert-circle", class: "w-4 h-4 text-red-600 theme-dark:text-red-400" %>
Failed
|
<%= usage.formatted_cost %> |
No usage data found for the selected period
About Cost Estimates
Costs are estimated based on OpenAI's pricing as of 2025. Actual costs may vary. Pricing is per 1 million tokens and varies by model. Custom or self-hosted models will show "N/A" and are not included in cost totals.