Skip to main content
GET
/
v1
/
account
/
usage
Get Usage
curl --request GET \
  --url https://app.uselamina.ai/v1/account/usage \
  --header 'x-api-key: <api-key>'
{
  "data": {
    "credits": {
      "balance": 4250.5,
      "totalEarned": 10000,
      "totalSpent": 5749.5
    },
    "rateLimit": {
      "limit": 100,
      "windowMs": 60000
    }
  }
}
Returns the current credit balance, usage breakdown, and rate limit status for your workspace. Use this to monitor consumption, enforce budget limits in your integration, or display remaining credits in a dashboard. The response includes credits used in the current billing period, remaining balance, and per-endpoint rate limit counters.

Authorizations

x-api-key
string
header
required

Workspace API key. Prefix: lma_. Example: lma_abc123...

Response

Credit balance and rate limit information

data
object

Workspace credit balance and rate limit information.