Relay

savings dashboard · v{{ version }}
{% if not has_data %}

No data yet. The gateway needs a request log to render the dashboard.

Once traffic flows through, this page will show cumulative savings, weekly trends, per-model spend, and the last 20 requests.

{% else %}
Cumulative money saved

${{ "{:,.2f}".format(cumulative_savings) }}

baseline: {{ config.savings.baseline_model or "(not configured)" }} · methodology: {{ config.savings.methodology }} {% if config.savings.methodology == "naive" %}(estimated){% endif %}
Quality delta
{% if quality_delta %}

{{ "%+.1f"|format(quality_delta.quality_delta_pct) }}%

{{ quality_delta_text }}
benchmark #{{ quality_delta.run_id }} · methodology: {{ quality_delta.methodology }}
{% else %}

{{ quality_delta_text }}
{% endif %}
Total requests

{{ "{:,}".format(total_requests) }}

Cumulative spend

${{ "{:,.2f}".format(cumulative_cost) }}

This week — requests

{{ "{:,}".format(weekly_requests) }}

This week — savings

${{ "{:,.2f}".format(weekly_savings) }}

This week's savings by category

Category Savings % of weekly total
Cheap-tier routing ${{ "{:,.2f}".format(weekly_cheap_savings) }} {{ "{:.1f}".format((weekly_cheap_savings / weekly_savings * 100) if weekly_savings > 0 else 0) }}%
Cache hits ${{ "{:,.2f}".format(weekly_cache_savings) }} {{ "{:.1f}".format((weekly_cache_savings / weekly_savings * 100) if weekly_savings > 0 else 0) }}%
Negative savings (failovers etc.) ${{ "{:,.2f}".format(weekly_negative_savings) }}

Per-model traffic and spend

{% if per_model %} {% for m in per_model %} {% endfor %}
Model Requests Spend Savings
{{ m.provider_model }} {{ "{:,}".format(m.requests) }} ${{ "{:,.4f}".format(m.cost) }} ${{ "{:,.4f}".format(m.savings) }}
{% else %}

No model data yet.

{% endif %}

Last 20 requests

{% if recent %} {% for r in recent %} {% endfor %}
When Key Model Status Tokens (in / out) Cost Savings Cache Failover
{{ r.ts.strftime("%Y-%m-%d %H:%M:%S") if r.ts else "" }} {{ r.gateway_key_id }} {{ r.provider_model or "—" }} {{ r.status }} {{ r.input_tokens or 0 }} / {{ r.output_tokens or 0 }} ${{ "{:,.4f}".format(r.cost_usd) if r.cost_usd else "0.0000" }} {% if r.savings_usd is not none %}${{ "{:,.4f}".format(r.savings_usd) }}{% else %}—{% endif %} {% if r.cache_hit %}✓{% else %}{% endif %} {% if r.failover %}⚠{% else %}{% endif %}
{% else %}

No requests yet.

{% endif %} {% endif %}