任務擷取 API
取得單一任務
使用 CometAPI GET /mj/task//fetch 快速且可靠地擷取單一 Midjourney 任務狀態,以進行監控與結果輪詢。
GET
Fetch a Midjourney task
在每次 Midjourney submit 呼叫之後都應使用此端點。這是 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取得下一步可用的customId值
輪詢規則
- 持續輪詢,直到任務到達
SUCCESS、MODAL或FAILURE - 將
buttons陣列視為後續操作的唯一依據 - 當你需要最終完成的格線圖或放大結果時,使用
imageUrl
授權
Bearer token authentication. Use your CometAPI key.
路徑參數
Midjourney task id.
回應
200 - application/json
Current task state.