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

> ## Agent Instructions
> Send API requests to https://api.ttapi.io with the TT-API-KEY header. Midjourney account hosting uses https://hold.ttapi.io. Claude Code uses https://cc.ttapi.io.
> Most generation endpoints are asynchronous. The submit response returns a job id. Poll that product's fetch endpoint, or pass a webhook on the submit request. A fetch call does not start a new generation.
> 1 USD = 100 quota. Check the pricing page for that product before estimating cost.
> This file lists the English docs. Follow every /_llms/ link recursively for the API reference, Chinese, and Russian. Open a page's .md URL for the endpoint schema.

# Продление видео

> Продление видео. Продление и склейка нескольких референсных видео.только Seedance 2.5 поддерживается。Все 4 модели. Отправьте асинхронную задачу ивернуть id，используйте эндпоинт для получения результата。

Эндпоинт продление видео **Seedance API генерации видео**. Продление и склейка нескольких референсных видео. Все 4 модели. Отправьте асинхронную задачу и верните id.

**Использование**: Включите text и несколько video\_url (role=reference\_video) в content, установите omni\_reference\_task\_type: "extend". ratio = adaptive.


## OpenAPI

````yaml openapi/ru/seedance-extend-video.json POST /sd/api/v3/contents/generations/tasks
openapi: 3.1.0
info:
  title: Seedance API генерации видео (Продление видео)
  version: 1.0.0
  description: Продление и склейка референсных видео.
servers:
  - url: https://api.ttapi.io
security: []
paths:
  /sd/api/v3/contents/generations/tasks:
    post:
      description: >-
        Продление видео. Продление и склейка нескольких референсных видео.только
        Seedance 2.5 поддерживается。Все 4 модели. Отправьте асинхронную задачу
        ивернуть id，используйте эндпоинт для получения результата。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRequest'
            example:
              model: doubao-seedance-2-5-260628
              content:
                - type: text
                  text: Продолжить продвижение вперёд
                - type: video_url
                  video_url:
                    url: https://example.com/input.mp4
                  role: reference_video
              omni_reference_task_type: extend
              ratio: adaptive
              duration: -1
              generate_audio: true
              output_format: mov
              watermark: true
      responses:
        '200':
          description: Задача успешно отправлена
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: ID задачи
                example:
                  id: cgt-20261021120000-xxxxx
                required:
                  - id
      security:
        - CustomApiKey: []
components:
  schemas:
    CreateRequest:
      type: object
      properties:
        model:
          type: string
          enum:
            - doubao-seedance-2-5-260628
            - doubao-seedance-2-0-260128
            - doubao-seedance-2-0-fast-260128
            - doubao-seedance-2-0-mini-260615
          description: ID модели
        content:
          type: array
          items:
            $ref: '#/components/schemas/ContentItem'
          description: >-
            Список входного контента. Должен содержать хотя бы один video_url
            (reference_video)
        omni_reference_task_type:
          type: string
          enum:
            - extend
          description: Тип задачи, фиксированное значение extend (продление видео)
        ratio:
          type: string
          enum:
            - adaptive
          description: Соотношение сторон видео, должно быть adaptive
        duration:
          type: integer
          default: -1
          description: Длительность видео (сек). Диапазон [4, 30] или -1 (умный выбор)
        generate_audio:
          type: boolean
          default: true
          description: Генерировать синхронизированный звук
        output_format:
          type: string
          enum:
            - mp4
            - mov
          default: mp4
          description: Формат вывода。mov рекомендуется длявидеопродлениесценарий
        watermark:
          type: boolean
          default: false
          description: Добавить водяной знак
        return_last_frame:
          type: boolean
          default: false
          description: Вернуть изображение последнего кадра
        callback_url:
          type: string
          description: URL обратного вызова
        execution_expires_after:
          type: integer
          default: 172800
          description: Тайм-аут задачи (сек). Диапазон [3600, 259200]
        priority:
          type: integer
          default: 0
          description: Приоритет выполнения. Диапазон [0, 9]
        safety_identifier:
          type: string
          description: Идентификатор конечного пользователя, макс. 64 символа
        tools:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
                enum:
                  - web_search
          description: Конфигурация инструментов
        service_tier:
          type: string
          enum:
            - default
          default: default
          description: Уровень обслуживания
      required:
        - model
        - content
        - omni_reference_task_type
        - ratio
    ContentItem:
      type: object
      description: Элемент входного контента
      oneOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - text
            text:
              type: string
              description: Инструкция продления
          required:
            - type
            - text
        - type: object
          properties:
            type:
              type: string
              enum:
                - video_url
            video_url:
              type: object
              properties:
                url:
                  type: string
                  description: >-
                    URL видео для продления. Формат: mp4/mov, длительность [2,
                    30]с, макс. 10 клипов, общая ≤ 30с
            role:
              type: string
              enum:
                - reference_video
              description: Фиксированное значение reference_video
          required:
            - type
            - video_url
            - role
  securitySchemes:
    CustomApiKey:
      type: apiKey
      in: header
      name: TT-API-KEY
      description: >-
        Получите API-ключ в <a href='https://dashboard.ttapi.io'
        target='_blank'>панели TTAPI</a>.

````

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