cURL - Query task result
Query task status and results.
Polling strategy
- Submit a task via Create task to receive a
task_id. - Poll every 10 seconds until
task_statusisSUCCEEDEDorFAILED. - On success,
resultscontains image download URLs.
Important notes
- URL expiration: Image URLs expire in 24 hours. Download promptly.
- Task status flow:
PENDING->RUNNING->SUCCEEDEDorFAILED. - 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.
- Partial failures: When
n > 1, task status isSUCCEEDEDif at least one image succeeds. Failed images include error details inresults. Only successful images count toward usage.
Authorizations
string
header
required
DashScope API Key. Create one in the Qwen Cloud console.
Path Parameters
string
required
Task identifier returned by the image editing creation endpoint.