authed

See spend

This calendar month's model spend only (from midnight UTC on the 1st to now; earlier months are not available), by kind of agent and split by who paid: the prepaid balance, the organization's own provider keys, or visitors' connected AI subscriptions. Amounts are in microusd.

get/api/v1/billing/spend

Request

  • Base URL
    https://api.teaflask.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.teaflask.com/api/v1/billing/spend
  • Auth
    none declared

Response

Successful Response

window_startstring date-time required

The start of the window: midnight UTC on the 1st of the current month. The window runs to now.

balance_microusdinteger required

What the prepaid balance paid in total. In microusd: millionths of a US dollar (1,000,000 = $1.00).

byok_microusdinteger required

What the organization's own provider keys paid in total. In microusd: millionths of a US dollar (1,000,000 = $1.00).

end_user_subscription_microusdinteger required

What visitors' own connected AI subscriptions paid in total. In microusd: millionths of a US dollar (1,000,000 = $1.00).

total_microusdinteger required

Everything charged this month, whoever paid. In microusd: millionths of a US dollar (1,000,000 = $1.00).

Changes

No recorded changes to this operation across all 1 revision of this API.