Skip to main content
POST
cURL
이 엔드포인트를 사용하면 입력 이미지에서 Midjourney 스타일의 프롬프트 제안을 추출할 수 있습니다.

이 경로가 유용한 경우

  • 이미지를 리믹스할 수 있는 프롬프트 후보로 변환할 때
  • 새로운 imagine 작업을 시작하기 전에 시각적 방향성을 추출할 때
  • 첫 프롬프트를 처음부터 작성하고 싶지 않을 때 더 빠른 작성 루프를 구축할 때

작업 흐름

1

이미지 제출

Midjourney가 설명할 이미지를 업로드하거나 참조하고, 반환된 작업 id를 저장합니다.
2

describe 작업 폴링

작업이 완료되고 프롬프트 형태의 출력을 반환할 때까지 단일 작업 가져오기를 사용합니다.
3

생성된 프롬프트 재사용

의도에 맞는 프롬프트 후보를 선택한 뒤 Imagine으로 이어서 새 생성 패스를 진행합니다.

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

본문

application/json
base64
string
기본값:data:image/png;base64,<your-image-base64>
필수

Base64-encoded image to describe. Use a data URI such as data:image/png;base64,xxx. Provide either base64 or link.

URL of the image to describe. Provide either link or base64.

botType
enum<string>

Bot type to use. MID_JOURNEY for Midjourney (default), NIJI_JOURNEY for Niji.

사용 가능한 옵션:
NIJI_JOURNEY,
MID_JOURNEY
state
string

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

응답

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
필수
properties
object
필수
result
integer
필수