POST request, then use GET requests to retrieve its latest status and result.
Task response structure
All asynchronous task responses follow the structure below:Task Information Object
Task Information object
Task Result
The corresponding JSON structure is as follows:Create a task
MuleRouter integrates multiple model vendors. Some requests are synchronous or streaming, while others involve longer inference cycles. To improve the developer experience, we expose these as asynchronous tasks. Create an asynchronous task viaPOST /vendors/dummy/v1/videos/generation.
You will receive a response similar to the following:
Retrieve task status and result
In the above example, the task ID is123e4567-e89b-12d3-a456-426614174000.
To retrieve the latest status and result for the task ID.
Use GET /vendors/dummy/v1/videos/generation/123e4567-e89b-12d3-a456-426614174000.
For example, when the task status is completed, you may receive a response like the following: