v1

latestOpenAPI 3.1.02026-07-2611077199.5 KB

Generate four images based on image and description, asynchronous task

post/midjourney/image-edits/submit

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"
  }
}