usage_by_model
Analyze AI model usage and costs over time to track spending and optimize resource allocation.
Instructions
Break down usage and cost by AI model over a time period.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "usage_by_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Start timestamp (ISO 8601) | |
| to | Yes | End timestamp (ISO 8601) | |
| environment | No | Optional environment filter | |
| limit | No | Maximum number of models to return (default: 20) |