cURL
curl --request GET \ --url https://api.mulerouter.ai/vendors/alibaba/v1/wan2/image/generation/{task_id} \ --header 'Authorization: Bearer <token>'
{ "task_info": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "pending", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "error": { "code": 123, "title": "<string>", "detail": "<string>" } }, "images": [ "<string>" ] }
Retrieve the status and result of an image generation task
status
{ "task_info": { "id": "123e4567-e89b-12d3-a456-426614174000", "status": "completed", "created_at": "2025-09-21T00:00:00Z", "updated_at": "2025-09-21T00:00:30Z" }, "images": [ "https://mulerouter.muleusercontent.com/public/123e4567-e89b-12d3-a456-426614174000/image_0.jpg", "https://mulerouter.muleusercontent.com/public/123e4567-e89b-12d3-a456-426614174000/image_1.jpg" ] }
{ "task_info": { "id": "123e4567-e89b-12d3-a456-426614174000", "status": "failed", "created_at": "2025-09-21T00:00:00Z", "updated_at": "2025-09-21T00:00:15Z", "error": { "code": 3001, "title": "Task Execution Error", "detail": "Image generation failed: Invalid prompt content" } } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Task result
Show child attributes
UUID of the task
Task status
pending
processing
completed
failed
Task creation timestamp (ISO 8601)
Task last update timestamp (ISO 8601)
Error details (only when status is failed)
MuleRouter Error code
MuleRouter Error title
MuleRouter Error detail
URL of the generated image