Skip to main content
GET
/
orgs
/
{org_id}
/
costs
Per-model cost rollup for the org
curl --request GET \
  --url https://api.mnemom.ai/v1/orgs/{org_id}/costs \
  --header 'Authorization: Bearer <token>'
{
  "period": "daily",
  "days": 123,
  "data": [
    {
      "date": "2023-12-25",
      "model": "<string>",
      "tokens_in": 123,
      "tokens_out": 123,
      "request_count": 123,
      "cost_usd": 123
    }
  ],
  "totals": {
    "total_cost_usd": 123,
    "total_tokens_in": 123,
    "total_tokens_out": 123
  }
}

Authorizations

Authorization
string
header
required

Supabase JWT token in Authorization: Bearer header

Path Parameters

org_id
string
required

Organization identifier (e.g. org-abc12345)

Query Parameters

days
integer
default:30
Required range: 1 <= x <= 365

Response

Daily cost rows + totals.

period
string
Example:

"daily"

days
integer
data
object[]
totals
object