Naar hoofdinhoud gaan
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
}

Overzicht

Dien extra invoer in wanneer een taak met Action status: "MODAL" retourneert. Dit is vereist voor bewerkingen die extra gegevens nodig hebben, zoals inpainting-maskers of aangepaste zoom-prompts.

Wanneer te gebruiken

BewerkingWat indienen
Vary (Region) / InpaintmaskBase64 (PNG-masker) + prompt
Custom Zoomprompt (bijv. “your prompt —zoom 2”)
Voor een volledig voorbeeld van een inpaint-flow, zie de Midjourney API Quick Start.

Autorisaties

Authorization
string
header
vereist

Bearer token authentication. Use your CometAPI key.

Body

application/json
taskId
string
standaard:example
vereist

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.

Respons

200 - application/json

Success

code
integer
vereist

The status of the task

description
string
vereist
properties
object
vereist
result
integer
vereist

The task ID of the returned task