Skip to main content
GET
/
analytics
/
usage
curl "https://api.60db.ai/analytics/usage?date_from=2026-04-01&date_to=2026-04-13" \
  -H "Authorization: Bearer your-api-key"
{
  "success": true,
  "usage_by_period": [
    {
      "period": "2026-04-10",
      "tts_characters": 5000,
      "stt_minutes": 12.5,
      "cost_usd": 0.15,
      "llm_tokens": 8500,
      "llm_cost_usd": 0.017,
      "memory_units": 3200,
      "memory_cost_usd": 0.0003
    }
  ],
  "summary": {
    "tts_characters": 125000,
    "stt_minutes": 180,
    "llm_tokens": 45000,
    "llm_cost_usd": 0.09,
    "memory_units": 15000,
    "memory_cost_usd": 0.0015,
    "total_cost_usd": 3.59,
    "plan": "Starter",
    "limits": {
      "tts_characters": 30000,
      "stt_minutes": 120
    }
  }
}

Request

Headers

Authorization
string
required
Bearer token with your API key

Query Parameters

date_from
string
Start date (ISO 8601 format, e.g. 2026-04-01)
date_to
string
End date (ISO 8601 format, e.g. 2026-04-13)
period
string
default:"month"
Aggregation period: day, week, month, year

Response

Returns usage data for all services — TTS, STT, LLM, and Memory — aggregated by period.
usage_by_period
array
Time-series data with per-period breakdowns
usage_by_period[].period
string
Date string for the period
usage_by_period[].tts_characters
number
TTS characters used in this period
usage_by_period[].stt_minutes
number
STT minutes used in this period
usage_by_period[].cost_usd
number
TTS + STT cost in this period
usage_by_period[].llm_tokens
number
LLM tokens consumed in this period
usage_by_period[].llm_cost_usd
number
LLM cost in USD for this period
usage_by_period[].memory_units
number
Memory operations (chars, bytes, queries) in this period
usage_by_period[].memory_cost_usd
number
Memory cost in USD for this period
summary
object
Aggregated totals across all periods
summary.total_cost_usd
number
Total cost across all services (TTS + STT + LLM + Memory)
curl "https://api.60db.ai/analytics/usage?date_from=2026-04-01&date_to=2026-04-13" \
  -H "Authorization: Bearer your-api-key"
{
  "success": true,
  "usage_by_period": [
    {
      "period": "2026-04-10",
      "tts_characters": 5000,
      "stt_minutes": 12.5,
      "cost_usd": 0.15,
      "llm_tokens": 8500,
      "llm_cost_usd": 0.017,
      "memory_units": 3200,
      "memory_cost_usd": 0.0003
    }
  ],
  "summary": {
    "tts_characters": 125000,
    "stt_minutes": 180,
    "llm_tokens": 45000,
    "llm_cost_usd": 0.09,
    "memory_units": 15000,
    "memory_cost_usd": 0.0015,
    "total_cost_usd": 3.59,
    "plan": "Starter",
    "limits": {
      "tts_characters": 30000,
      "stt_minutes": 120
    }
  }
}