Skip to main content
GET
/
mj
/
task
/
{id}
/
fetch
Midjourney 任务查询
curl --request GET \
  --url https://api.example.com/mj/task/{id}/fetch \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>"
}
'
{
  "id": "task-mj-abc123",
  "action": "IMAGINE",
  "status": "IN_PROGRESS",
  "progress": "65%",
  "submitTime": 1735689600000,
  "imageUrl": null,
  "failReason": null
}

Documentation Index

Fetch the complete documentation index at: https://mercury-eab3b728.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Midjourney 任务查询

Midjourney 路由使用自己的一套任务结构,不与视频任务的 code/message/data 包装混用。
  • 适合查询 imagine、upscale、variation、blend、describe 等任务。
  • 成功任务通常会返回 imageUrl 和可继续操作的 buttons
  • 公开图片可通过 /mj/image/{id} 直接访问。
  • 图片种子可通过 /mj/task/{id}/image-seed 单独查询。

方法与路径

GET /mj/task/{id}/fetch

请求示例

curl https://www.geeknow.top/mj/task/task-mj-abc123/fetch \
  -H "Authorization: Bearer YOUR_API_KEY"

响应示例

{
  "id": "task-mj-abc123",
  "action": "IMAGINE",
  "status": "IN_PROGRESS",
  "progress": "65%",
  "submitTime": 1735689600000,
  "imageUrl": null,
  "failReason": null
}

认证

Authorization: Bearer YOUR_API_KEY

Path Parameters

id
string
required
Midjourney 任务 ID,由 /mj/submit/* 系列接口返回。

Response

id
string
任务 ID。
action
string
任务动作,例如 IMAGINEUPSCALEVARIATIONDESCRIBE
status
string
任务状态,常见值为 SUBMITTEDIN_PROGRESSSUCCESSFAILURE
imageUrl
string | null
生成完成后的图片地址。
buttons
array<object> | null
成功任务后可继续触发的操作按钮。

使用场景

查询图片种子

curl https://www.geeknow.top/mj/task/task-mj-abc123/image-seed \
  -H "Authorization: Bearer YOUR_API_KEY"

获取公开图片

curl -L https://www.geeknow.top/mj/image/task-mj-abc123 --output output.png

相关接口