Get credit balance
get_creditsUse only the account's existing entitlements: when work is unavailable, explain the limit without offering purchases, upgrades, subscriptions or checkout links. Read who pays for a press: the user's own vendor keys (fal, Replicate…) in their payer order, each with its state and, for Runware and Siray, what is left; then the house's free allowance; then credits. Also the plan and account-wide AI requests per minute. A press a key or the allowance covers costs no credits. AI requests share the rate limit across the app and agents; on RATE_LIMITED, wait retry_after_seconds before retrying.
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 |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | ||
| payers | Yes | ||
| app_url | Yes | ||
| message | Yes | ||
| allowance | Yes | ||
| available_credits | Yes | ||
| ai_requests_per_minute | Yes |