> ## Documentation Index
> Fetch the complete documentation index at: https://docs.myrouter.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Midjourney Outpaint

Use the Midjourney Outpaint feature to expand a generated image outward, extending the image boundaries while preserving the original content. This endpoint uses async processing; the client needs to query the final result using the task\_id.

## Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format: Bearer \{\{API Key}}.
</ParamField>

## Request Body

<ParamField body="image_no" type="integer" required={true}>
  Image number, used to specify which image to outpaint.

  Range: 0\~3
</ParamField>

<ParamField body="task_id" type="string" required={true}>
  The unique identifier of the original image generation task.
</ParamField>

<ParamField body="remix_prompt" type="string" required={true}>
  Outpaint region prompt, used to describe the content for the expanded region.

  Length limit: 1-8192 characters.
</ParamField>

<ParamField body="scale" type="float" required={true}>
  Outpaint target scale, i.e., the ratio of the new image area to the original image area in the view.

  Range: 1.1\~2.0

  For example: a 1:1 image after outpainting with 20% expansion (scale=1.2).
</ParamField>

## Response

<ResponseField name="task_id" type="string" required={true}>
  The task\_id of the async task. Use the task\_id to call the [Get Async Task Result API](/docs/models/reference-get-async-task-result) to retrieve the generated result.
</ResponseField>
