- chatgpt对话
- chatgpt绘图识图
- claude-gemini
- 逆向模型
- 绘图midjourney-proxy-plus
- 音乐
- 绘图dall-e-3POST
分页查询任务
开发中
国内站
国内站
POST
https://api.huiyan-ai.cn/mj/task/query
https://api.huiyan-ai.cn
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
string
可选
Header 参数
Accept
string
可选
示例值:
*/*
Content-Type
string
可选
示例值:
application/json
string
可选
Body 参数application/json
pageNumber
integer <int32>
当前页, 从0开始
示例值:
0
pageSize
integer <int32>
每页条数
示例值:
10
sort
string
排序
示例值:
id,desc
action
string
可选
description
string
可选
failReason
string
可选
id
string
可选
ids
array[string]
可选
instanceId
string
可选
prompt
string
可选
promptEn
string
可选
state
string
可选
status
string
可选
statusSet
array[string]
可选
示例
{
"pageNumber": 0,
"pageSize": 10,
"sort": "id,desc",
"action": "",
"description": "",
"failReason": "",
"id": "",
"ids": [
""
],
"instanceId": "",
"prompt": "",
"promptEn": "",
"state": "",
"status": "",
"statusSet": [
""
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.huiyan-ai.cn/mj/task/query' \
--header 'Accept: */*' \
--header 'Content-Type: application/json' \
--data-raw '{
"pageNumber": 0,
"pageSize": 10,
"sort": "id,desc",
"action": "",
"description": "",
"failReason": "",
"id": "",
"ids": [
""
],
"instanceId": "",
"prompt": "",
"promptEn": "",
"state": "",
"status": "",
"statusSet": [
""
]
}'
返回响应
🟢200成功
application/json
Body
content
array[object (任务) {15}]
可选
action
string
任务类型
buttons
array[object (可执行按钮) {5}]
可选
description
string
任务描述
failReason
string
失败原因
finishTime
integer <int64>
结束时间
id
string
ID
imageUrl
string
图片url
progress
string
任务进度
prompt
string
提示词
promptEn
string
提示词-英文
properties
object
可选
startTime
integer <int64>
开始执行时间
state
string
自定义参数
status
string
任务状态
submitTime
integer <int64>
提交时间
empty
boolean
可选
first
boolean
可选
last
boolean
可选
number
integer <int32>
可选
numberOfElements
integer <int32>
可选
pageable
object (Pageable)
可选
offset
integer <int64>
可选
pageNumber
integer <int32>
可选
pageSize
integer <int32>
可选
paged
boolean
可选
sort
object (Sort)
可选
unpaged
boolean
可选
size
integer <int32>
可选
sort
object (Sort)
Sort
totalElements
integer <int64>
可选
totalPages
integer <int32>
可选
示例
{
"content": [
{
"action": "",
"buttons": [
{
"customId": "",
"emoji": "",
"label": "",
"style": 0,
"type": 0
}
],
"description": "",
"failReason": "",
"finishTime": 0,
"id": "",
"imageUrl": "",
"progress": "",
"prompt": "",
"promptEn": "",
"properties": {},
"startTime": 0,
"state": "",
"status": "",
"submitTime": 0
}
],
"empty": "",
"first": "",
"last": "",
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": "",
"sort": {
"empty": "",
"sorted": "",
"unsorted": ""
},
"unpaged": ""
},
"size": 0,
"sort": {
"empty": "",
"sorted": "",
"unsorted": ""
},
"totalElements": 0,
"totalPages": 0
}
🟠404失败
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
修改于 2024-05-30 10:04:39