nbroad's picture
Upload folder using huggingface_hub
a62ecf2 verified
|
Raw History Blame Contribute Delete
1.9 kB
metadata
title: OpenRouter Provider Dashboard
emoji: 📊
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
license: mit

OpenRouter Provider Dashboard

A dashboard to compare token usage across different OpenRouter providers.

Features

  • Interactive Charts: Visualize token usage over time with interactive line charts
  • Provider Comparison: Compare multiple providers side-by-side
  • Model Analysis: Deep dive into models and their distribution across providers
  • Time Range Filtering: Filter data by time ranges (all time, 30 days, 7 days)
  • Dynamic Summing: Adjust the number of days to sum over with a slider

Dashboard Sections

Overview Cards: Click on provider cards to select/deselect them for comparison

Daily Token Usage Over Time:

  • Line chart showing daily token usage
  • Filter by: All time, Last 30 days, Last 7 days
  • Only shows selected providers

Average Daily Tokens by Provider:

  • Bar chart showing average daily token usage

Deep Dive: Models & Providers:

  • View models by provider or providers by model
  • Interactive selection and filtering

Model Distribution Across Providers:

  • Shows which providers serve each model
  • Search functionality to find specific models
  • Cumulative token counts

Data

The dashboard loads data from data/full_data.json. Make sure this file exists and contains provider data in the expected format.

Local Development

To run locally:

pip install -r requirements.txt
python app.py

The dashboard will be available at http://localhost:7860

Data Format

Each provider's data contains daily token counts per model:

{
  "provider": "together",
  "data": [
    {
      "x": "2025-10-01 00:00:00",
      "ys": {
        "model-name-1": 12345678,
        "model-name-2": 98765432,
        "Others": 11111111
      }
    }
  ]
}

License

MIT License