---
title: "POST /midjourney/image-edits/submit"
method: POST
path: "/midjourney/image-edits/submit"
---

# POST /midjourney/image-edits/submit

`POST /midjourney/image-edits/submit`

Generate four images based on image and description, **asynchronous task**

## Request body

- ImageeditsRequest
  - `prompt` string, required — Prompt for modifying images, English performs best
  - `image` string, 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
  - `hookUrl` string — 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 `200`

Request successful

- object
  - `status` string, required
  - `message` string, required
  - `data` object, required

## Other responses

- `400` — Parameter error
- `401` — Authorization failed

---

[API](https://skmtc.net/ttapi/apis/flowmusic-api-docs.md) · [All operations](https://skmtc.net/ttapi/apis/flowmusic-api-docs/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ttapi/flowmusic-api-docs/versions/f27f8a59dbd0/schema)
