{# Trust & Transparency bar #}
SUM(input_tokens × input_rate + output_tokens × output_rate)
baseline_cost − actual_cost
total_cost ÷ total_requests
| Provider | Requests | Baseline | Actual Cost | Savings | Savings % | Avg/Req | Tokens (Raw→Final) |
|---|---|---|---|---|---|---|---|
| {{ row.provider or 'unknown' }} | {{ "{:,}".format(row_requests|int) }} | ${{ "%.4f"|format(baseline) }} | ${{ "%.4f"|format(row_cost) }} | ${{ "%.4f"|format(row_savings) }} | {{ "%.1f"|format(savings_pct) }}% | ${{ "%.5f"|format(avg_cost) }} | {{ "{:,.0f}".format(raw_tokens) }} → {{ "{:,.0f}".format(final_tokens) }} |
| No provider data for this period | |||||||
| Total | {{ "{:,}".format((totals.total_requests or 0)|int) }} | ${{ "%.4f"|format(tot_baseline) }} | ${{ "%.4f"|format(totals.total_actual_cost or 0) }} | ${{ "%.4f"|format(totals.total_savings or 0) }} | {{ "%.1f"|format(tot_sav_pct) }}% | ${{ "%.5f"|format(totals.avg_cost or 0) }} | {{ "{:,.0f}".format(totals.avg_raw_tokens or 0) }} → {{ "{:,.0f}".format(totals.avg_final_tokens or 0) }} |