Midjourney Inpaint API Documentation
Use the Midjourney Inpaint API to edit or regenerate selected regions of an image while preserving the rest of the composition.
Authorizations
You can obtain your API key from the TTAPI Dashboard.
Body
Job ID returned from the previous request
Base64-encoded mask for the selected image. The submitted Base64 content must be a black-and-white mask with the same dimensions as the original image. White areas indicate the region to repaint, and black areas indicate the area to preserve. Do not include the data:image/png;base64, prefix.
Description of modifications desired for the selected image area
Task timeout, unit: seconds, range 300 - 1200
"300"
Callback notification URL