How to use multiple PixVerse accounts
For your convenience, you can save your PixVerse account(s) configuration, eliminating the need to provide them with every API call. Simply POST your account(s) configuration using the pixverse/account/channel
endpoint.
You may configure as many Discord/PixVerse accounts as desired. If more than one account is configured under pixverse/account, the API will retrieve a list of available accounts, determine which have the capacity to execute the job, and randomly select an available account, thereby effectively acting as a load balancer.
To take advantage of saved configurations and account load balancing, please follow these simple steps:
- Gather your PixVerse account(s) information as outlined at Setup PixVerse.
- Post your configuration(s) using the pixverse/account/
channel
endpoint. - You can then start making API calls without specifying the
discord
,server
andchannel
values for every call.
To see all your currently configured PixVerse accounts, please use the pixverse/account endpoint.
Wait there’s more…
What if you want to use multiple PixVerse accounts but prefer to implement your own tracking and load balancing logic? Good news – that’s still possible! Just continue to provide the discord
, server
, channel
, and maxJobs
values with each call, and our API will take care of the rest, ensuring proper operation. This is possible because our API tracks job executions under the same channel
. The downside of this approach is that it now becomes your responsibility to determine which account (channel
) should be used for the next call. However, we suppose this might be precisely what you want in certain situations, so we’ve kept this option available.
Feel free to reach out to us if you have any questions or concerns.