Используйте CometAPI GET /mj/task//fetch, чтобы быстро и надежно получать статус одной задачи Midjourney для мониторинга и опроса результатов.
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
}
]
}Используйте этот endpoint после каждого вызова отправки Midjourney. Это основной endpoint для polling в рабочих процессах imagine, action, modal, blend и editor.Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
status для общего состояния задачиprogress для текущего сигнала завершенияimageUrl или videoUrl, когда ресурс готовbuttons для следующих доступных значений customIdSUCCESS, MODAL или FAILUREbuttons как источник истины для последующих действийimageUrl, когда вам нужен готовый grid или результат upscaleBearer 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
}
]
}