Get credit balance
get_creditsCheck the account's current credit balance, plan allotment, and recent credit transactions. Call this before a credit-spending generation (create_video, generate_snacks, generate_meme, studio_*, seedance_*, create_slides/ai_story, post-processing) to confirm there's enough balance. Read-only; no credits spent.
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_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many recent transactions to return (default 10) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | ||
| balance | Yes | ||
| recentTransactions | Yes |