Midjourney Task Submission
Midjourney
Midjourney Task Submission
Submit Midjourney imagine, blend, modal, describe, shorten, swap face, video, and Discord image upload tasks.
POST
Midjourney Task Submission
Midjourney Task Submission
The Midjourney submission interfaces all belong to the/mj/submit/* group. Different actions use different paths, but the success response style is basically the same.
Common Response
Status code. Common values:
1 submission successful, 22 queued, 23 queue full, 24 prompt may contain sensitive words.Status description.
Task ID. The upload Discord image interface returns an array of image URLs.
Authentication
Submit Imagine Task
Imagine action and submit an image generation task.
Invocation mode, common values are
RELAX and FAST.Prompt.
Base64 array for image references.
Custom parameter.
Callback URL.
Submit Blend Task
Blend action and submit an image blending task.
Invocation mode, common values are
RELAX and FAST.Image Base64 array.
Ratio. Common values:
PORTRAIT, SQUARE, LANDSCAPE.Bot type, common values:
mj, niji.Callback URL.
Custom parameter.
Submit Modal Task
code = 21 or require additional prompt input, you can call this interface to continue submitting.
Original task ID.
Base64 for the partial redraw mask.
New prompt.
Submit Describe Task
Describe action and submit an image-to-text task.
Submit Shorten Task
Shorten action.
Submit SwapFace Task
SwapFace face-swapping task.
The current project code actually parses it in JSON Base64 format:
Submit Video Task
- Generate a video directly based on
prompt - Continue generating a video based on an existing
taskId
Invocation mode, common values are
RELAX and FAST.Parent task ID. Used when extending a video based on an existing image.
Video index number.
Motion intensity, common values:
low, high.Video task action. In examples, the common value is
extend.Upload Files to Discord
Common Local Validation Errors
| Description | Common Trigger Condition |
|---|---|
bind_request_body_failed | Invalid request body format |
prompt_is_required | prompt not provided for Imagine |
task_id_is_required | taskId not provided when continuing an operation based on a task |
action_is_required | action missing for continuation-type interfaces |
index_is_required | index missing for continuation-type interfaces |
content_is_required | content missing for simple-change type operations |
task_not_found | The original task does not exist |
task_status_not_success | When the original task must be in a successful state, but it has not succeeded yet |
quota_not_enough | Insufficient balance |