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 succeeded, you may receive a response like the following:
Failed tasks
If a task finishes withstatus: "failed", the response includes an error object describing what went wrong. The HTTP status of the GET itself is still 200 — the lookup succeeded, the task it describes did not.
error_code is the authoritative signal for what went wrong. The most common codes for failed async tasks are:
3001–3005: the upstream model provider could not complete the task.4002,4008: a MuleRouter-side error occurred while running the task.
Task lifecycle
A task only ever leaves
queued / running once — once it is succeeded or failed, it stays in that state.

