Retrieve task status and output

Retrieves the current status and output of an asynchronous generation task by its unique identifier. Poll this endpoint until the task status indicates completion (SUCCEEDED or FAILED). When a task succeeds, the response includes output URLs linking to the generated media.