{% extends "base.html" %} {% block title %}Logs - OpenWebUI Monitor{% endblock %} {% block content %}

API Call Logs

{% if logs %}
Showing {{ logs|length }} API calls on page {{ pagination.current_page }} of {{ pagination.total_pages }}. Total: {{ pagination.total_count }} records. Logs are ordered by timestamp (newest first).
Current Page Statistics

{{ logs|length }}

Total Calls

{{ "{:,}".format(logs|sum(attribute='input_tokens')) }}

Input Tokens

{{ "{:,}".format(logs|sum(attribute='output_tokens')) }}

Output Tokens

${{ "%.6f"|format(logs|sum(attribute='cost_usd')) }}

Total Cost
Recent API Calls
{% for log in logs %} {% endfor %}
Timestamp User Email Model Input Tokens Output Tokens Total Tokens Cost (USD)
{{ log.timestamp }} {{ log.user_email }} {{ log.model_id }} {{ "{:,}".format(log.input_tokens) }} {{ "{:,}".format(log.output_tokens) }} {{ "{:,}".format(log.total_tokens) }} ${{ "%.6f"|format(log.cost_usd) }}
{% if pagination.total_pages > 1 %}
{% endif %} {% else %}

No Logs Available

No API calls have been recorded yet.

Back to Dashboard
{% endif %} {% endblock %} {% block scripts %} {% endblock %}