任务查询 API
获取单个任务
使用 CometAPI GET /mj/task//fetch 快速且可靠地获取单个 Midjourney 任务状态,用于监控和结果轮询。
GET
Fetch a Midjourney task
在每次提交 Midjourney 调用后都使用此端点。它是 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.