CometAPI POST /mj/submit/action을 사용해 이미지 생성으로 생성된 이미지에 대해 Midjourney 액션(업스케일, variation, reroll, zoom 등)을 적용합니다.
curl --request POST \
--url https://api.cometapi.com/mj/submit/action \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customId": "MJ::JOB::variation::3::example",
"taskId": "1773314942177684"
}
'{
"code": 123,
"description": "<string>",
"result": "<string>",
"properties": {
"numberOfQueues": 123,
"discordInstanceId": "<string>",
"discordChannelId": "<string>"
}
}taskIdbuttons 배열의 customIdcustomId는 고정된 값이 아닙니다. 절대 하드코딩하지 마세요. 항상 최신 폴링 응답에서 읽어오세요.U1부터 U4까지: 그리드에서 이미지 하나를 업스케일V1부터 V4까지: 특정 이미지 위치를 기준으로 variation 생성새 작업 폴링
모달 전용 액션 처리
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 channel account used by the current task.
curl --request POST \
--url https://api.cometapi.com/mj/submit/action \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customId": "MJ::JOB::variation::3::example",
"taskId": "1773314942177684"
}
'{
"code": 123,
"description": "<string>",
"result": "<string>",
"properties": {
"numberOfQueues": 123,
"discordInstanceId": "<string>",
"discordChannelId": "<string>"
}
}