> ## 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 /media-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:
      description: >-
        Wan 2.7 image-to-video. Choose **one** option — Frame and Continuation
        fields are mutually exclusive. `prompt` is optional. Do not mix
        `first_frame` with `first_clip`. `driving_audio` is only valid with
        first-frame modes.
      oneOf:
        - $ref: '#/components/schemas/Wan27I2vFrameOption'
          title: Option 1 — Frame mode
          description: >-
            First-frame or first-to-last-frame animation, with optional driving
            audio.
        - $ref: '#/components/schemas/Wan27I2vClipOption'
          title: Option 2 — Continuation mode
          description: Video continuation from a first clip, with optional last frame.
    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.
    Wan27I2vFrameOption:
      type: object
      description: First-frame or first-to-last-frame animation. Do not pass `first_clip`.
      required:
        - first_frame
      properties:
        first_frame:
          type: string
          description: >-
            Required. First frame image URL. Supports HTTP/HTTPS URL, OSS URL,
            or image base64 data URI. Do not pass first_clip.
          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. Requires first_frame. 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). Do not pass with
            first_clip.
          pattern: ^(https?://|oss://)
        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
        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
    Wan27I2vClipOption:
      type: object
      description: Video continuation. Do not pass `first_frame` or `driving_audio`.
      required:
        - first_clip
      properties:
        first_clip:
          type: string
          description: >-
            Required. First clip URL for continuation mode (HTTP/HTTPS/OSS). Do
            not pass first_frame or driving_audio.
          pattern: ^(https?://|oss://)
        last_frame:
          type: string
          description: >-
            Optional last frame image URL. Requires first_clip. Supports
            HTTP/HTTPS URL, OSS URL, or image base64 data URI.
          pattern: ^(https?://|oss://|data:image/)
        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
        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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API Key authentication. Format: `Bearer YOUR_API_KEY`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.