pinstripes.
Account

Billing status

GET/billing/status

Returns current account balance, subscription status, month-to-date spend, and a projected end-of-month cost based on usage so far. Session token required.

Example

curl https://api.pinstripes.io/billing/status \
  -H "Authorization: Bearer <session-token>"

Response

{
  "balance_usd": 12.50,
  "subscription": {
    "active": true,
    "renews_at": 1234567890.0
  },
  "this_month": {
    "tokens_used": 1450000,
    "cost_usd": 0.89,
    "projected_tokens": 4800000,
    "projected_cost_usd": 2.95
  }
}

renews_at is a Unix timestamp. It is null when active is false. projected_* fields extrapolate from daily spend so far in the current billing month.