Midjourney Outpainting
Images
Midjourney Outpainting
POST
Midjourney Outpainting
Use the Midjourney outpainting feature to extend generated images outward, expanding the image boundaries while preserving the original image content. This API uses asynchronous processing, so the client needs to query the final generated result using the task_id.
Request Headers
Enum value:
application/jsonBearer authentication format: Bearer {{API Key}}.
Request Body
Image number, used to specify the image to outpaint.Value range: 0–3
The unique identifier of the original image generation task.
Outpainting area prompt, used to describe the content of the extended area.Length limit: 1–8192 characters.
Target outpainting ratio, i.e., the multiple of the area occupied by the new image in the view compared with the original image area.Value range: 1.1–2.0Example: after outpainting a 1:1 image, extend outward by 20% (
scale=1.2)Response Parameters
The task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to obtain the generated result.