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.
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) |
Input Schema (JSON Schema)
{
"properties": {
"environment": {
"description": "Optional environment filter",
"type": "string"
},
"from": {
"description": "Start timestamp (ISO 8601)",
"format": "date-time",
"type": "string"
},
"limit": {
"description": "Maximum number of models to return (default: 20)",
"type": "number"
},
"to": {
"description": "End timestamp (ISO 8601)",
"format": "date-time",
"type": "string"
}
},
"required": [
"from",
"to"
],
"type": "object"
}