Builder

Build Credits, tokens and model cost of an organization's finished AI builder turns in a period (default: the current UTC calendar month), optionally of one session; credits are metered per turn and charged only once billing is enabled

get/builder/usage

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/builder/usage
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Query parameters

orgIdstring

Organization id; only needed when the account belongs to several

fromstring

ISO-8601 date or timestamp, inclusive (default: the first day of the current UTC month)

tostring

ISO-8601 date or timestamp, exclusive (default: the first day of the next UTC month)

sessionIdstring

Only this builder session

Response

Usage

turnsinteger required
inputTokensinteger required
outputTokensinteger required
cachedInputTokensinteger required
costMicrosinteger required

Model cost in micro-USD (1,000,000 = $1)

millicreditsinteger required
creditsnumber required

Build Credits used (millicredits / 1000); metered, charged only once billing is enabled

usdPerCreditnumber required

Model cost in USD one Build Credit currently covers (BUILDER_USD_PER_CREDIT)

Changes

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