get_costs
Retrieve OpenAI API usage costs within a specified timeframe. Group and filter expenses by project IDs or line items for detailed cost analysis.
Instructions
Fetches OpenAI costs for the specified period.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
end_time | No | The end time as a UTC timestamp (defaults to now). | |
group_by | No | The fields to group by (optional). Group the costs by the specified fields. Support fields include project_id, line_item and any combination of them. | |
project_ids | No | The project IDs to filter by (optional). | |
start_time | Yes | The start time as a UTC timestamp. |