메인 콘텐츠로 건너뛰기
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
}

개요

Action 작업이 status: "MODAL"을 반환할 때 추가 입력을 제출합니다. 이는 인페인팅 마스크나 사용자 지정 줌 프롬프트처럼 추가 데이터가 필요한 작업에 필요합니다.

사용 시점

작업제출할 내용
Vary (Region) / InpaintmaskBase64 (PNG 마스크) + prompt
Custom Zoomprompt (예: “your prompt —zoom 2”)
전체 인페인트 흐름 예시는 Midjourney API 빠른 시작을 참고하세요.

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

본문

application/json
taskId
string
기본값:example
필수

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.

응답

200 - application/json

Success

code
integer
필수

The status of the task

description
string
필수
properties
object
필수
result
integer
필수

The task ID of the returned task