Peak AI Credits icon

Peak AI Credits

Check remaining API credits

Peak AI Credits

AI-generated

Summary

Check remaining API credits

Inputs

  • accessToken (required) — Access token from Peak AI Auth node

Output shape

array

Each item contains either a credits count or an error message. On success: credits (integer, defaults to 0 if absent from response). On failure with continueOnFail: error (string with error message).

Examples

Example 1: Successful credit check

Provide a valid access token connected from a Peak AI Auth node. The node returns the remaining credit balance.

Example 2: Failed credit check

If the request fails and the node's continueOnFail setting is enabled, an item with an error property is emitted instead of halting the workflow.

Discussion