Credit balance
get_creditsCheck your account credit balance, including starter, subscription, and purchased credits, plus whether the active key is test or live before generating screenshots or after a 402 error.
Instructions
Returns the account credit balance: total and the starter, subscription and purchased parts, and the environment (test or live) of the key in use. When to use: before create_screenshot_set or generate_screenshot with a live key, or after a 402 INSUFFICIENT_CREDITS. Test keys never spend credits. Credits: free, no credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| total | Yes | ||
| balances | Yes | ||
| environment | Yes |