{% extends "base.html" %} {% block title %}Dashboard - AISBF{% endblock %} {% macro format_tokens(value) %} {% if value is none or value == 0 %}0{% else %} {% set val = value | float %} {% if val >= 1000000000 %} {{ "%.2f"|format(val / 1000000000) }}B {% elif val >= 1000000 %} {{ "%.2f"|format(val / 1000000) }}M {% elif val >= 1000 %} {{ "%.2f"|format(val / 1000) }}K {% else %} {{ value }} {% endif %} {% endif %} {% endmacro %} {% block content %} {% if success %}
{{ success }}
{% endif %} {% if error %}
{{ error }}
{% endif %}
avatar

Welcome back, {{ display_name }}!

Manage your AI configurations, track usage, and access your personal API endpoints.

{% if session.role == 'admin' %}
Admin
{% endif %}
Total Tokens
{{ format_tokens(usage_stats.total_tokens|default(0)) }}
Requests Today
{{ usage_stats.requests_today|default(0) }}
Active Providers
{{ providers_count|default(0) }}
Active Rotations
{{ rotations_count|default(0) }}

Quick Actions

{% if current_tier %}

Subscription

{% if not current_tier.is_default %} Manage {% endif %}

{{ current_tier.name }}

{% if current_tier.is_default %} Free Tier {% else %}
{{ currency_symbol }}{{ "%.2f"|format(current_tier.price_monthly) }}/mo
{% if current_tier.price_yearly %}
or {{ currency_symbol }}{{ "%.2f"|format(current_tier.price_yearly) }}/year
{% endif %} {% endif %}
{% if subscription %}
{{ subscription.status|title }} {% if subscription.next_billing_date %}
Renews {{ subscription.next_billing_date }}
{% endif %}
{% endif %}
{% if not payment_methods or payment_methods|length == 0 %} Add Payment Method {% endif %} {% if upgrade_tiers %}
Unlock more power
{% if upgrade_tiers|length == 1 %} Upgrade to {{ upgrade_tiers[0].name }} for {{ currency_symbol }}{{ "%.2f"|format(upgrade_tiers[0].price_monthly) }}/mo {% else %} {{ upgrade_tiers|length }} higher plans available — more requests, more providers {% endif %}
Upgrade Plan
{% endif %}
{% endif %}

Recent Activity

{% if recent_activity %} {% for activity in recent_activity %} {% endfor %} {% else %} {% endif %}
Timestamp Provider Model Tokens
{{ activity.timestamp }} {{ activity.provider_id }} {{ activity.model }} {{ activity.token_count }}
No recent activity yet. Make your first API request to see usage here.

Your API Endpoints

Show / Hide  

Include your API token in the Authorization header:

Authorization: Bearer YOUR_API_TOKEN
Models
GET
/api/u/{{ session.username }}/models
List all your models
Providers
GET
/api/u/{{ session.username }}/providers
List your configured providers
Rotations & Autoselect
GET
/api/u/{{ session.username }}/rotations
List your rotations
GET
/api/u/{{ session.username }}/autoselects
List your autoselects
Chat Completions
POST
/api/u/{{ session.username }}/chat/completions
Send chat requests using your configs
MCP Tools
GET
/mcp/u/{{ session.username }}/tools
List MCP tools
POST
/mcp/u/{{ session.username }}/tools/call
Call MCP tools
Model format examples
user-provider/myprovider/mymodel
user-rotation/myrotation
user-autoselect/myautoselect
{% if session.role == 'admin' %}

Admin Access

As an admin you also access global configurations via shorter model formats:

provider/model  •  rotation/myrotation  •  autoselect/myautoselect

{% endif %}
 Your API token is required for all endpoints. Manage your tokens →
{% endblock %}