Skip to main content
POST
/
midjourney
/
image-edits
/
submit
cURL
curl --request POST \
  --url https://api.ttapi.io/midjourney/image-edits/submit \
  --header 'Content-Type: application/json' \
  --header 'TT-API-KEY: <api-key>' \
  --data '
{
  "prompt": "<string>",
  "image": "<string>",
  "mode": "fast",
  "type": "edit",
  "hookUrl": "<string>"
}
'
{
  "status": "SUCCESS",
  "message": "success",
  "data": {
    "job_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  }
}
Since Midjourney’s official image editing feature includes built-in cropping, the editable images are supported in fixed aspect ratios. Currently supported ratios are 1:1, 1:2, 2:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9. If an uploaded image does not fall within these ratios, the system will automatically adjust it to a suitable ratio before generating a new image.

Authorizations

TT-API-KEY
string
header
required

You can obtain your API key from the TTAPI Dashboard.

Body

application/json
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.
Note: The areas to be edited in the image should be transparent.

mode
enum<string>
default:fast

Speed mode for image editing

Available options:
relax,
fast,
turbo
type
enum<string>
default:edit

Editing type

Available options:
edit,
retexture
hookUrl
string

Callback URL. When task completes or fails, this URL will be notified. If not set, you need to request the Get task status interface

Response

Request successful

status
string
required
Example:

"SUCCESS"

message
string
required
Example:

"success"

data
object
required
Example:
{
"job_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
Last modified on March 13, 2026