{% extends "admin/base_site.html" %} {% load i18n admin_urls %} {% block extrastyle %}{{ block.super }} {% endblock %} {% block content %}

{% for d, label in windows %} {{ label }} {% endfor %} Estimates from token counts and list prices; the provider's invoice is the truth.

{% with h=data.headline %}
{% if h.cost_total is not None %}${{ h.cost_total|floatformat:2 }}{% else %}--{% endif %} spent (priced calls)
{{ h.calls }} calls
{{ h.users }} users
{{ h.input_tokens }} tokens in {{ h.cache_share }}% from the provider's prompt cache
{{ h.output_tokens }} tokens out
{{ h.unpriced }} unpriced not in any total
{{ h.cache_hits }} struckdown cache hits repeat prompts answered without a request
{{ h.failed }} failed
{% endwith %}

By feature

{% for r in data.by_feature %} {% empty %} {% endfor %}
Feature (root span)CallsUsersInPrompt-cachedOut Input $Output $Total $Per callPer userUnpriced
{{ r.feature }} {{ r.calls }} {{ r.users }} {{ r.input_tokens }} {{ r.cache_share }}% {{ r.output_tokens }} {{ r.cost_in|floatformat:4|default:"--" }} {{ r.cost_out|floatformat:4|default:"--" }} {{ r.cost_total|floatformat:4|default:"--" }} {{ r.per_call|floatformat:5|default:"--" }} {{ r.per_user|floatformat:4|default:"--" }} {{ r.unpriced }}
No calls in this window.

By model

{% for r in data.by_model %} {% empty %} {% endfor %}
ModelKindCallsInPrompt-cachedOut Input $Output $Total $Per callUnpriced
{{ r.model_name }} {{ r.provider }} {{ r.kind }} {{ r.calls }} {{ r.input_tokens }} {{ r.cache_share }}% {{ r.output_tokens }} {{ r.cost_in|floatformat:4|default:"--" }} {{ r.cost_out|floatformat:4|default:"--" }} {{ r.cost_total|floatformat:4|default:"--" }} {{ r.per_call|floatformat:5|default:"--" }} {{ r.unpriced }}
No calls in this window.

By month

{% for r in data.by_month %} {% empty %} {% endfor %}
MonthCallsUsersInOutInput $Output $Total $Unpriced
{{ r.month|date:"M Y" }} {{ r.calls }} {{ r.users }} {{ r.input_tokens }} {{ r.output_tokens }} {{ r.cost_in|floatformat:2|default:"--" }} {{ r.cost_out|floatformat:2|default:"--" }} {{ r.cost_total|floatformat:2|default:"--" }} {{ r.unpriced }}
Nothing recorded yet.

Per user

{% with u=data.per_user %}

{{ u.users }} users made calls in this window. Spend per user: mean {% if u.mean is not None %}${{ u.mean|floatformat:4 }}{% else %}--{% endif %}, median {% if u.median is not None %}${{ u.median|floatformat:4 }}{% else %}--{% endif %}, highest {% if u.max is not None %}${{ u.max|floatformat:4 }}{% else %}--{% endif %}. Counts and averages only; named lookups are in the spans and calls lists.

{% endwith %} {% for section in extra_sections %}

{{ section.title }}

{% if section.note %}

{{ section.note }}

{% endif %} {% for c in section.columns %}{% endfor %} {% for row in section.rows %} {% for cell in row %}{% endfor %} {% endfor %}
{{ c }}
{{ cell }}
{% endfor %}
{% endblock %}