- 引言
- 在线调试说明
- 发出请求
- 各种插件/软件使用教程
- 中转站基本介绍
- Chat模型
- 文生图模型
- 文生视频模型
- GPTs 相关
- 文生音乐 Suno
- 系统API
- Python配置方式
- python openai官方库(使用AutoGPT,langchain等)
- python 连续对话
- python 使用 语音转文本
- python 使用文本转语音
- python 使用Embeddings 向量化
- python 调用DALL·E
- python简单调用 openai function-calling demo
- python 简单langchain 调用openai demo
- python llama_index 配置
- Python使用gpt-4o识别图片-本地图片
- python 库流式输出
- gpt realtime模型调用
- python request 请求 流式输出demo
- Python基础对话
- Python使用gpt-4o识别图片
- Python使用Claude识别图片
- nodejs 配置方式
- 帮助中心
根据ID列表查询任务
POST
/mj/task/list-by-condition
请求参数
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
ids
array[string]
必需
示例
{
"ids": [
"1743326750223591"
]
}
示例代码
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 'Content-Type: application/json' \
--data-raw '{
"ids": [
"1743326750223591"
]
}'
返回响应
🟢200成功
application/json
Body
array of:
id
string
可选
action
string
可选
customId
string
可选
botType
string
可选
prompt
string
可选
promptEn
string
可选
description
string
可选
state
string
可选
submitTime
integer
可选
startTime
integer
可选
finishTime
integer
可选
imageUrl
string
可选
status
string
可选
progress
string
可选
failReason
string
可选
buttons
array [object {5}]
可选
customId
string
必需
emoji
string
必需
label
string
必需
type
integer
必需
style
integer
必需
maskBase64
string
可选
properties
object
可选
finalPrompt
string
必需
finalZhPrompt
string
必需
示例
{
"id": "1730621826053455",
"action": "IMAGINE",
"customId": "",
"botType": "",
"prompt": "pig --v 6.1",
"promptEn": "pig --v 6.1",
"description": "Submit success",
"state": "",
"submitTime": 1730621826053,
"startTime": 1730621828024,
"finishTime": 1730621855817,
"imageUrl": "https://cdnmjp.oneabc.org/attachments/1300842274347028520/1302547211321741343/kennedyhernandez46715_74108_pig_3785da15-4f70-4034-9128-f3ff1ac634fa.png?ex=6728831f&is=6727319f&hm=f6d701914d608e4da9298d2290b3616317264a70635fbf08a37ca6c1bb671b50&",
"status": "SUCCESS",
"progress": "100%",
"failReason": "",
"buttons": [
{
"customId": "MJ::JOB::upsample::1::3785da15-4f70-4034-9128-f3ff1ac634fa",
"emoji": "",
"label": "U1",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::upsample::2::3785da15-4f70-4034-9128-f3ff1ac634fa",
"emoji": "",
"label": "U2",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::upsample::3::3785da15-4f70-4034-9128-f3ff1ac634fa",
"emoji": "",
"label": "U3",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::upsample::4::3785da15-4f70-4034-9128-f3ff1ac634fa",
"emoji": "",
"label": "U4",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::reroll::0::3785da15-4f70-4034-9128-f3ff1ac634fa::SOLO",
"emoji": "🔄",
"label": "",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::variation::1::3785da15-4f70-4034-9128-f3ff1ac634fa",
"emoji": "",
"label": "V1",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::variation::2::3785da15-4f70-4034-9128-f3ff1ac634fa",
"emoji": "",
"label": "V2",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::variation::3::3785da15-4f70-4034-9128-f3ff1ac634fa",
"emoji": "",
"label": "V3",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::variation::4::3785da15-4f70-4034-9128-f3ff1ac634fa",
"emoji": "",
"label": "V4",
"type": 2,
"style": 2
}
],
"maskBase64": "",
"properties": {
"finalPrompt": "pig --v 6.1",
"finalZhPrompt": ""
}
}
修改于 2025-04-17 06:10:18