Midjourney 액션 작업 생성
CometAPI POST /mj/submit/action을 사용해 생성된 이미지에 업스케일, variation, reroll, zoom 등의 Midjourney 액션을 적용합니다.
필요한 값 두 가지
- 원본 또는 가장 최근 Midjourney 작업의
taskId - 단일 작업 조회에서 반환된 최신
buttons배열의customId
일반적인 액션
U1부터U4까지: 그리드에서 이미지 하나를 업스케일V1부터V4까지: 특정 이미지 위치를 기준으로 variation 생성- Reroll: 전체 그리드를 다시 생성
- Zoom 및 Pan: 기존 구도를 확장
액션 제출 후
후속 작업 생성
taskId와 customId를 전송한 다음, 새로 반환된 task id를 저장합니다.새 작업 폴링
모달 전용 액션 처리
MODAL에 도달하면, 추가 입력을 제공하기 위해 Modal로 계속 진행합니다.인증
Bearer token authentication. Use your CometAPI key.
본문
Action id taken from the latest buttons array returned by the fetch endpoint.
Midjourney task id you want to continue from.
Custom state string. Returned as-is in the task result and webhook callback for your own tracking.
Whether to force remix mode when the current action supports it.
Whether to prefer the same provider account used by the current task.
응답
Action 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.
New Midjourney task id created for the action.