Self-host Install
Discord Bot

Create a Discord Server and Bot

🏎️

If this looks like a lot of work, we do all this for you and more on our Cloud Plans (opens in a new tab).

Follow these steps to create a discord server, invite Midjourney bot to it and create your own bot. These are required for ImagineAPI.

Create a Discord server

💡

If you already have a Discord server where you have invited Midjourney Bot you don't need to skip this part.

  1. Create a Discord server:
  2. Name it whatever you would like.
  3. Let's now invite Midjourney Bot into your new server.
  4. Go to the Midjourney server and click on Midjourney Bot:
  5. Click Add to Server:
  6. Select the Server you just created to add Midjourney Bot to it:
  7. Click Authorize:

Create a Discord Bot

  1. Go to https://discord.com/developers/applications (opens in a new tab)
  2. Create a new application (give it a random name..it doesn't matter)
  3. Go to OAuth2 > URL Generator page, select bot under Scopes.
    Then select Manage Channels, Read Messages/View Channels, Use Slash Commands, and Send Messages under Bot Permissions
  4. Click Copy to get the URL and go to that URL.
  5. Under Add to Server select your newly created server:
  6. Authorize the permissions:
  7. Go back to the Discord Developer Portal and go to the Bot page and click Add Bot
  8. Turn on Message Content Intent:
  9. Save the changes.
  10. Then copy the Token:
  11. Keep this token around as you will need it soon.