Get credit balance
get_credit_balanceGet the caller's current credit balance, monthly allocation and plan. Use this before create_video to confirm the account can afford a render (40 credits). Requires the "credits:read" scope (included by default in new keys); a key without it gets 403 INSUFFICIENT_SCOPE with a link to create a key that has it. Read-only, never charges credits. Also returns hasPaid: whether a plan charge or a credit pack purchase is on record for the account (a trial start fee alone does not count). usdPerCredit is what one credit costs this account in USD, and usdPerCreditBasis says where that number comes from.
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_credit_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||