{% extends "admin_layout.html" %} {% import "_page.html" as page_ui %} {% block title %}Spark - Usage{% endblock %} {% block page %}
Credits are worked out for each call at its connection's rates when it was made; changing a connection's rates never changes what earlier calls cost.
{% if totals %}| Connection | Requests | Input | Output | Cache read | Cache write | Total tokens | Credits |
|---|---|---|---|---|---|---|---|
| {{ row.connection }} | {{ "{:,}".format(row.requests) }} | {{ "{:,}".format(row.input_tokens) }} | {{ "{:,}".format(row.output_tokens) }} | {{ "{:,}".format(row.cache_read_tokens) }} | {{ "{:,}".format(row.cache_write_tokens) }} | {{ "{:,}".format(row.total_tokens) }} | {{ credits(row.credits) }} |
No usage recorded for this month.
{% endif %}| Month | User | Connection | Model | Requests | Input | Output | Cache read | Cache write | Total tokens | Credits |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ row.period }} | {{ row.user }} | {{ row.connection }} | {{ row.model }} |
{{ "{:,}".format(row.requests) }} | {{ "{:,}".format(row.input_tokens) }} | {{ "{:,}".format(row.output_tokens) }} | {{ "{:,}".format(row.cache_read_tokens) }} | {{ "{:,}".format(row.cache_write_tokens) }} | {{ "{:,}".format(row.total_tokens) }} | {{ credits(row.credits) }} |
No usage recorded for this month.
{% endif %}Allowances are set on each connection's assignments and reset at 00:00 UTC on the first of each month. A user's own assignment wins over their roles'; otherwise the highest allowance of their roles applies. Users are warned at 80%; at 100% new requests on that connection are refused, while a request already running finishes.
{% if standings %}| User | Connection | Used | Allowance | Standing |
|---|---|---|---|---|
| {{ item.person.label }} | {{ status.connection }} | {{ credits(status.used) }} | {{ credits(status.limit) if status.limit is not none else "No limit" }} | {% if status.state == "exceeded" %}Allowance used {% elif status.state == "warning" %}{{ status.percent }}% {% elif status.state == "ok" %}{{ status.percent }}% {% else %}No limit{% endif %} |
No metered connection is assigned to anyone yet.
{% endif %}