Midjourney API v2
December 2023
This is experimental API for Midjourney Discord Bot by Midjourney.
This is the current version of API, it utilizes a combination of the Discord REST API and the Discord Gateway API.
Most notable changes compared to the previous version
- Discord Gateway API establishes a real-time WebSocket connection that enables faster communication and more detailed responses, including comprehensive error and moderation feedback.
- Provides access to Midjourney commands such as /info, /fast, /relax and /turbo modes, and others.
- Added support for Custom Zoom, see jobs/button.
- Provide a convenient way to save default values within an account for reuse across all API v2 calls.
- Automatic detection and implementation of API pause mode in response to a Midjourney
Pending mod message
, see Response 596.
Quick reference
Midjourney /imagine command available via jobs/imagine API endpoint.
Midjourney upscale or create variations and enhance or modify button commands available via jobs/button API endpoint.
Midjourney /describe command available via jobs/describe API endpoint.
Midjourney /blend command available via jobs/blend API endpoint.
Use jobs/?jobid=jobid
API endpoint to retrieve job results.
Postman and OpenAPI
- Postman collection
- Midjourney API v2 OpenAPI YAML schema
Example source code on GitHub
- Face swap and animate images generated by Midjourney using InsightFaceSwap and Pika (using webhook) February 19, 2024
- Animate images generated by Midjourney using Pika (using webhook) January 29, 2024
- Automating Asset Generation with the Midjourney API (using webhook) December 22, 2023
- Automating Asset Generation with the Midjourney API November 6, 2023
Table of contents
-
GET
account -
POST
account -
GET
account/midjourney -
GET
…/midjourney/channel
-
POST
…/midjourney/channel
-
DEL
…/midjourney/channel
-
POST
…/channel
/reset -
POST
jobs/imagine -
POST
jobs/button -
POST
jobs/blend -
POST
jobs/describe -
POST
jobs/info -
POST
jobs/relax -
POST
jobs/fast -
POST
jobs/turbo -
POST
jobs/variability -
POST
jobs/remix -
POST
jobs/seed -
GET
jobs/?jobid=jobid
-
GET
jobs/cancel/?jobid=jobid
-
GET
jobs - ⚙️ Setup multiple accounts