Sử dụng CometAPI POST /mj/submit/action để áp dụng các hành động Midjourney—upscale, variation, reroll, zoom, và nhiều thao tác khác—trên các hình ảnh được tạo qua imaging.
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>"
}
}taskId từ tác vụ Midjourney gốc hoặc gần nhấtcustomId từ mảng buttons mới nhất được trả về bởi Fetch Single TaskcustomId không ổn định. Tuyệt đối không hardcode giá trị này. Luôn đọc nó từ phản hồi polling mới nhất.U1 đến U4: upscale một hình ảnh từ lướiV1 đến V4: tạo các variation từ một vị trí hình ảnhPoll tác vụ mới
Xử lý các action chỉ dành cho modal
MODAL, tiếp tục với Modal để cung cấp dữ liệu đầu vào bổ sung.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>"
}
}