inference_get_inference_usage
Retrieve token and character usage for a serverless inference subscription, including chat, audio, monthly allotment, and overage details.
Instructions
Get usage statistics for a serverless inference subscription.
Args: subscription_id: The inference subscription ID or label
Returns: Detailed usage information including: - chat: Token usage for chat/completion models - audio: Character usage for text-to-speech models - monthly_allotment: Total tokens/characters allocated - overage: Usage exceeding the monthly limit
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": {
"subscription_id": "<subscription_id>"
},
"name": "inference_get_inference_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subscription_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||