상상
CometAPI에서 POST /mj/submit/imagine를 사용해 전체 Discord params와 함께 Midjourney imagine 작업을 생성하고, task_id 상태를 추적하며, 이미지-비디오 모션 효과를 활성화하세요.
이 엔드포인트를 사용해 Midjourney의 메인 워크플로를 시작할 수 있습니다. 업스케일, variation, custom zoom을 포함한 이후의 모든 단계는 성공적인 imagine 작업에서 시작됩니다.Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
첫 번째 응답에서 제공되는 정보
result는 다음에 폴링할 task id입니다- HTTP 스타일의
200이 아니더라도code는 여전히 성공 코드일 수 있습니다
핵심 워크플로
작업이 완료될 때까지 폴링
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.