Get minutes left
get_usageThe minutes the user's account has left (remaining_minutes), its plan, and when the plan's minutes renew. Check it before a long video, a burned video (3x to 5x the length) or a playlist. A job larger than the balance runs as a preview of the first minutes only, unless extra_hours is true. More minutes: https://youtubetotext.ai/pricing/.
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 |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | free, creator, creator_plus or pro | |
| interval | No | Billing interval; null on the free trial | |
| plan_name | Yes | The plan's name as the site writes it | |
| period_end | No | When the plan's minutes renew (UTC); null on the free trial | |
| extra_hours | Yes | Whether the plan bills extra hours past its minutes instead of stopping. When true, a job larger than `remaining_minutes` still runs and is billed per started hour. | |
| plan_minutes | Yes | Minutes the plan includes per period (the free trial: once, ever) | |
| credit_minutes | Yes | Minutes left on purchased credit packs, which do not expire with the period | |
| reserved_minutes | Yes | Minutes held for jobs still running | |
| plan_minutes_used | Yes | ||
| remaining_minutes | Yes | Minutes a new job can use right now: plan minutes plus credits, less what jobs still running will take. A job is charged per started minute of video, times 3 to 5 for burned video, plus 1x per translation. |