Skip to main content
POST
cURL
이 엔드포인트를 사용하면 마스크로 Midjourney 이미지를 편집하거나, 프롬프트와 소스 이미지를 조합해 투명 배경 결과를 생성할 수 있습니다.

일반적인 두 가지 모드

  • 마스킹 편집: maskBase64prompt를 전송하고, 필요에 따라 원본 image를 함께 전송합니다
  • 투명 드로잉: 별도의 마스크 없이 투명 배경 결과를 원할 때 imageprompt를 전송합니다

작업 흐름

1

editor 작업 제출

편집 모드를 선택하고, 프롬프트와 소스 데이터를 전송한 다음, 반환된 작업 id를 저장합니다.
2

작업 폴링

작업이 종료 상태에 도달할 때까지 단일 작업 가져오기를 사용합니다.
3

결과에서 계속 진행

최종 에셋을 직접 사용하거나, 편집 결과에 후속 버튼이 표시되면 Action을 트리거합니다.

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

본문

application/json
prompt
string
기본값:Change to white background
필수

Text prompt describing the desired edit.

image
string
기본값:https://your-image-host/source.png
필수

Image to edit. Pass a public URL or a base64-encoded data URI.

state
string

Custom state string. Returned as-is in the task result and webhook callback for your own tracking.

notifyHook
string

Webhook URL to receive task status updates. Falls back to your account-level webhook if omitted.

noStorage
boolean

When true, return the original provider image URL instead of a CometAPI-proxied link.

응답

200 - application/json

Success

code
integer

Submission status code. 1 = submitted successfully (result carries the task id). 21 = the action opened a confirmation modal; continue with /mj/submit/modal using the returned task id. 4 = parameter error; description explains the cause.

description
string
result
string