def get_credits(*, api_key: Optional[str] = None) -> float:

source code

Returns the credits remaining in the user account, in USD. Arguments:
  • api_key - If specified, unify API key to be used. Defaults to the value in the
Returns: The credits remaining in USD. Raises: ValueError: If there was an HTTP error.
  • ValueError - If there was an HTTP error.