GPTMaker icon

GPTMaker

Consume GPTMaker API

Workspace → Get Credits Balance

AI-generated

Summary

Get credits balance for a workspace

Inputs

  • workspaceId (required) — Select the workspace; choose from the list or provide an ID using an expression.

Output shape

JSON object containing the credit balance (e.g., {"credits": })

The balance is a numeric value; may be 0 for unused workspaces; errors return standard HTTP error responses.

Examples

Example 1: Retrieve the current credit balance of the selected workspace

Configure the node with operation Get Credits Balance and set Workspace Name or ID to the desired workspace ID or expression

Example 2: Store the balance in a variable for later use

After the node runs, map its output to a subsequent operation node using the return data

Example 3: Fail the workflow if the workspace has insufficient credits

Add arouter or IF node that checks the returned credits value against a threshold

Links

Discussion