Vision API credit balance
vision_creditsCheck the account's credit balance and per-bucket breakdown before starting a batch to avoid insufficient credits.
Instructions
The account's credit balance and its per-bucket breakdown.
Free — no credits consumed.
Worth checking before a large batch, so you can tell the user up front that 300 files will not fit in the balance rather than stopping half way through with an insufficient_credits error. Buckets are spent in order: subscription, then rollover, then pack, then welcome.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| balance | Yes | ||
| buckets | Yes |