Skip to main content
POST
/
v3
/
async
/
mj-outpaint
Midjourney Outpaint
curl --request POST \
  --url https://api.myrouter.ai/v3/async/mj-outpaint \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "image_no": 123,
  "task_id": "<string>",
  "remix_prompt": "<string>",
  "scale": 123
}
'
{
  "task_id": "<string>"
}
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

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

image_no
integer
required
Image number, used to specify which image to outpaint.Range: 0~3
task_id
string
required
The unique identifier of the original image generation task.
remix_prompt
string
required
Outpaint region prompt, used to describe the content for the expanded region.Length limit: 1-8192 characters.
scale
float
required
Outpaint target scale, i.e., the ratio of the new image area to the original image area in the view.Range: 1.1~2.0For example: a 1:1 image after outpainting with 20% expansion (scale=1.2).

Response

task_id
string
required
The task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.