Chat Bp
  1. 任务查询
Chat Bp
  • OpenAI通用接口
    • 聊天接口(Chat)
      • 聊天接口(OpenAI格式通用)
      • gpts
      • gemini-pro
      • gpt-4-all(分析图片)
      • gpt-4-all(生成图片)
      • gpt-4-vision-preview
    • 图像接口(Images)
      • 图像生成
      • 图像编辑
      • 异步任务查询
    • 帮助中心
      • 常见问题及解决办法
  • gemini
    • Gemini多模态
      POST
  • Midjourney API文档
    • 快速教学-完整流程一遍过
    • 任务提交
      • 提交Imagine任务
      • 提交Action任务
      • 提交Blend任务
      • 提交Modal任务
      • 提交Describe任务
      • 提交Shorten任务
      • 提交SwapFace任务
      • 上传文件到discord
    • 任务查询
      • 指定id查询任务
        GET
      • 指定id列表查询任务
        POST
      • 获取任务图片的seed
        GET
  • Flux(文生图)
    • Replicate格式
      • 生成图片
      • 查询任务
    • OpenAI DallE3格式
      POST
  • Runway视频接口
    • 逆向
      • generate(文本)
      • generte(参考图片)
      • 查询单个任务
      • 查询任务列表
  • Luma视频接口
    • 视频生成
      POST
    • 视频扩展
      POST
    • 任务查询
      GET
  • 可灵API(官方接口)
    • 图像生成
      POST
    • 文生视频
      POST
    • 图生视频
      POST
    • 任务查询
      GET
  • 工作流接口
    • 艺术字
      POST
    • 艺术二维码
      POST
    • 风格转绘
      POST
    • 证件照
      POST
    • 高清放大
      POST
    • 模特换装
      POST
    • 局部重绘
      POST
    • 商品换背景
      POST
    • Flux-dev
      POST
    • 获取任务状态
      GET
  • suno
    • Suno 歌词生成
    • Suno 简单模式
    • Suno 进阶模式
    • suno 参考音乐模式
    • Suno 获取歌词
    • Suno 获取音乐
    • Suno 历史记录
    • Suno 用户删除记录
  • ideogram
    • Generate(文生图)
    • Remix(混合图)
    • Upscale(放大高清)
    • Describe(描述)
  1. 任务查询

指定id列表查询任务

POST
/mj/task/list-by-condition
通过任务id数组,查询任务信息。(可以通过轮询调用该接口,实现任务进行的查询。也可以通过回调接口获取)

请求参数

Header 参数
Authorization
string 
必需
默认值:
{{Authorization}}
Body 参数application/json
ids
array[string]
任务ID列表
必需
示例
{
  "ids": [
    "1712158011464906"
  ]
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/mj/task/list-by-condition' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ids": [
        "1712158011464906"
    ]
}'

返回响应

🟢200成功
application/json
Body
array of:
id
string 
ID 编号
必需
action
string 
必需
任务类型,可用值:IMAGINE,UPSCALE,VARIATION,ZOOM,PAN,DESCRIBE,BLEND,SHORTEN,SWAP_FACE
prompt
string 
提示词
必需
promptEn
string 
提示词-英文
必需
description
string 
任务描述
必需
submitTime
string 
提交时间
必需
startTime
string 
开始执行时间
必需
finishTime
string 
结束时间
必需
imageUrl
string 
图片url
必需
status
string 
必需
任务状态,可用值:NOT_START,SUBMITTED,MODAL,IN_PROGRESS,FAILURE,SUCCESS,CANCEL
progress
string 
任务进度
必需
failReason
string 
失败原因
可选
buttons
array[object (MjButton) {5}] 
必需
按钮数组:图片下方对应的各个按钮数组,需要点击按钮的时候,把customId传给action接口即可
customId
string 
动作标识
可选
emoji
string 
图标
可选
label
string 
文本
可选
type
integer 
可选
样式: 2(Primary)、3(Green)
style
integer 
类型,系统内部使用
可选
state
string 
自定义参数
可选
示例
[
  {
    "id": "1712158011464906",
    "action": "IMAGINE",
    "prompt": "a cat",
    "promptEn": "a cat",
    "description": "Submit success",
    "state": "",
    "submitTime": 1712158011464,
    "startTime": 1712158012279,
    "finishTime": 1712158069485,
    "imageUrl": "https://dl.deepwl.net/attachments/1224565686630875148/1225104478341042197/8bls4f1w_85275_a_cat_639e5abd-a032-45d9-a49e-f53f2382fbb0.png?ex=661fea74&is=660d7574&hm=34265daf2885402f17c5a5117d8711b72e27f0f70233e33a1948d83be5bda71f&",
    "status": "SUCCESS",
    "progress": "100%",
    "failReason": "",
    "buttons": [
      {
        "customId": "MJ::JOB::upsample::1::639e5abd-a032-45d9-a49e-f53f2382fbb0",
        "emoji": "",
        "label": "U1",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::upsample::2::639e5abd-a032-45d9-a49e-f53f2382fbb0",
        "emoji": "",
        "label": "U2",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::upsample::3::639e5abd-a032-45d9-a49e-f53f2382fbb0",
        "emoji": "",
        "label": "U3",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::upsample::4::639e5abd-a032-45d9-a49e-f53f2382fbb0",
        "emoji": "",
        "label": "U4",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::reroll::0::639e5abd-a032-45d9-a49e-f53f2382fbb0::SOLO",
        "emoji": "🔄",
        "label": "",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::variation::1::639e5abd-a032-45d9-a49e-f53f2382fbb0",
        "emoji": "",
        "label": "V1",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::variation::2::639e5abd-a032-45d9-a49e-f53f2382fbb0",
        "emoji": "",
        "label": "V2",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::variation::3::639e5abd-a032-45d9-a49e-f53f2382fbb0",
        "emoji": "",
        "label": "V3",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::variation::4::639e5abd-a032-45d9-a49e-f53f2382fbb0",
        "emoji": "",
        "label": "V4",
        "type": 2,
        "style": 2
      }
    ]
  }
]
修改于 2024-12-15 07:08:38
上一页
指定id查询任务
下一页
获取任务图片的seed
Built with