Skip to main content
GET
Get Generation Task

Overview

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

Task Status

Response

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

Example Responses

Completed Task

Pending Task

Processing Task

Failed Task

Polling Guidelines

For asynchronous task processing:
  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) for long-running tasks
  4. Exponential Backoff: Consider increasing poll intervals for longer tasks

Error Handling

If the task fails, check the error object in task_info for details:
  • code: Numeric error code identifying the error type
  • title: Brief error description
  • detail: Detailed explanation of what went wrong
Common error scenarios:
  • Invalid or prohibited content in prompt
  • Image file size exceeds limit
  • Unsupported image format
  • Invalid resolution parameters

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)