API reference
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  1. Get Task
API reference
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  • Chat Models
    • Chat
      • Create chat completion
      • vision
    • OpenAI-Realtime
    • Completions
      • Instruct
    • Audio
      • Transcriptions
      • Translations
      • Speech
    • Image generation
      • DALL·E 3
    • Embeddings
      • Create
    • Models
      • model list
    • Help
      • 常见问题及解决办法
  • Anthropic
    • Anthropic Claude
      POST
  • Suno
    • Generate music
      POST
    • Generate lyrics
      POST
    • Upload music
      POST
    • Music concat
      POST
    • Fetch task
      GET
    • Fetch batch tasks
      POST
  • Udio
    • Generate music
      POST
    • Fetch task
      GET
  • Midjourney API
    • Quick
    • Task Submit
      • Imagine
      • Action
      • Modal
      • Blend
      • Describe
      • Shorten
      • Upload discord
    • Get Task
      • Fetch task by ids
        POST
      • Fetch task by id
        GET
      • Get seed
        GET
  • Flux
    • Official
      • Generate
      • Finetune
      • Fetch task
    • OpenAI Dalle3
      POST
  • Recraft
    • Official
      • Generate Image
      • Vectorize Image
      • Remove Background
      • Clarity Upscale
      • Generative Upscale
      • Create style
    • OpenAI Dalle3
  • Ideogram
    • Generate
    • Remix
    • Edit
    • Upscale
    • Describe
  • Luma
    • Official
      • Generate
      • Fetch task
    • Own format
      • Submit
        • Generate
        • Get video of no mark
        • 扩展视频
      • Get task
        • Get task
        • Get batch task
  • Runway
    • Official
      • image to video
      • get task
    • reverse
      • text to video
      • image to video
      • video2video
      • Act-one
      • Get task
  • Kling-API
    • Callback
    • Generate image
    • Text 2 Video
    • Image 2 Video
    • Video extend
    • Get task
    • lip-sync
    • kolors-virtual-try-on
  • Replicate
    • Generate
    • Get
  • MiniMax
    • Generate video
    • Get task
    • Get file
  1. Get Task

Fetch task by ids

POST
/mj/task/list-by-condition
任务查询
Last modified:2025-02-05 11:23:54

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
Authorization
string 
optional
Default:
{{YOUR_API_KEY}}
Body Params application/json
ids
array[string]
optional
任务ID数组
Example
{
  "ids": [
    "string"
  ]
}

Request samples

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

Responses

🟢200OK
application/json
Body
array of:
action
enum<string> 
optional
任务类型
Allowed values:
IMAGINEUPSCALEVARIATIONZOOMPANDESCRIBEBLENDSHORTENSWAP_FACE
buttons
array[object (可执行按钮) {5}] 
optional
customId
string 
optional
动作标识
emoji
string 
optional
图标
label
string 
optional
文本
style
integer <int32>
optional
样式: 2(Primary)、3(Green)
type
integer <int32>
optional
类型,系统内部使用
description
string 
optional
任务描述
failReason
string 
optional
失败原因
finishTime
integer <int64>
optional
结束时间
id
string 
optional
ID
imageUrl
string 
optional
图片url
progress
string 
optional
任务进度
prompt
string 
optional
提示词
promptEn
string 
optional
提示词-英文
properties
object 
optional
startTime
integer <int64>
optional
开始执行时间
state
string 
optional
自定义参数
status
enum<string> 
optional
任务状态
Allowed values:
NOT_STARTSUBMITTEDMODALIN_PROGRESSFAILURESUCCESSCANCEL
submitTime
integer <int64>
optional
提交时间
Example
[
  {
    "action": "IMAGINE",
    "buttons": [
      {
        "customId": "string",
        "emoji": "string",
        "label": "string",
        "style": 0,
        "type": 0
      }
    ],
    "description": "string",
    "failReason": "string",
    "finishTime": 0,
    "id": "string",
    "imageUrl": "string",
    "progress": "string",
    "prompt": "string",
    "promptEn": "string",
    "properties": {},
    "startTime": 0,
    "state": "string",
    "status": "NOT_START",
    "submitTime": 0
  }
]
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Previous
Upload discord
Next
Fetch task by id
Built with