How to use multiple Midjourney accounts

For your convenience, you can save your Midjourney account(s) configuration, eliminating the need to provide them with every API call. Simply POST your account(s) configuration using the account/midjourney/channel endpoint.

You may configure as many Discord/Midjourney accounts as desired. If more than one account is configured under account/midjourney, 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 Midjourney account(s) information as outlined at Setup Midjourney.
  • Post your configuration(s) using the account/midjourney/channel endpoint.
  • You can then start making API calls without specifying the discord, server and channel values for every call.

To see all your currently configured Midjourney accounts, please use the account/midjourney endpoint.

Wait there’s more…

What if you want to use multiple Midjourney 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 API v2 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.