v1

latestOpenAPI 3.1.02026-07-26793302.3 KB

Create a Midjourney imagine task

Submit the primary Midjourney generation request. Poll the returned task id with the fetch endpoint until the task reaches a terminal state.

post/mj/submit/imagine

Request body

botType'MID_JOURNEY' | 'NIJI_JOURNEY'

Bot type to use. MID_JOURNEY for Midjourney (default), NIJI_JOURNEY for Niji.

promptstring required

Text prompt for the generation. Supports standard Midjourney parameters such as --v, --ar, --stylize, etc.

base64Arraystring[]

Base64-encoded reference images. Each item should be a data URI such as data:image/png;base64,xxx.

statestring

Custom state string. Returned as-is in the task result and webhook callback for your own tracking.

Example request

{
  "prompt": "a paper boat floating on calm water at sunrise --v 6.1"
}

Response

Task accepted.

codeinteger required
descriptionstring required
resultstring required

Task id returned after submission.

Example response

{
  "code": 1,
  "description": "Use this field according to the endpoint schema.",
  "result": "1773314942177684",
  "properties": {
    "discordChannelId": "5e6ca8e1f40e4de6",
    "discordInstanceId": "5e6ca8e1f40e4de6"
  }
}