Skip to main content
GET
/
api
/
v2
/
user
/
stats
User Stats
curl --request GET \
  --url https://api.example.com/api/v2/user/stats
{
  "total_generations": 123,
  "tokens_spent_total": 123,
  "breakdown": {},
  "recent_30d": {}
}

Request

curl https://neuralbox.top/api/v2/user/stats \
  -H "Authorization: Bearer nb_YOUR_API_KEY"

Response

{
  "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
  }
}
total_generations
integer
Total number of completed generations since account creation.
tokens_spent_total
integer
Total tokens spent across all time.
breakdown
object
Generation count and token spend split by category: text, image, video, audio, tools.
recent_30d
object
Stats for the last 30 days only.