Midjourney Edits API
POSThttps://api.acedata.cloud/midjourney/edits
Midjourney image editing API for modifying existing images.
Related Products
Midjourney - Ace Data Cloud
Midjourney image painting platform, directly connected to this API, fast and stable available.
Request Headers
acceptstring
Specify the response format returned by the server.
Please select
authorizationstring
Bearer token
Request Body
modestring
The speed mode for image editing tasks is set to `fast` by default, with optional values of `fast`, `relax`, and `turbo`.
Please select
actionstring
Operation type. Use `generate` for the first generation, and for subsequent operations, use the value of the `actions` field in the returned result to perform specific actions on the generated image (such as zooming, variants, etc.).
promptstring
Prompts used when editing images.
maskstring
You can specify the mask position of the image area for local editing and regeneration.
split_imagesboolean
Whether to split the generated image into multiple single images, with the result returned through the `sub_image_urls` field. The default is `false`.
Please select
image_urlstring
Link to the image that needs editing.
callback_urlstring
Webhook callback URL for asynchronous notifications.
asyncboolean
Whether to process in asynchronous mode. When set to `true`, the interface immediately returns `task_id`, without the need to provide `callback_url`, and then the result can be obtained by polling the corresponding task query interface; if `callback_url` is also provided, the result will be pushed to that callback address.
Please select
Response

Integration guide
Kind reminder: For streaming requests, the above code may not be fully applicable. Please refer to the integration documentation for changes.
Midjourney generation
Allow Use General Balance
When 'Allow General Balance' is enabled, the general balance is used automatically if an app's balance is insufficient.