Setup Midjourney

December 2023 (May 5, 2025)

Table of contents

  1. Create Discord account
  2. Purchase Midjourney subscription
  3. Locate Midjourney Direct Messages channel
  4. Locate Discord token
  5. Configure Midjourney API account
  6. Verify channel and token values

Approximately 10 minutes to complete setup steps.


NOTE
This article was updated on May 5, 2025. The previous setup instructions required creation of a private Discord server to communicate with Midjourney. If you are still using that configuration, it will remain fully functional. Still, we’re strongly suggesting switching to the Midjourney Direct Messages channel configuration as outlined below in this document, since it greatly reduces Midjourney moderation and the number of CAPTCHA requests.

Please review our Midjourney Q&A section before proceeding. Since the original release back in 2023, we have compiled a list of helpful hints that will help you avoid Midjourney bans.

Create Discord account

You need a Discord account to interact with Midjourney Discord Bot. Create a new account if you don’t have one already.

Please note that even if you have an existing Discord account, we strongly recommend creating a separate Discord account specifically designated for use with the useapi.net API.

Purchase Midjourney subscription

Follow the official instructions to purchase a subscription. We suggest starting with the Basic Plan. You can always upgrade later, once you are satisfied with initial testing and ready to scale up.

It is important not to use the Midjourney account set up for API access for any purposes other than its intended use, such as executing /imagine or any other Midjourney commands manually or in conjunction with any other automation tools. The useapi.net API internally tracks the usage of the Midjourney account, including the number of currently active executions. Using it for other activities may cause the API to function incorrectly.

Please skip this step if you already have a Midjourney subscription.

Locate Midjourney Direct Messages channel

Select Direct Messages (DMs) in Discord 1:

  • Locate Midjourney Bot 2.
  • Copy the value of the channel from the URL 3.
    This is your channel.

If you have trouble locating the Midjourney Direct Messages channel, refer to the official documentation.

Locate Discord token

Select Direct Messages (DMs) in Discord 1.

Refresh your browser page.

Once the page is fully loaded, open Developer Tools via keyboard shortcuts: Mac Command+Option+I or Windows F12 or Control+Shift+I.

Select Developer Tools » Network 2:

  • Make sure that All or Fetch/XHR is selected 3.
  • Type /messages in the filter box 4 and hit Enter.
  • Select the first messages?limit... HTTP call entry as shown below 5, and click on that entry.
  • Select the “Headers” tab 6.
  • Locate Request Headers » Authorization 7 and copy its value.
    This is your token.

If you have trouble locating the Discord token, there are many tutorials describing how to obtain Discord tokens. Please refer to the following links below for additional guidance:

Keep in mind that anyone with a Discord token can have full access to your Discord account, so please keep it safe and secure. To reset your Discord token, simply change your Discord password.

Configure Midjourney API account

Feel free to use the optional Verify feature below to ensure all the retrieved values above are correct before proceeding.

Proceed to POST /midjourney/channel and configure the Midjourney API account using the channel and token values retrieved above. Once the configuration is posted, you can start using the Midjourney API immediately.

Verify channel and token values

Once all the above steps are completed you should have the following:

  • Midjourney Direct Messages channel
  • Discord token