Billing
Billing
toothfairyai@latest…Manager for billing operations.
This manager provides methods to create, update, and manage billing.
Example:
>>> client = ToothFairyClient(api_key="...", workspace_id="...")
>>> billing = client.billing.get(...)
Accessed via client.billing.
Methods
| Method | HTTP | Endpoint |
|---|---|---|
get_month_costs | GET | GET /billing/monthCosts |
get_month_costs
Get monthly usage and cost breakdown.
def get_month_costs() -> MonthCostsResponse
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
client.billing.get_month_costs()