> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lapathoniia.top/llms.txt
> Use this file to discover all available pages before exploring further.

# Dashboard

> Manage API keys, view usage, and configure your account

<Tabs sync={false}>
  <Tab title="EN">
    ## Dashboard Overview

    The Lapathoniia Dashboard at [lapathoniia.top/dashboard](https://lapathoniia.top/dashboard) is your control panel for managing API access.

    **Available sections:**

    | Section | What you can do |
    | - | - |
    | **Overview** | Current usage summary, active keys |
    | **Keys** | Create, view, and delete API keys |
    | **Usage** | Token consumption, cost breakdown by model |
    | **Billing** | Current budget, spending by period |
    | **Docs** | Links to documentation |

    ## API Keys

    Create and manage your API keys from the **Keys** section.

    * Each key has a **budget limit** (e.g. $0.50/hour or $2.00/month)
    * Keys are scoped to specific models
    * You can create multiple keys for different projects
    * Delete a key instantly to revoke access

    <Note>
      New keys are provisioned automatically when you sign in with Google or GitHub via Clerk authentication.
    </Note>

    ## Usage Statistics

    The **Usage** section shows:

    * Total tokens consumed (prompt + completion)
    * Requests count
    * Cost breakdown by model (LapaLLM, MamayLM, Rukopys OCR)
    * Time period filter: 1d · 7d · 30d · all

    You can also query this programmatically:

    ```bash theme={null}
    curl "https://app.lapathoniia.top/user/stats?period=7d" \
      -H "Authorization: Bearer YOUR_API_KEY"
    ```

    ## Budget & Limits

    The **Billing** section shows your current budget status. To check programmatically:

    ```bash theme={null}
    curl https://app.lapathoniia.top/user/limits \
      -H "Authorization: Bearer YOUR_API_KEY"
    ```

    ```json theme={null}
    {
      "budget": {
        "max_usd": 0.5,
        "used_usd": 0.013,
        "remaining_usd": 0.487
      },
      "ocr": {
        "images_per_hour": 4,
        "used_this_hour": 0,
        "remaining": 4,
        "resets_in_seconds": 3600
      }
    }
    ```

    ## Sign In

    The dashboard uses Clerk authentication. Sign in with:

    * **Google** — recommended
    * **GitHub**
    * **Email + password**

    After sign-in you are redirected to `lapathoniia.top/dashboard` automatically.
  </Tab>

  <Tab title="UA">
    ## Dashboard Overview

    Дашборд Lapathoniia на [lapathoniia.top/dashboard](https://lapathoniia.top/dashboard) — панель управління для роботи з API.

    **Доступні розділи:**

    | Розділ | Що можна зробити |
    | - | - |
    | **Огляд** | Поточна статистика використання |
    | **Ключі** | Створити, переглянути, видалити API ключі |
    | **Статистика** | Кількість токенів, витрати по моделях |
    | **Billing** | Поточний бюджет, витрати за період |
    | **Docs** | Посилання на документацію |

    ## API Keys

    Управляйте ключами в розділі **Ключі**:

    * Кожен ключ має **ліміт бюджету** (наприклад $0.50/год або $2.00/міс)
    * Ключі прив’язані до конкретних моделей
    * Можна створити кілька ключів для різних проєктів
    * Видалення ключа — миттєве відкликання доступу

    ## Usage Statistics

    Розділ **Статистика** показує:

    * Загальна кількість токенів (prompt + completion)
    * Кількість запитів
    * Витрати по моделях (LapaLLM, MamayLM, Rukopys OCR)
    * Фільтр по часу: 1d · 7d · 30d · all

    Або через API:

    ```bash theme={null}
    curl "https://app.lapathoniia.top/user/stats?period=7d" \
      -H "Authorization: Bearer YOUR_API_KEY"
    ```

    ## Sign In

    Дашборд використовує Clerk автентифікацію. Увійти через:

    * **Google** — рекомендовано
    * **GitHub**
    * **Email + пароль**
  </Tab>
</Tabs>
