Unify Documentation home page
Search...
⌘K
Ask AI
Contact
Console
Console
Search...
Navigation
credits
get_credits
Walkthrough
Python
REST API
logging
universal_api
casting
chatbot
clients
types
usage
utils
credits
get_credits
custom_api_keys
custom_endpoints
queries
supported_endpoints
utils
credits
get_credits
Copy
Ask AI
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.
with_logging
create_custom_api_key
Assistant
Responses are generated using AI and may contain mistakes.