Midjourney imagine 작업 생성
CometAPI에서 POST /mj/submit/imagine을 사용해 전체 Discord params와 함께 Midjourney imagine 작업을 생성하고, task_id 상태를 추적하며, 이미지-비디오 모션 효과를 활성화합니다.
첫 번째 응답에서 제공되는 내용
result는 다음에 폴링할 task id입니다code는 HTTP 스타일의200이 아닐 때도 여전히 성공 코드일 수 있습니다
핵심 워크플로
imagine 작업 제출
작업이 완료될 때까지 폴링
SUCCESS, MODAL, 또는 FAILURE에 도달할 때까지 단일 작업 가져오기를 사용합니다.후처리 계속 진행
선택적 비디오 프롬프트 패턴
소스 이미지에서 모션을 만들고 싶다면 프롬프트에 이미지 URL과--video, --motion 같은 Midjourney 비디오 플래그를 추가하세요.인증
Bearer token authentication. Use your CometAPI key.
본문
Text prompt for the generation. Supports standard Midjourney parameters such as --v, --ar, --stylize, etc.
"a paper boat floating on calm water at sunrise --v 6.1"
Bot type to use. MID_JOURNEY for Midjourney (default), NIJI_JOURNEY for Niji.
MID_JOURNEY, NIJI_JOURNEY Filter which Midjourney account modes may be used for this task.
Base64-encoded reference images. Each item should be a data URI such as data:image/png;base64,xxx.
Custom state string. Returned as-is in the task result and webhook callback for your own tracking.
응답
Task accepted.
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.
Task id returned after submission.