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

# Seedance 2.5 Video Edit

> - Video editing on an input video — replace subjects, add/remove objects, restyle or repaint regions
- Prompt must state the editing intent (e.g. "Edit the video: remove the background music of @video1")
- Input the video to edit (required) + optional reference images (0–30) + reference videos (up to 10 in total) + reference audio (0–10)
- **Now supports AIGC realistic human materials**
- Asynchronous processing mode, use the returned task ID to [query status](/en/api-manual/task-management/get-task-detail)
- Generated video links are valid for 24 hours, please save them promptly



## OpenAPI

````yaml en/api-manual/video-series/seedance2.5/seedance-2.5-video-edit.json POST /v1/videos/generations
openapi: 3.1.0
info:
  title: Seedance 2.5 Video Edit API
  description: >-
    Seedance 2.5 video editing API, edits an input video — replace subjects,
    add/remove objects, restyle or repaint regions
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.evolink.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Video Generation
    description: AI video generation endpoints
paths:
  /v1/videos/generations:
    post:
      tags:
        - Video Generation
      summary: Seedance 2.5 Video Edit
      description: >-
        - Video editing on an input video — replace subjects, add/remove
        objects, restyle or repaint regions

        - Prompt must state the editing intent (e.g. "Edit the video: remove the
        background music of @video1")

        - Input the video to edit (required) + optional reference images (0–30)
        + reference videos (up to 10 in total) + reference audio (0–10)

        - **Now supports AIGC realistic human materials**

        - Asynchronous processing mode, use the returned task ID to [query
        status](/en/api-manual/task-management/get-task-detail)

        - Generated video links are valid for 24 hours, please save them
        promptly
      operationId: createSeedance25VideoEdit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoGenerationRequest'
            examples:
              remove_objects:
                summary: Edit video (remove objects)
                value:
                  model: seedance-2.5-video-edit
                  prompt: >-
                    Edit the video: remove all passers-by in @video1, keep only
                    the main character
                  video_urls:
                    - https://example.com/original.mp4
                  quality: 720p
                  generate_audio: true
                  content_filter: true
              replace_subject:
                summary: Edit video (replace element with image reference)
                value:
                  model: seedance-2.5-video-edit
                  prompt: >-
                    Edit the video: replace the perfume in the gift box in
                    @video1 with the face cream in @image1, keep the camera
                    movement unchanged
                  image_urls:
                    - https://example.com/cream.jpg
                  video_urls:
                    - https://example.com/original.mp4
                  duration: -1
      responses:
        '200':
          description: Video generation task created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoGenerationResponse'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: invalid_parameter
                  message: Invalid request parameters
                  type: invalid_request_error
        '401':
          description: Unauthenticated, token invalid or expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: unauthorized
                  message: Invalid or expired token
                  type: authentication_error
        '402':
          description: Insufficient quota, top-up required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: insufficient_quota
                  message: Insufficient quota. Please top up your account.
                  type: insufficient_quota
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: model_access_denied
                  message: 'Token does not have access to model: seedance-2.5-video-edit'
                  type: invalid_request_error
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: rate_limit_exceeded
                  message: Too many requests, please try again later
                  type: rate_limit_error
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: internal_error
                  message: Internal server error
                  type: api_error
components:
  schemas:
    VideoGenerationRequest:
      type: object
      required:
        - model
        - prompt
        - video_urls
      properties:
        model:
          type: string
          description: Video generation model name
          enum:
            - seedance-2.5-video-edit
          default: seedance-2.5-video-edit
          example: seedance-2.5-video-edit
        prompt:
          type: string
          description: >-
            Text prompt describing the desired edit. Supports both Chinese and
            English, recommended no more than 500 characters for Chinese.
            Maximum prompt length: 10000 tokens


            **Details:**

            - The prompt must state the editing intent, e.g., "Edit the video:
            remove the background music of @video1"

            - You can use natural language to specify the purpose of each
            material, e.g., "replace the character in @video1 with the person in
            @image1"

            - The model will automatically understand the correspondence between
            material numbers and their intended uses
          example: >-
            Edit the video: remove all passers-by in @video1, keep only the main
            character
        video_urls:
          type: array
          description: >-
            Input video URL array, **required; 1–10 videos**


            **Requirement:** At least 1 video required — the video to edit. The
            first video is the video being edited; additional videos serve as
            references.


            **Role description:**


            | Media Type | Role | Typical Usage |

            |---------|------|----------|

            | Video | `reference_video` | The video to edit (first video),
            camera movement or motion reference (additional videos) |


            **Video requirements:**

            - Supported formats: `.mp4`, `.mov`

            - Resolution: 480p, 720p, 1080p, 4K

            - Duration per video: `4` ~ `30` seconds (the first video is the
            edit target), max 10 videos, total duration of all videos ≤ `30`
            seconds

            - Aspect ratio (width/height): `0.4` ~ `2.5`

            - Width/height pixels: `300` ~ `6000` px

            - Frame pixels (width × height): `409,600` ~ `8,295,044` (e.g.,
            640×640 ~ 3326×2494)

            - Max size per video: `200MB`

            - Frame rate: `24` ~ `60` FPS

            - Total request body size must not exceed `64MB`, do not use Base64
            encoding

            - Specific codec, resolution, and other media validity checks are
            performed by the upstream model

            - Using video references will increase costs (input video duration
            is counted in billing)

            - Video URLs must be directly accessible by the server
          items:
            type: string
            format: uri
          minItems: 1
          maxItems: 10
          example:
            - https://example.com/original.mp4
        image_urls:
          type: array
          description: >-
            Reference image URL array, **optional; 1–30 images when provided**


            **Requirement:** `video_urls` is required for this model; images are
            optional supplementary references.


            **Role description:**


            | Media Type | Role | Typical Usage |

            |---------|------|----------|

            | Image | `reference_image` | Style reference, product image,
            replacement subject (specified via prompt) |


            **Image requirements:**

            - Supported formats: `.jpeg`, `.png`, `.webp`

            - Aspect ratio (width/height): `0.4` ~ `2.5`

            - Width/height pixels: `300` ~ `6000` px

            - Max size per image: `30MB`

            - Total request body size must not exceed `64MB`, do not use Base64
            encoding

            - Image URLs must be directly accessible by the server
          items:
            type: string
            format: uri
          minItems: 1
          maxItems: 30
          example:
            - https://example.com/ref1.jpg
            - https://example.com/ref2.jpg
        audio_urls:
          type: array
          description: >-
            Reference audio URL array, **optional; 1–10 clips when provided**


            **Requirement:** `video_urls` is required for this model; audio
            clips are optional supplementary references.


            **Role description:**


            | Media Type | Role | Typical Usage |

            |---------|------|----------|

            | Audio | `reference_audio` | Background music, sound effects,
            voice/dialogue reference |


            **Audio requirements:**

            - Supported formats: `.wav`, `.mp3`

            - Duration per clip: `2` ~ `30` seconds, max 10 clips, total
            duration of all audio ≤ `30` seconds

            - Max size per clip: `15MB`

            - Total request body size must not exceed `64MB`, do not use Base64
            encoding

            - Audio URLs must be directly accessible by the server
          items:
            type: string
            format: uri
          minItems: 1
          maxItems: 10
          example:
            - https://example.com/bgm.mp3
        duration:
          type: integer
          description: >-
            Output video duration (seconds), defaults to `-1`


            **Details:**

            - Only `-1` is supported: the output length follows the input video
            (may be up to 0.4s shorter)

            - Custom durations are rejected

            - Duration directly affects billing
          enum:
            - -1
          default: -1
          example: -1
        quality:
          type: string
          description: |-
            Video resolution, defaults to `720p`

            **Options:**
            - `480p`: Lower clarity, lower cost
            - `720p`: Standard clarity, this is the default
          enum:
            - 480p
            - 720p
          default: 720p
          example: 720p
        aspect_ratio:
          type: string
          description: >-
            Video aspect ratio, defaults to `adaptive`


            **Options:**

            - `adaptive`: the output ratio follows the first input video, the
            only value this model accepts

            - Fixed ratios such as `16:9` or `9:16` are rejected
          enum:
            - adaptive
          default: adaptive
          example: adaptive
        generate_audio:
          type: boolean
          description: |-
            Whether to generate synchronized audio, defaults to `true`

            **Options:**
            - `true`: Video includes synchronized audio at no additional charge
            - `false`: Output silent video
          default: true
          example: true
        content_filter:
          type: boolean
          description: >-
            Content filter, enabled by default `true`


            **Options:**

            - `true`: Standard content safety check, this is the default

            - `false`: Relaxes content restrictions, billed at +10% (`1.1x`).
            Illegal and prohibited content is always enforced regardless of this
            setting
          default: true
          example: true
        output_format:
          type: string
          description: >-
            Output container format, defaults to `mp4`


            **Options:**

            - `mp4`: H.264 encoding with the best compatibility and standard
            color precision, this is the default

            - `mov`: H.264 + yuv444p chroma sampling + PCM audio for higher
            color fidelity, recommended for color grading, keying and
            compositing workflows. Browser inline playback may not support it;
            download and play with VLC / mpv / ffplay. No extra charge
          enum:
            - mp4
            - mov
          default: mp4
          example: mp4
        callback_url:
          type: string
          description: >-
            HTTPS callback URL for task completion


            **Callback timing:**

            - Triggered when the task is completed, failed, or cancelled

            - Sent after billing confirmation is complete


            **Security restrictions:**

            - Only HTTPS protocol is supported

            - Callbacks to private IP addresses are prohibited (127.0.0.1,
            10.x.x.x, 172.16-31.x.x, 192.168.x.x, etc.)

            - URL length must not exceed `2048` characters


            **Callback mechanism:**

            - Timeout: `10` seconds

            - Up to `3` retries after failure (at `1`/`2`/`4` seconds after
            failure respectively)

            - Callback response body format is consistent with the task query
            endpoint response format

            - A 2xx status code is considered successful; other status codes
            trigger retries
          format: uri
          example: https://your-domain.com/webhooks/video-task-completed
    VideoGenerationResponse:
      type: object
      properties:
        created:
          type: integer
          description: Task creation timestamp
          example: 1761313744
        id:
          type: string
          description: Task ID
          example: task-unified-1774857405-abc123
        model:
          type: string
          description: Actual model name used
          example: seedance-2.5-video-edit
        object:
          type: string
          enum:
            - video.generation.task
          description: Specific type of the task
        progress:
          type: integer
          description: Task progress percentage (0-100)
          minimum: 0
          maximum: 100
          example: 0
        status:
          type: string
          description: Task status
          enum:
            - pending
            - processing
            - completed
            - failed
          example: pending
        task_info:
          $ref: '#/components/schemas/VideoTaskInfo'
          description: Video task details
        type:
          type: string
          enum:
            - text
            - image
            - audio
            - video
          description: Output type of the task
          example: video
        usage:
          $ref: '#/components/schemas/VideoUsage'
          description: Usage and billing information
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code identifier
            message:
              type: string
              description: Error description message
            type:
              type: string
              description: Error type
    VideoTaskInfo:
      type: object
      properties:
        can_cancel:
          type: boolean
          description: Whether the task can be cancelled
          example: true
        estimated_time:
          type: integer
          description: Estimated completion time (seconds)
          minimum: 0
          example: 165
        video_duration:
          type: integer
          description: Video duration (seconds)
          example: 8
    VideoUsage:
      type: object
      description: Usage and billing information
      properties:
        billing_rule:
          type: string
          description: Billing rule
          enum:
            - per_call
            - per_token
            - per_second
          example: per_second
        credits_reserved:
          type: number
          description: Estimated credits consumed
          minimum: 0
          example: 50
        user_group:
          type: string
          description: User group category
          example: default
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        ##All endpoints require Bearer Token authentication##


        **Get API Key:**


        Visit the [API Key Management Page](https://evolink.ai/dashboard/keys)
        to obtain your API Key


        **Add to request header:**

        ```

        Authorization: Bearer YOUR_API_KEY

        ```

````