Skip to main content

Billing

Billing

@toothfairyai/sdk@latest…

Billing Management Module Handles billing and usage information retrieval.

Accessed via client.billing.

Methods

MethodHTTPEndpoint
getGETGET /billing/monthCosts
getMonthCostsderived

get

Get monthly costs and usage information

async get()

Endpoint: GET /billing/monthCosts · API service

Response fields

FieldTypeDescription
apiUsageobjectAPI usage statistics and costs
trainingUsageobjectTraining usage statistics
paginationobjectPagination metadata for responses that support pagination

Example

const result = await client.billing.get();

getMonthCosts

Get monthly costs and usage information (alias for get())

async getMonthCosts()

Derived method — delegates to another SDK call and performs no direct HTTP request.

Example

const result = await client.billing.getMonthCosts();