Skip to main content
POST
cURL

Overview

Submit additional input when an Action task returns status: "MODAL". This is required for operations that need extra data, such as inpainting masks or custom zoom prompts.

When to use

For a complete inpaint flow example, see Start with Midjourney API.

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your CometAPI key.

Body

application/json
taskId
string
default:<task_id>
required

Task id from the parent task whose modal action you are continuing.

customId
string
required

The button customId that opened the modal, such as MJ::Inpaint::1::xxxx::SOLO from the Vary (Region) button. Required.

maskBase64
string

Base64-encoded mask image for partial inpainting. White areas are repainted; black areas are preserved.

prompt
string

Text prompt describing the desired change for the selected region.

Response

200 - application/json

Success

code
integer
required

The status of the task

description
string
required
properties
object
required
result
integer
required

The task ID of the returned task

Last modified on June 23, 2026