Fetch task by id
Developing
Based on the ID generated by interfaces such as Imagine, use it to query and obtain the final task return image result
Request
Provide your bearer token in the Authorization header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Example:Bearer {{YOUR_API_KEY}}
Request samples
curl --location --request GET '/mj/task//fetch' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}'
Responses
application/json buttons
array [object {5}]
required{
"action": "IMAGINE",
"buttons": [
{
"customId": "string",
"emoji": "string",
"label": "string",
"style": 0,
"type": 0
}
],
"description": "string",
"failReason": "string",
"finishTime": 0,
"id": "string",
"imageUrl": "string",
"progress": "string",
"prompt": "string",
"promptEn": "string",
"properties": {},
"startTime": 0,
"state": "string",
"status": "NOT_START",
"submitTime": 0
}
Modified at 2025-04-22 14:50:25