openai_costs
Track and analyze OpenAI API expenditures by retrieving detailed cost breakdowns with model-specific data and token usage statistics for specified date ranges.
Instructions
Get detailed OpenAI costs with model breakdown and token usage
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"startDate": "<startDate>",
"endDate": "<endDate>"
},
"name": "openai_costs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| startDate | Yes | Start date in YYYY-MM-DD format | |
| endDate | Yes | End date in YYYY-MM-DD format | |
| groupByModel | No | Group costs by model | |
| includeTokenUsage | No | Include token usage statistics |