POST /mj/task/list-by-condition 通过筛选条件列出 Midjourney 任务,用于获取一个或多个任务的状态,包括进度和结果。
curl --request POST \
--url https://api.cometapi.com/mj/task/list-by-condition \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"example"
]
}
'[
{
"action": "<string>",
"buttons": [
{
"customId": "<string>",
"emoji": "<string>",
"label": "<string>",
"style": 123,
"type": 123
}
],
"description": "<string>",
"failReason": "<string>",
"finishTime": 123,
"id": "<string>",
"imageUrl": "<string>",
"progress": "<string>",
"prompt": "<string>",
"promptEn": "<string>",
"properties": {},
"startTime": 123,
"state": "<string>",
"status": "<string>",
"submitTime": 123
}
]对热路径使用单任务轮询
继续跟进值得关注的任务
Bearer token authentication. Use your CometAPI key.
Array of Midjourney task ids to retrieve. Returns the current status and result for each.
curl --request POST \
--url https://api.cometapi.com/mj/task/list-by-condition \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"example"
]
}
'[
{
"action": "<string>",
"buttons": [
{
"customId": "<string>",
"emoji": "<string>",
"label": "<string>",
"style": 123,
"type": 123
}
],
"description": "<string>",
"failReason": "<string>",
"finishTime": 123,
"id": "<string>",
"imageUrl": "<string>",
"progress": "<string>",
"prompt": "<string>",
"promptEn": "<string>",
"properties": {},
"startTime": 123,
"state": "<string>",
"status": "<string>",
"submitTime": 123
}
]