Get usage
get_usageRead what the account spent and made in a week or month: credits, images, seconds of video and audio, and credits per model, with the comparable period before and the last 30 days of credits per day. previous=true reads the last closed period instead of the one in progress. Explain limits; never offer purchases.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | ||
| previous | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| daily | Yes | ||
| tools | Yes | ||
| images | Yes | ||
| app_url | Yes | ||
| credits | Yes | ||
| by_model | Yes | ||
| compared_to | Yes | ||
| audio_seconds | Yes | ||
| video_seconds | Yes |