Skip to main content
POST
Complete a MODAL-state inpaint task by supplying a mask + prompt. The system auto-detects the mode by whether mask_url is present: with mask_url → inpaint (local repaint); without → outpaint (expand).

Parameters

Mask requirements

Request example

Response

The task_id stays the same (same task); its status goes from MODALSUBMITTED. Poll GET /v1/tasks/{task_id}; on SUCCESS image_urls holds 4 inpaint candidates. Billing settles on this endpoint’s SUCCESS and is not double-charged with the inpaint step. To price by speed, configure midjourney@modal-fast / midjourney@modal-turbo.