Query: Fetch Task by ID List
Overview
- Method:
POST - Path:
/mj/task/list-by-condition - Content-Type:
application/json
Authentication
- Use HTTP Bearer Token, Example:
Authorization: Bearer sk-xxxxx
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array[string] | Yes | List of task IDs |
Request Example
json
{
"ids": [
"1725018853016218",
"1725017986212425"
]
}curl
bash
curl -X POST "https://api.gpt.ge/mj/task/list-by-condition" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-xxxx" \
-d '{"ids":["1725018853016218","1725017986212425"]}'Response Example (200)
json
[{
"id": "1724957502830765",
"action": "IMAGINE",
"customId": "",
"botType": "",
"prompt": "a white dog",
"promptEn": "a white dog",
"description": "Submit success",
"state": "",
"submitTime": 1724957502830,
"startTime": 1724957503801,
"finishTime": 1724957529477,
"imageUrl": "http://localhost:3001/mj/image/1724957502830765",
"status": "SUCCESS",
"progress": "100%",
"failReason": "",
"buttons": [
{"customId":"MJ::JOB::upsample::1::7ca4f5b2-d6a0-4c44-8ba9-5635bf116ec3","emoji":"","label":"U1","type":2,"style":2}
],
"maskBase64": "",
"properties": {"finalPrompt": "a white dog", "finalZhPrompt": ""}
}]