Skip to content

查询:根据ID列表查任务

概览

  • 请求方法:POST
  • 路径:/mj/task/list-by-condition
  • 内容类型:application/json

认证

  • 使用 HTTP Bearer Token,示例:Authorization: Bearer sk-xxxxx

请求参数

参数类型必填描述
idsarray[string]任务ID列表

请求示例

json
{
  "ids": [
    "1725018853016218",
    "1725017986212425"
  ]
}

curl

bash
curl -X POST "https://api.gpt.ge/mj/task/list-by-condition" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-xxxx" \
  -d '{"ids":["1725018853016218","1725017986212425"]}'

返回示例(200)

json
[{
  "id": "1724957502830765",
  "action": "IMAGINE",
  "customId": "",
  "botType": "",
  "prompt": "a white dog",
  "promptEn": "a white dog",
  "description": "Submit success",
  "state": "",
  "submitTime": 1724957502830,
  "startTime": 1724957503801,
  "finishTime": 1724957529477,
  "imageUrl": "http://localhost:3001/mj/image/1724957502830765",
  "status": "SUCCESS",
  "progress": "100%",
  "failReason": "",
  "buttons": [
    {"customId":"MJ::JOB::upsample::1::7ca4f5b2-d6a0-4c44-8ba9-5635bf116ec3","emoji":"","label":"U1","type":2,"style":2}
  ],
  "maskBase64": "",
  "properties": {"finalPrompt": "a white dog", "finalZhPrompt": ""}
}]