CometAPI에서 POST /mj/submit/imagine를 사용해 전체 Discord params와 함께 Midjourney imagine 작업을 생성하고, task_id 상태를 추적하며, image-to-video 모션 효과를 활성화합니다.
curl --request POST \
--url https://api.cometapi.com/mj/submit/imagine \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "a paper boat floating on calm water at sunrise --v 6.1"
}
'{
"code": 1,
"description": "提交成功",
"result": "1773314942177684",
"properties": {
"discordChannelId": "5e6ca8e1f40e4de6",
"discordInstanceId": "5e6ca8e1f40e4de6"
}
}result는 다음에 폴링할 task id입니다description는 래퍼 메시지이며 현지화될 수 있습니다code는 HTTP 스타일의 200이 아니어도 성공 코드일 수 있습니다작업이 완료될 때까지 폴링
SUCCESS, MODAL, 또는 FAILURE에 도달할 때까지 Fetch Single Task를 사용합니다.후처리 계속 진행
--video, --motion 같은 Midjourney 비디오 플래그를 함께 추가하세요.
imageUrl과 9개의 action 버튼이 포함된 SUCCESS 상태에 도달한 것이 확인되었습니다.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.
Show child attributes
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.
curl --request POST \
--url https://api.cometapi.com/mj/submit/imagine \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "a paper boat floating on calm water at sunrise --v 6.1"
}
'{
"code": 1,
"description": "提交成功",
"result": "1773314942177684",
"properties": {
"discordChannelId": "5e6ca8e1f40e4de6",
"discordInstanceId": "5e6ca8e1f40e4de6"
}
}