Skip to main content
POST
Entry point for region inpaint (equivalent to Vary (Region)). After submission the task enters the MODAL state; you must then call modal with a mask + prompt to finish.

Parameters

Auto matching

The service matches Vary (Region) from the source task buttons.

Request example

Follow-up

On success the response returns status: "modal" — this is a valid non-terminal state, not an error. Continue with the modal endpoint, where task_id is the local task ID returned by inpaint, plus prompt and optional mask_url.

Notes

  • The parent task must be a SUCCESS upscaled single image; inpainting a grid directly errors — call upscale first.
  • After entering MODAL you must call modal within 30 minutes, otherwise the backend auto-cancels and refunds.
  • Version metadata from the source task is inherited automatically. To price by speed, configure midjourney@inpaint-fast / midjourney@inpaint-turbo.