Midjourney Inpainting
Images
Midjourney Inpainting
POST
Midjourney Inpainting
Use Midjourney inpainting to redraw specified areas of a generated image. You can specify the inpainting area using polygon regions or a black-and-white mask image. This API uses asynchronous processing, and the client needs to query the final generated result via
task_id.
Request Headers
Enum value:
application/jsonBearer authentication format: Bearer {{API key}}.
Request Body
Image number, used to specify the image to inpaint.Value range: 0~3
Unique identifier of the original image generation task.
Inpainting prompt, used to describe the desired content for the inpainted area.Length limit: 1-8192 characters.
Inpainting area configuration. Replaces the area parameter and supports multi-region inpainting. Choose either areas or url.
Single polygon region configuration (use either this parameter or the mask parameter).
Response Parameters
The
task_id of the asynchronous task. You should use this task_id to request the Query Task Result API to obtain the generated result.