Skip to content

Midjourney overview ​

Midjourney uses a separate route set and is not mixed with OpenAI Images or the unified video task APIs.

  • Submit mainly via /mj/submit/* (face swap: /mj/insight-face/swap)
  • Query mainly via /mj/task/*
  • Submit actions include , , , , , , ,
  • Follow-up button actions go through /mj/submit/action; action types appear on the query payload field (e.g. , , , , )

Submit APIs ​

Query APIs ​

Route list ​

MethodPathDescription
POSTImagine
POSTBlend
POSTAction
POSTModal
POSTDescribe
POSTShorten
POSTVideo
POSTSwapFace
POSTUpload Discord
GETTask query
POSTBatch query
GETImage seed

Common response codes ​

Typical submit response:

json
{
  "code": 1,
  "description": "Submit success",
  "result": "1712158011464906"
}
Description
Submit success
Queued
Queue full; retry later
Prompt contains sensitive words
otherError

Some gateways may rewrite upstream queue / already-exists states as success. Always poll task query with the task ID in .

Common field conventions ​

FieldDescription
Default ; slow, fast
= MID_JOURNEY, = NIJI_JOURNEY (Imagine / Video have no this field)
Blend ratio: (2:3), (1:1), (3:2)
Callback URL; empty means no callback
Source task ID for follow-up jobs
Button action id from query
Multi-image Base64 array
Describe single-image Base64
Inpaint mask
Opaque client state