ospalabs

Usage API

Team plan. GET /v1/fuse/usage with a Fuse key tells your app what's spent and what's left, so you can show a customer a usage bar or an upgrade prompt. Add customer, and plan if you use plan limits. It reads only and costs nothing.

GET /v1/fuse/usage?customer=cus_8f2a&plan=pro

{
  "project": [
    { "period": "monthly", "spent_usd": 12.4, "limit_usd": 100,
      "remaining_usd": 87.6, "resets_at": "2026-12-01T00:00:00.000Z" }
  ],
  "customer": {
    "id": "cus_8f2a", "plan": "pro", "blocked": false,
    "limits": [
      { "period": "daily", "spent_usd": 0.75, "limit_usd": 5,
        "remaining_usd": 4.25, "resets_at": "2026-11-09T00:00:00.000Z" }
    ]
  }
}

remaining_usd also subtracts requests in flight. An empty limits list means that customer has no cap. Anyone holding the key can read this for any customer id, so call it from your server.