{% extends "settings_base.html" %} {% import "_connection_summary.html" as summaries %} {% import "_status_badge.html" as badges %} {% import "_icons.html" as icons %} {% block summary_cards %} {{ summaries.summary_card("$", "Pricing rows", model_prices | length | compact_number, "Provider/model entries") }} {{ summaries.summary_card("PV", "Providers", providers | length | compact_number, "Available registries") }} {{ summaries.summary_card("FB", "Default provider", fallback.provider_name | default("No provider", true), "Fallback billing context", true) }} {{ summaries.summary_card("DB", "Stored rows", summary.stored_rows | compact_number, (summary.rows_older_than_retention | compact_number) ~ " older than " ~ summary.retention_days ~ " days") }} {% endblock %} {% block settings_content %}

Catalog Sync

Preview current router catalog rows before updating local pricing.

{{ badges.status_badge("Review") }}
Apply Status Model Endpoint Input / 1M Cached / 1M Output / 1M Context Tools Checked
Preview catalog rows before applying updates.

Model Pricing

Scalar rates plus optional token-count tiers for what-if cost comparisons.

{{ icons.icon("plus", class_name="button-icon") }}Add price
{% for price in model_prices %} {% else %} {% endfor %}
Provider Model Display name Input / 1M Cached input / 1M Output / 1M Aliases Tiers Active Actions
{{ price.provider_name }} {{ price.model }} {{ price.display_name | default("-", true) }} {{ price.input_usd_per_million | usd }} {{ price.cached_input_usd_per_million | usd }} {{ price.output_usd_per_million | usd }} {{ price.aliases | default("-", true) }}
{{ price.tiers | length }} tier{{ "" if price.tiers | length == 1 else "s" }} {% if price.tiers %}
{% for tier in price.tiers %}
{{ tier.label | default(tier.range, true) }} {{ tier.range }} In {{ tier.input_usd_per_million | usd }} / Cached {{ tier.cached_input_usd_per_million | usd }} / Out {{ tier.output_usd_per_million | usd }} {% if tier.checked_at or tier.release_date %} {{ tier.checked_at | default("", true) }} {{ tier.release_date | default("", true) }} {% endif %}
{% endfor %}
{% else %}

Scalar only

{% endif %}
{{ badges.status_badge("Active" if price.active else "Inactive") }}
No model pricing entries are configured.

Add Or Update Price

Used for request cost estimates and run what-if comparisons.

{{ badges.status_badge("Editable") }}
{% endblock %}