usage
Retrieve usage records with billing details for workspace endpoints. Includes time series data and summary statistics with quantities and prices.
Instructions
Get usage records for workspace with detailed billing information. Returns time series data and/or summary statistics with unit quantities and prices. Requires authentication.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint_ids | Yes | Endpoint ID(s) to get usage for (e.g., ['fal-ai/flux/dev']). Must provide at least 1 endpoint ID (1-50 models). | |
| start | No | Start date in ISO8601 format (e.g., '2025-01-01T00:00:00Z' or '2025-01-01'). Defaults to 24 hours ago. | |
| end | No | End date in ISO8601 format (e.g., '2025-01-31T23:59:59Z' or '2025-01-31'). Defaults to current time. | |
| timezone | No | Timezone for date aggregation (e.g., 'UTC', 'America/New_York'). Defaults to 'UTC'. | UTC |
| timeframe | No | Aggregation timeframe for timeseries data. Auto-detected from date range if not specified. | |
| bound_to_timeframe | No | Whether to align start/end dates to timeframe boundaries. Defaults to true. | |
| expand | No | Data to include: 'time_series' for time-bucketed data, 'summary' for aggregates, 'auth_method' for auth tracking. Defaults to ['time_series']. | |
| cursor | No | Pagination cursor from previous response. | |
| limit | No | Maximum number of items to return. |