Modellss Docs
  1. Task Inquiry
  • Send Request
  • Model List and Price
  • Model APIs
    • Chat API
      • Chat
      • GPTs
      • gemini-pro
      • gpt-4-all(Image)
      • gpt-4-vision-preview
    • Chat Completions API
      • Chat Completions API
    • Image API
      • Midjourney
        • InsightFace task submission
          • Submit swap_face task
        • Task Submission
          • Perform Action
          • Submit Blend Task
          • Submit a Describe task
          • Submit a Imagine task
          • Submit Modal
          • Submit Shorten Task
        • Task Inquiry
          • Inquire about all tasks
            GET
          • Inquire about tasks based on a list of IDs
            POST
          • Paged query for tasks
            POST
          • Inquire about the task queue
            GET
          • Cancel task
            POST
          • Retrieve task with specified ID
            GET
          • Get the seed for the task image
            GET
      • DALL·E 3
        POST
      • Stable Diffusion
        POST
      • MJ Chat
        POST
      • gpt-4-all(generate images)
        POST
    • Embedding Vector Generation Interface (Embeddings)
      • Create Embeddings
    • Audio
      • Create transcription
      • Create translation
      • Text to speech
  • Help Center
    • FAQ
  1. Task Inquiry

Paged query for tasks

POST
/mj/task/query
任务查询

Request

Body Params application/json
pageNumber
integer <int32>
optional
Current page, starting from 0
Example:
0
pageSize
integer <int32>
optional
page size
Example:
10
sort
string 
optional
sort
Example:
id,desc
action
enum<string> 
optional
Allowed values:
IMAGINEUPSCALEVARIATIONZOOMPANDESCRIBEBLENDSHORTENSWAP_FACE
description
string 
optional
ids
array[string]
optional
instanceId
string 
optional
prompt
string 
optional
promptEn
string 
optional
state
string 
optional
status
enum<string> 
optional
Allowed values:
NOT_STARTSUBMITTEDMODALIN_PROGRESSFAILURESUCCESSCANCEL
statusSet
array[string]
optional
Allowed values:
NOT_STARTSUBMITTEDMODALIN_PROGRESSFAILURESUCCESSCANCEL
Example
{
    "pageNumber": 0,
    "pageSize": 10,
    "sort": "id,desc",
    "action": "IMAGINE",
    "description": "string",
    "ids": [
        "string"
    ],
    "instanceId": "string",
    "prompt": "string",
    "promptEn": "string",
    "state": "string",
    "status": "NOT_START",
    "statusSet": [
        "NOT_START"
    ]
}

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 --request POST 'https://api.modelless.co/mj/task/query' \
--header 'Content-Type: application/json' \
--data-raw '{
    "pageNumber": 0,
    "pageSize": 10,
    "sort": "id,desc",
    "action": "IMAGINE",
    "description": "string",
    "ids": [
        "string"
    ],
    "instanceId": "string",
    "prompt": "string",
    "promptEn": "string",
    "state": "string",
    "status": "NOT_START",
    "statusSet": [
        "NOT_START"
    ]
}'

Responses

🟢200OK
application/json
Body
content
array[object (任务) {15}] 
optional
action
enum<string> 
optional
任务类型
Allowed values:
IMAGINEUPSCALEVARIATIONZOOMPANDESCRIBEBLENDSHORTENSWAP_FACE
buttons
array[object (可执行按钮) {5}] 
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
提交时间
empty
boolean 
optional
first
boolean 
optional
last
boolean 
optional
number
integer <int32>
optional
numberOfElements
integer <int32>
optional
pageable
object (Pageable) 
optional
offset
integer <int64>
optional
pageNumber
integer <int32>
optional
pageSize
integer <int32>
optional
paged
boolean 
optional
sort
object (Sort) 
optional
unpaged
boolean 
optional
size
integer <int32>
optional
sort
object (Sort) 
optional
totalElements
integer <int64>
optional
totalPages
integer <int32>
optional
Example
{
    "content": [
        {
            "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
        }
    ],
    "empty": true,
    "first": true,
    "last": true,
    "number": 0,
    "numberOfElements": 0,
    "pageable": {
        "offset": 0,
        "pageNumber": 0,
        "pageSize": 0,
        "paged": true,
        "sort": {
            "empty": true,
            "sorted": true,
            "unsorted": true
        },
        "unpaged": true
    },
    "size": 0,
    "sort": {
        "empty": true,
        "sorted": true,
        "unsorted": true
    },
    "totalElements": 0,
    "totalPages": 0
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Previous
Inquire about tasks based on a list of IDs
Next
Inquire about the task queue
Built with