Skip to content

Query: Fetch Task by ID

Overview

  • Method: GET
  • Path: /mj/task/{id}/fetch

Authentication

  • Use HTTP Bearer Token, Example: Authorization: Bearer sk-xxxxx

Path Parameters

ParameterTypeRequiredDescription
idstringYesTask ID

Request Example

bash
curl -X GET "https://api.gpt.ge/mj/task/1724963337114767/fetch" \
  -H "Authorization: Bearer sk-xxxx"

Response Example (200)

json
{
  "id": "1724963337114767",
  "action": "IMAGINE",
  "customId": "",
  "botType": "",
  "prompt": "a black dog flying",
  "promptEn": "a black dog flying",
  "description": "Submit success",
  "state": "",
  "submitTime": 1724963337114,
  "startTime": 1724963338763,
  "finishTime": 1724963365565,
  "imageUrl": "http://localhost:3001/mj/image/1724963337114767",
  "status": "SUCCESS",
  "progress": "100%",
  "failReason": "",
  "buttons": [
    {"customId":"MJ::JOB::upsample::1::e1a4d7e8-8292-412c-aab0-fce932e90479","emoji":"","label":"U1","type":2,"style":2}
  ],
  "maskBase64": "",
  "properties": {"finalPrompt":"a black dog flying","finalZhPrompt":""}
}