Get Hedra API Wallet Balance
hedra_get_balanceGet the current prepaid USD balance for Hedra API generations. Use it to confirm sufficient funds before submitting expensive jobs or when a submit fails with an INSUFFICIENT_BALANCE error.
Instructions
Get the current spendable balance of the Hedra API wallet — the prepaid USD balance that pays for API generations. This is SEPARATE from Hedra Studio credits; funding one does not fund the other.
Check this before submitting expensive or bulk jobs to confirm there's enough balance, or when a submit was refused with an INSUFFICIENT_BALANCE error.
Returns: JSON {balance, currency}.
Examples:
Use when: about to submit a batch of jobs and want to sanity-check funds first
Use when: a hedra_submit_job call failed with a billing error and you want to confirm the current balance before advising the person
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": "hedra_get_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||