Skip to main content
GET
/
vendors
/
alibaba
/
v1
/
qwen-image-max
/
generation
/
{task_id}
Get Generation Task
curl --request GET \
  --url https://api.mulerouter.ai/vendors/alibaba/v1/qwen-image-max/generation/{task_id} \
  --header 'Authorization: Bearer <token>'
{
  "task_info": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "completed",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "images": [
    "<string>"
  ]
}

Overview

Retrieve the status and result of a qwen-image-max generation task.

Task Status

StatusDescription
pendingTask is waiting to be processed
processingTask is currently being processed
completedTask completed successfully
failedTask failed with an error

Response

When the task is completed, the response will include the generated image URL in the images array. The URL is valid for 24 hours.

Example Responses

Completed Task

{
  "task_info": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "status": "completed",
    "created_at": "2025-02-09T10:30:00Z",
    "updated_at": "2025-02-09T10:30:45Z"
  },
  "images": [
    "https://example.com/generated-image.jpg"
  ]
}

Polling Guidelines

  1. Initial Wait: Wait at least 2-3 seconds before the first poll
  2. Poll Interval: Poll every 2-3 seconds for pending or processing status
  3. Timeout: Consider implementing a timeout (e.g., 5 minutes)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

task_id
string<uuid>
required

Response

Task result

task_info
object
images
string<uri>[]

Generated image URLs (only present when status is success)

URL of the generated image (valid for 24 hours)