Użyj CometAPI GET /mj/task//fetch, aby szybko i niezawodnie pobrać status pojedynczego zadania Midjourney na potrzeby monitorowania i odpytywania o wynik.
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 dla ogólnego stanu zadaniaprogress dla bieżącego sygnału ukończeniaimageUrl lub videoUrl, gdy zasób jest gotowybuttons dla kolejnych dostępnych wartości customIdSUCCESS, MODAL lub FAILUREbuttons jako źródło prawdy dla działań następczychimageUrl, gdy potrzebujesz gotowej siatki lub wyniku upscaleSUCCESS, progress: 100%, imageUrl oraz 9 przycisków akcji dla zadania FAST imagine.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
}
]
}