Skip to main content
POST
cURL

개요

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

사용 시점

전체 인페인트 흐름 예시는 Midjourney API로 시작하기를 참고하세요.

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

본문

application/json
taskId
string
기본값:<task_id>
필수

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

customId
string
필수

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.

응답

200 - application/json

Success

code
integer
필수

The status of the task

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

The task ID of the returned task