Account
Get balance
Changed onReturns the current balance for your account.
Using the Python client:
import pixellab
client = pixellab.Client(secret="YOUR_API_TOKEN")
balance = client.get_balance()
print(f"Current balance: {balance.usd} USD")
get/balance
Request
- Base URLhttps://api.pixellab.ai/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Successfully retrieved balance
Changes
- info
the
response property const valueusdwas added for the status - info
removed the
usdenum value from theresponse property for the response status
- info