Gebruik CometAPI GET /mj/task//fetch om snel en betrouwbaar de status van één Midjourney-taak op te halen voor monitoring en het pollen van resultaten.
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 voor de algemene taakstatusprogress voor het huidige voltooiingssignaalimageUrl of videoUrl wanneer het asset klaar isbuttons voor de eerstvolgende beschikbare customId-waardenSUCCESS, MODAL of FAILURE bereiktbuttons-array als de enige bron van waarheid voor vervolgactiesimageUrl wanneer je het voltooide raster of upscale-resultaat nodig hebtSUCCESS, progress: 100%, een imageUrl en 9 actieknoppen terug voor een FAST imagine-taak.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
}
]
}