Sử dụng CometAPI GET /mj/task//fetch để truy xuất nhanh chóng và đáng tin cậy trạng thái của một tác vụ Midjourney nhằm theo dõi và polling kết quả.
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
}
]
}Sử dụng endpoint này sau mỗi lệnh gửi Midjourney. Đây là endpoint polling chính cho các quy trình imagine, action, modal, blend và 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 cho trạng thái tổng thể của tác vụprogress cho tín hiệu hoàn tất hiện tạiimageUrl hoặc videoUrl khi tài nguyên đã sẵn sàngbuttons cho các giá trị customId khả dụng tiếp theoSUCCESS, MODAL hoặc FAILUREbuttons là nguồn thông tin chính xác nhất cho các hành động tiếp theoimageUrl khi bạn cần lưới hoàn chỉnh hoặc kết quả 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
}
]
}