POST /mj/task/list-by-condition は、フィルター条件で Midjourney タスクを一覧取得し、1 件または複数のジョブのステータス、進捗、結果を取得します。
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
}
]ホットパスでは単一タスクのポーリングを使う
注目すべき task を追跡する
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
}
]