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

# Статистика пользователя

> Статистика генераций текущего пользователя

## Запрос

```bash theme={null}
curl https://elumenta.ru/api/v2/user/stats \
  -H "Authorization: Bearer nb_ВАШ_КЛЮЧ"
```

## Ответ

```json theme={null}
{
  "total_generations": 842,
  "tokens_spent_total": 4210,
  "breakdown": {
    "text": { "count": 510, "tokens": 1020 },
    "image": { "count": 211, "tokens": 2110 },
    "video": { "count": 48, "tokens": 864 },
    "audio": { "count": 53, "tokens": 159 },
    "tools": { "count": 20, "tokens": 22 }
  },
  "recent_30d": {
    "generations": 128,
    "tokens_spent": 640
  }
}
```

<ResponseField name="total_generations" type="integer">
  Общее количество завершённых генераций с момента создания аккаунта.
</ResponseField>

<ResponseField name="tokens_spent_total" type="integer">
  Суммарно потраченные токены за всё время.
</ResponseField>

<ResponseField name="breakdown" type="object">
  Количество генераций и токены по категориям: `text`, `image`, `video`, `audio`, `tools`.
</ResponseField>

<ResponseField name="recent_30d" type="object">
  Статистика за последние 30 дней.
</ResponseField>
