POST /midjourney/image-edits/submit

Generate four images based on image and description, asynchronous task

Request

Request body

promptstring required

Prompt for modifying images, English performs best

imagestring required

Image files support URL and Base64, and only png, jpg, jpeg, bmp, webp formats are allowed. <br/> Note: The areas to be edited in the image should be transparent.

mode'relax' | 'fast' | 'turbo'

Speed mode for image editing

type'edit' | 'retexture'

Editing type

hookUrlstring

Callback URL. When task completes or fails, this URL will be notified. If not set, you need to request the <a href="fetch" target="_self">Get task status endpoint</a>

Response

Request successful

statusstring required
messagestring required
dataobject required

Example response

{
  "status": "SUCCESS",
  "message": "success",
  "data": {
    "jobId": "jobId"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.