Midjourney로 이미지 설명하기
CometAPI POST /mj/submit/describe를 사용해 업로드한 이미지에서 초기 Midjourney 프롬프트를 추출하여 빠르게 리믹스하고 반복 작업할 수 있습니다.
이 경로가 유용한 경우
- 이미지를 리믹스할 수 있는 프롬프트 후보로 변환할 때
- 새로운 imagine 작업을 시작하기 전에 시각적 방향성을 추출할 때
- 첫 프롬프트를 처음부터 작성하고 싶지 않을 때 더 빠른 작성 루프를 구축할 때
작업 흐름
이미지 제출
describe 작업 폴링
생성된 프롬프트 재사용
인증
Bearer token authentication. Use your CometAPI key.
본문
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.
Bot type to use. MID_JOURNEY for Midjourney (default), NIJI_JOURNEY for Niji.
NIJI_JOURNEY, MID_JOURNEY Custom state string. Returned as-is in the task result and webhook callback for your own tracking.
응답
Success
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.