Przejdź do głównej treści
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
}

Przegląd

Prześlij dodatkowe dane wejściowe, gdy zadanie Action zwróci status: "MODAL". Jest to wymagane w przypadku operacji, które potrzebują dodatkowych danych, takich jak maski inpaintingu lub niestandardowe prompty zoom.

Kiedy używać

OperacjaCo przesłać
Vary (Region) / InpaintmaskBase64 (maska PNG) + prompt
Custom Zoomprompt (np. “your prompt —zoom 2”)
Aby zobaczyć pełny przykład przepływu inpaintingu, zajrzyj do Midjourney API Quick Start.

Autoryzacje

Authorization
string
header
wymagane

Bearer token authentication. Use your CometAPI key.

Treść

application/json
taskId
string
domyślnie:example
wymagane

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.

Odpowiedź

200 - application/json

Success

code
integer
wymagane

The status of the task

description
string
wymagane
properties
object
wymagane
result
integer
wymagane

The task ID of the returned task