# Midjourney/任务查询
# GET 查询所有任务
GET /mj/task/list
# 请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
Authorization | header | string | 否 | none |
返回示例
200 Response
[
{
"action": "IMAGINE",
"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
}
]
# 返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK (opens new window) | OK | Inline |
401 | Unauthorized (opens new window) | Unauthorized | Inline |
403 | Forbidden (opens new window) | Forbidden | Inline |
404 | Not Found (opens new window) | Not Found | Inline |
# 返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
anonymous | [任务] | false | none | none |
# POST 根据ID列表查询任务
POST /mj/task/list-by-condition
Body 请求参数
{
"ids": [
"string"
]
}
# 请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
Authorization | header | string | 否 | none |
body | body | any | 否 | none |
返回示例
200 Response
[
{
"action": "IMAGINE",
"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
}
]
# 返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK (opens new window) | OK | Inline |
201 | Created (opens new window) | Created | Inline |
401 | Unauthorized (opens new window) | Unauthorized | Inline |
403 | Forbidden (opens new window) | Forbidden | Inline |
404 | Not Found (opens new window) | Not Found | Inline |
# 返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
anonymous | [任务] | false | none | none |
# GET 查询任务队列
GET /mj/task/queue
# 请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
Authorization | header | string | 否 | none |
返回示例
200 Response
[
{
"action": "IMAGINE",
"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
}
]
# 返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK (opens new window) | OK | Inline |
401 | Unauthorized (opens new window) | Unauthorized | Inline |
403 | Forbidden (opens new window) | Forbidden | Inline |
404 | Not Found (opens new window) | Not Found | Inline |
# 返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
anonymous | [任务] | false | none | none |
# GET 指定ID获取任务
GET /mj/task/{id}/fetch
# 请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
id | path | string | 是 | 任务ID |
Authorization | header | string | 否 | none |
返回示例
200 Response
{
"action": "IMAGINE",
"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
}
# 返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK (opens new window) | OK | Inline |
401 | Unauthorized (opens new window) | Unauthorized | Inline |
403 | Forbidden (opens new window) | Forbidden | Inline |
404 | Not Found (opens new window) | Not Found | Inline |