Gunakan CometAPI GET /mj/task//fetch untuk mengambil status satu task Midjourney dengan cepat dan andal untuk pemantauan dan polling hasil.
curl --request GET \
--url https://api.cometapi.com/mj/task/{id}/fetch \
--header 'Authorization: Bearer <token>'{
"id": "1773314942177684",
"status": "SUCCESS",
"progress": "100%",
"imageUrl": "https://api.cometapi.com/mj/image/1773314942177684",
"videoUrl": "",
"buttons": [
{
"customId": "MJ::JOB::upsample::1::example",
"emoji": "",
"label": "U1",
"type": 2,
"style": 1
}
]
}status untuk status task secara keseluruhanprogress untuk sinyal penyelesaian saat iniimageUrl atau videoUrl saat aset sudah siapbuttons untuk nilai customId berikutnya yang tersediaSUCCESS, MODAL, atau FAILUREbuttons sebagai sumber kebenaran untuk tindakan lanjutanimageUrl saat Anda memerlukan grid akhir atau hasil upscaleSUCCESS, progress: 100%, sebuah imageUrl, dan 9 tombol tindakan untuk task imagine FAST.Bearer token authentication. Use your CometAPI key.
Midjourney task id.
Current task state.
Show child attributes
Show child attributes
curl --request GET \
--url https://api.cometapi.com/mj/task/{id}/fetch \
--header 'Authorization: Bearer <token>'{
"id": "1773314942177684",
"status": "SUCCESS",
"progress": "100%",
"imageUrl": "https://api.cometapi.com/mj/image/1773314942177684",
"videoUrl": "",
"buttons": [
{
"customId": "MJ::JOB::upsample::1::example",
"emoji": "",
"label": "U1",
"type": 2,
"style": 1
}
]
}