Imaging aracılığıyla oluşturulan görseller üzerinde Midjourney aksiyonları—upscale, variation, reroll, zoom ve daha fazlası—uygulamak için CometAPI POST /mj/submit/action kullanın.
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 dizisinden alınan customIdcustomId sabit değildir. Asla hardcode etmeyin. Her zaman en son polling yanıtından okuyun.U1 ile U4: grid’deki tek bir görseli upscale etV1 ile V4: tek bir görsel konumundan variation üretTakip görevini oluşturun
taskId ve customId gönderin, ardından döndürülen yeni görev kimliğini saklayın.Yeni görevi poll edin
Yalnızca modal gerektiren action'ları yönetin
MODAL durumuna ulaşırsa, ek girdiyi sağlamak için Modal ile devam edin.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>"
}
}