AgentGen icon

AgentGen

Generate PDFs and images from HTML using the AgentGen API

Get Balance

AI-generated

Summary

Retrieve the current token balance for the authenticated API key

Inputs

None.

Output shape

object

The parsed JSON response from the AgentGen API's /v1/balance endpoint, typically containing balance information and status.

Examples

Example 1: Checking remaining tokens before starting a new render task

Use the AgentGen node, select the 'Get Balance' operation, ensure 'agentGenApi' credentials are configured, and run the workflow. The node returns the current token balance as the output JSON item.

Links

Discussion