> ## 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 Video Editing

> [Core Function] Wan 2.7 Video Editing is an instruction-based video modification model. [Strengths] It supports complex video editing tasks like content replacement using reference images, and replicating actions, effects, and camera movements. [Best For] Highly recommended for: modifying existing video footage, style transfer on videos, and targeted element replacement. [Limitations] Do NOT use this model to generate a brand new video from scratch; it requires an input video. [Routing] Use this model by default whenever a user wants to edit, alter, or restyle an existing video.



## OpenAPI

````yaml /model-api/alibaba/alibaba-v2v.json post /alibaba/wan2.7-videoedit
openapi: 3.1.0
info:
  description: The video-to-video models API from Alibaba.
  version: 1.0.0
  contact:
    name: Modellix Support
    email: support@modellix.ai
  title: Alibaba Video-to-Video Models API
servers:
  - url: https://api.modellix.ai/api/v1
    description: The video-to-video models API from Alibaba.
security:
  - bearerAuth: []
paths:
  /alibaba/wan2.7-videoedit:
    post:
      summary: Wan 2.7 Video Editing
      description: >-
        [Core Function] Wan 2.7 Video Editing is an instruction-based video
        modification model. [Strengths] It supports complex video editing tasks
        like content replacement using reference images, and replicating
        actions, effects, and camera movements. [Best For] Highly recommended
        for: modifying existing video footage, style transfer on videos, and
        targeted element replacement. [Limitations] Do NOT use this model to
        generate a brand new video from scratch; it requires an input video.
        [Routing] Use this model by default whenever a user wants to edit,
        alter, or restyle an existing video.
      operationId: wan27VideoEditAsync
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Wan27VideoEditRequest'
            examples:
              style_transfer:
                summary: Video style modification
                value:
                  prompt: Transform the entire scene into clay style
                  video_url: https://example.com/input.mp4
                  resolution: 720P
                  prompt_extend: true
              video_edit:
                summary: Video editing with reference image
                value:
                  prompt: Replace the girl's clothes with the clothes in the image
                  video_url: https://example.com/video.mp4
                  reference_images:
                    - https://example.com/clothes.png
                  resolution: 1080P
                  ratio: '16:9'
              advanced:
                summary: Advanced editing with multiple reference images
                value:
                  prompt: Transform the scene with reference styles
                  negative_prompt: blurry, low quality
                  video_url: https://example.com/video.mp4
                  reference_images:
                    - https://example.com/style1.jpg
                    - https://example.com/style2.jpg
                    - https://example.com/style3.jpg
                  resolution: 1080P
                  ratio: '9:16'
                  duration: 5
                  audio_setting: origin
                  seed: 123456
      responses:
        '200':
          description: Task submitted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncTaskResponse'
components:
  schemas:
    Wan27VideoEditRequest:
      type: object
      required:
        - video_url
      properties:
        prompt:
          type: string
          description: >-
            Text prompt describing desired video modifications (supports Chinese
            and English, up to 5000 characters)
          minLength: 1
          maxLength: 5000
          example: Transform the entire scene into clay style
        video_url:
          type: string
          format: uri
          description: Input video URL (HTTP/HTTPS/OSS) or Base64 encoded data (required)
          example: https://example.com/input.mp4
        reference_images:
          type: array
          description: >-
            Reference image URLs for style transfer (optional, max 4). Combined
            with video_url, the total media count must be ≤ 5
          maxItems: 4
          items:
            type: string
            format: uri
            example: https://example.com/style.jpg
          example:
            - https://example.com/style1.jpg
            - https://example.com/style2.jpg
        negative_prompt:
          type: string
          description: Negative prompt describing unwanted content
          maxLength: 500
          example: blurry, distorted, low quality
        resolution:
          type: string
          description: Video resolution tier
          enum:
            - 720P
            - 1080P
          default: 1080P
          example: 1080P
        ratio:
          type: string
          description: Video aspect ratio (defaults to input video ratio if not specified)
          enum:
            - '16:9'
            - '9:16'
            - '1:1'
            - '4:3'
            - '3:4'
          example: '16:9'
        duration:
          type: integer
          description: Video duration in seconds (2-10 = truncate to specified length)
          enum:
            - 2
            - 3
            - 4
            - 5
            - 6
            - 7
            - 8
            - 9
            - 10
          default: 5
          example: 5
        audio_setting:
          type: string
          description: >-
            Audio handling mode (auto: intelligent decision based on prompt,
            origin: preserve original audio)
          enum:
            - auto
            - origin
          default: auto
          example: auto
        prompt_extend:
          type: boolean
          description: >-
            Enable intelligent prompt rewriting (improves quality for short
            prompts but increases processing time)
          default: true
          example: true
        seed:
          type: integer
          description: >-
            Random seed for reproducibility (note: results may vary even with
            same seed)
          minimum: 0
          maximum: 2147483647
          example: 42
    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`.'

````