> ## 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.2 Image-To-Video Flash Generation

> Generate videos from images using the wan2.2-i2v-flash model. Fast version with 50% speed improvement.

<Note>
  This API supports Alibaba Tongyi Wanxiang (Wan2) video generation models. Please refer to Alibaba Cloud's [official documentation](https://www.alibabacloud.com/help/en/model-studio/text-to-video-api-reference) for more details.
</Note>

## Overview

Generate videos from images using the wan2.2-i2v-flash model. This is the fast version with 50% speed improvement compared to the Plus version.

## Key Features

* Fast image-to-video generation (50% faster)
* 480P/720P resolution options
* Fixed 5s duration
* 30fps output
* Optional video effect templates

## Image Requirements

| Property       | Requirement                                   |
| -------------- | --------------------------------------------- |
| **Formats**    | JPEG, JPG, PNG (no transparency), BMP, WEBP   |
| **Dimensions** | \[360, 2000] pixels for both width and height |
| **File Size**  | Max 10MB                                      |
| **Input**      | Public URL or Base64 encoded data             |

## Example Requests

### Basic Image-to-Video

```json theme={null}
{
  "prompt": "Character turns head and smiles",
  "image": "https://example.com/portrait.jpg",
  "resolution": "720P",
  "duration": 5
}
```

### With Video Effect Template

```json theme={null}
{
  "prompt": "Gentle motion, camera slowly pans right",
  "image": "https://example.com/scene.jpg",
  "template": "solaron",
  "resolution": "720P",
  "duration": 5
}
```

### With Base64 Image

```json theme={null}
{
  "prompt": "Subject starts moving slowly",
  "image": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
  "resolution": "720P",
  "duration": 5
}
```

## Parameters

### template

* **Optional**: Yes
* **Description**: Apply a video effect template
* **Use case**: Create specific visual effects

### duration

* **Fixed**: 5 seconds
* **FPS**: 30fps


## OpenAPI

````yaml api-reference/endpoint/alibaba/wan2.2-i2v-flash/wan2.2-i2v-flash.yaml POST /vendors/alibaba/v1/wan2.2-i2v-flash/generation
openapi: 3.1.0
info:
  title: Wan2.2-i2v-flash API
  description: Wan2.2 Image-to-Video Flash Model API
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.mulerouter.ai/
security:
  - bearerAuth: []
paths:
  /vendors/alibaba/v1/wan2.2-i2v-flash/generation:
    post:
      summary: Create Generation Task
      description: >-
        Generate videos from images using the wan2.2-i2v-flash model. Fast
        version with 50% speed improvement.
      operationId: wan22_i2v_flash_generation
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Wan22I2VFlashRequest'
        required: true
      responses:
        '202':
          description: Accepted - Task created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskCreatedResponse'
components:
  schemas:
    Wan22I2VFlashRequest:
      type: object
      additionalProperties: false
      properties:
        prompt:
          type: string
          description: Motion/story description (max 800 characters).
          maxLength: 800
        negative_prompt:
          anyOf:
            - type: string
            - type: 'null'
          description: Negative prompt describing unwanted content (max 500 characters).
          maxLength: 500
        image:
          type: string
          description: >-
            First-frame image (URL or Base64). Supported formats:
            JPEG/JPG/PNG/BMP/WEBP, 360-2000px, ≤10MB.
        resolution:
          type: string
          description: |-
            Output resolution tier:
            - 480P
            - 720P
          enum:
            - 480P
            - 720P
          default: 720P
        duration:
          type: integer
          description: Video duration in seconds (30 fps). Fixed at 5 seconds.
          enum:
            - 5
        prompt_extend:
          type: boolean
          description: Enable intelligent prompt rewriting.
          default: true
        seed:
          type: integer
          description: Random seed [0, 2147483647].
          minimum: 0
          maximum: 2147483647
        safety_filter:
          anyOf:
            - type: boolean
            - type: 'null'
          description: >-
            Enable content safety filter. Defaults to true. Set to false to
            disable content safety inspection.
          default: true
      required:
        - prompt
        - image
    TaskCreatedResponse:
      type: object
      additionalProperties: true
      properties:
        task_info:
          $ref: '#/components/schemas/TaskInfoCreated'
    TaskInfoCreated:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
          description: UUID of the task
          format: uuid
        status:
          type: string
          description: Task status (pending when created)
          enum:
            - pending
        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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````