Skip to main content
POST
/
mj
/
submit
/
modal
Modal (Area Redesign & Zoom)
curl --request POST \
  --url https://api.cometapi.com/mj/submit/modal \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "taskId": "14001934816969359"
}
'
{
  "code": 123,
  "description": "<string>",
  "properties": {},
  "result": 123
}

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

OperationWhat to Submit
Vary (Region) / InpaintmaskBase64 (PNG mask) + prompt
Custom Zoomprompt (e.g., “your prompt —zoom 2”)
For a complete inpaint flow example, see the Midjourney API Quick Start.

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your CometAPI key.

Body

application/json
taskId
string
default:example
required

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

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