INNER CODE UNIT · Python
FalBalance
gokayfem/ComfyUI-fal-API · nodes/billing_node.py:43
class FalBalance:
"""Report the fal.ai account credit balance and active spend-guard limits."""
RETURN_TYPES = ("STRING", "FLOAT")
RETURN_NAMES = ("report", "balance_usd")
FUNCTION = "check"
CATEGORY = _CATEGORY
OUTPUT_NODE = True
DESCRIPTION = (
"Fetch your fal.ai account credit balance and show the active "
"spend-guard settings. Never fails: balance_usd is -1.0 when the "
"balance API is unavailable."
)
@classmethod
def INPUT_TYPES(cls) -> dict[str, Any]:
return {
"required": {},