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

# Wan 2.7 I2V

> [Core Function] Wan 2.7 I2V is Alibaba's flagship multimodal image-to-video model. [Strengths] It supports multimodal input (text, image, audio, video) for first-frame, start-and-end-frame (FL2V), and video continuation tasks. [Best For] Highly recommended for: complex image animation, cinematic transitions, and video extension workflows. [Limitations] Do NOT use this model if you only need a quick, simple animation where HappyHorse might be faster. [Routing] Use this model by default for complex image-to-video or video continuation tasks.



## OpenAPI

````yaml /model-api/alibaba/alibaba-i2v.json post /alibaba/wan2.7-i2v
openapi: 3.1.0
info:
  description: The image-to-video models API from Alibaba.
  version: 1.0.0
  contact:
    name: Modellix Support
    email: support@modellix.ai
  title: Alibaba Image-to-Video Models API
servers:
  - url: https://api.modellix.ai/api/v1
    description: The image-to-video models API from Alibaba.
security:
  - bearerAuth: []
paths:
  /alibaba/wan2.7-i2v:
    post:
      summary: Wan 2.7 I2V
      description: >-
        [Core Function] Wan 2.7 I2V is Alibaba's flagship multimodal
        image-to-video model. [Strengths] It supports multimodal input (text,
        image, audio, video) for first-frame, start-and-end-frame (FL2V), and
        video continuation tasks. [Best For] Highly recommended for: complex
        image animation, cinematic transitions, and video extension workflows.
        [Limitations] Do NOT use this model if you only need a quick, simple
        animation where HappyHorse might be faster. [Routing] Use this model by
        default for complex image-to-video or video continuation tasks.
      operationId: wan27I2vAsync
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Wan27I2vRequest'
            examples:
              first_frame_mode:
                summary: First-frame generation
                value:
                  first_frame: https://example.com/first.png
                  prompt: 让画面中的人物自然转身并微笑
                  resolution: 1080P
                  duration: 5
              first_last_frame_mode:
                summary: First-last-frame generation with audio
                value:
                  first_frame: https://example.com/first.png
                  last_frame: https://example.com/last.png
                  driving_audio: https://example.com/voice.mp3
                  prompt: 从首帧平滑过渡到尾帧并与音频节奏同步
                  resolution: 720P
                  duration: 10
                  prompt_extend: true
              continuation_mode:
                summary: Video continuation mode
                value:
                  first_clip: https://example.com/input-clip.mp4
                  last_frame: https://example.com/target-last-frame.png
                  prompt: 续写视频并在结尾过渡到尾帧画面
                  duration: 15
      responses:
        '200':
          description: Task submitted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncTaskResponse'
components:
  schemas:
    Wan27I2vRequest:
      type: object
      description: >-
        Flattened media parameters for Wan 2.7 I2V. Task mode must be one of:
        first_frame, first_frame+last_frame, first_frame+driving_audio,
        first_frame+last_frame+driving_audio, first_clip, first_clip+last_frame.
      required: []
      properties:
        prompt:
          type: string
          description: Optional text prompt, max 5000 chars.
          maxLength: 5000
        negative_prompt:
          type: string
          description: Optional negative prompt, max 500 chars.
          maxLength: 500
        first_frame:
          type: string
          description: >-
            First frame image URL. Supports HTTP/HTTPS URL, OSS URL, or image
            base64 data URI.
          pattern: ^(https?://|oss://|data:image/)
          examples:
            - https://example.com/first.png
            - oss://dashscope-instant/example/first.png
            - >-
              data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==
        last_frame:
          type: string
          description: >-
            Optional last frame image URL. Supports HTTP/HTTPS URL, OSS URL, or
            image base64 data URI.
          pattern: ^(https?://|oss://|data:image/)
        driving_audio:
          type: string
          description: Optional driving audio URL (HTTP/HTTPS/OSS).
          pattern: ^(https?://|oss://)
        first_clip:
          type: string
          description: Optional first clip URL for continuation mode (HTTP/HTTPS/OSS).
          pattern: ^(https?://|oss://)
        resolution:
          type: string
          description: Output resolution tier.
          enum:
            - 720P
            - 1080P
          default: 1080P
        duration:
          type: integer
          description: Video duration in seconds.
          minimum: 2
          maximum: 15
          default: 5
        prompt_extend:
          type: boolean
          description: Enable prompt intelligent rewrite.
          default: true
        seed:
          type: integer
          description: Random seed for reproducibility.
          minimum: 0
          maximum: 2147483647
      anyOf:
        - required:
            - first_frame
        - required:
            - first_clip
    AsyncTaskResponse:
      type: object
      required:
        - code
        - message
        - data
      properties:
        code:
          type: integer
          description: Response code, 0 indicates success
          example: 0
        message:
          type: string
          description: Response message
          example: success
        data:
          type: object
          required:
            - status
            - task_id
            - model_id
          properties:
            status:
              type: string
              enum:
                - pending
                - processing
              description: Task status
              example: pending
            task_id:
              type: string
              description: Unique task identifier
              example: task-abc123
            model_id:
              type: string
              description: Model ID
              example: model-123
            get_result:
              type: object
              description: API information to query the task result
              properties:
                method:
                  type: string
                  description: HTTP method
                  example: GET
                url:
                  type: string
                  description: Full URL to query the task result
                  example: https://api.modellix.ai/api/v1/tasks/task-abc123
          description: Detailed data about the submitted asynchronous task.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API Key authentication. Format: `Bearer YOUR_API_KEY`.'

````