Billing
Billing
@toothfairyai/sdk@latest…Billing Management Module Handles billing and usage information retrieval.
Accessed via client.billing.
Methods
| Method | HTTP | Endpoint |
|---|---|---|
get | GET | GET /billing/monthCosts |
getMonthCosts | — | derived |
get
Get monthly costs and usage information
async get()
Endpoint: GET /billing/monthCosts · API service
Response fields
| Field | Type | Description |
|---|---|---|
apiUsage | object | API usage statistics and costs |
trainingUsage | object | Training usage statistics |
pagination | object | Pagination 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();