> ## Documentation Index
> Fetch the complete documentation index at: https://mulerouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Wan 2.6 Image-To-Video Task

> Retrieve the status and result of a generation task

## Overview

Retrieve the status and result of a wan2.6-i2v generation task.

## Task Status

| Status       | Description                       |
| ------------ | --------------------------------- |
| `pending`    | Task is waiting to be processed   |
| `processing` | Task is currently being processed |
| `completed`  | Task completed successfully       |
| `failed`     | Task failed with an error         |

## Response

When the task is completed, the response will include the generated video URLs in the `videos` array.

## Example Response

### Completed Task

```json theme={null}
{
  "task_info": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "status": "completed",
    "created_at": "2025-01-15T10:30:00Z",
    "updated_at": "2025-01-15T10:33:00Z"
  },
  "videos": [
    "https://example.com/generated-video.mp4"
  ]
}
```

### Failed Task

```json theme={null}
{
  "task_info": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "status": "failed",
    "created_at": "2025-01-15T10:30:00Z",
    "updated_at": "2025-01-15T10:30:15Z",
    "error": {
      "code": 400,
      "title": "Invalid Request",
      "detail": "The input image format is not supported"
    }
  }
}
```


## OpenAPI

````yaml api-reference/endpoint/alibaba/wan2.6-i2v/wan2.6-i2v.yaml GET /vendors/alibaba/v1/wan2.6-i2v/generation/{task_id}
openapi: 3.1.0
info:
  title: Wan2.6-i2v API
  description: Wan2.6 Image-to-Video Model API
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.mulerouter.ai/
security:
  - bearerAuth: []
paths:
  /vendors/alibaba/v1/wan2.6-i2v/generation/{task_id}:
    get:
      summary: Get Generation Task
      description: Retrieve the status and result of a generation task
      operationId: wan26_i2v_generation_get
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Task result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Wan26I2VResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    Wan26I2VResponse:
      type: object
      additionalProperties: true
      properties:
        task_info:
          $ref: '#/components/schemas/TaskInfoResponse'
        videos:
          type: array
          description: Generated video URLs (only present when status is success)
          items:
            type: string
            format: uri
    ErrorResponse:
      type: object
      additionalProperties: true
      properties:
        task_info:
          $ref: '#/components/schemas/TaskInfoErrorResponse'
    TaskInfoResponse:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
          description: UUID of the task
          format: uuid
        status:
          type: string
          description: Task status
          enum:
            - completed
            - pending
            - processing
            - failed
        created_at:
          type: string
          description: Task creation timestamp (ISO 8601)
          format: date-time
        updated_at:
          type: string
          description: Task last update timestamp (ISO 8601)
          format: date-time
      required:
        - id
        - status
        - created_at
        - updated_at
    TaskInfoErrorResponse:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
          description: UUID of the task
          format: uuid
        status:
          type: string
          description: Task status (always failed for error responses)
          enum:
            - failed
        created_at:
          type: string
          description: Task creation timestamp (ISO 8601)
          format: date-time
        updated_at:
          type: string
          description: Task last update timestamp (ISO 8601)
          format: date-time
        error:
          $ref: '#/components/schemas/TaskInfoErrorObject'
      required:
        - id
        - status
        - created_at
        - updated_at
        - error
    TaskInfoErrorObject:
      type: object
      additionalProperties: true
      properties:
        code:
          type: integer
          description: MuleRouter Error code
          example: 3001
        title:
          type: string
          description: MuleRouter Error title
          example: Invalid Request
        detail:
          type: string
          description: MuleRouter Error detail
          example: The prompt contains prohibited content
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````