cURL - Query task result
Query task status and results.
Poll this endpoint with the returned
Polling strategy
Poll this endpoint with the returned task_id. We recommend polling every 5-10 seconds.
Important notes
- URL expiration: Image URLs expire in 24 hours. Download promptly.
- Task status flow:
PENDING→RUNNING→SUCCEEDEDorFAILED. - Other statuses:
CANCELED(task canceled),UNKNOWN(invalid or expired task ID). - Task ID validity: Task IDs are valid for 24 hours. After the task ID expires, the status and results cannot be queried.
- Avoid duplicate tasks: Use polling to retrieve results. Do not resubmit requests.
Authorizations
string
header
required
DashScope API Key. Create one in the Qwen Cloud console.
Path Parameters
string
required
Task identifier returned by the async task creation endpoint.