> ## 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.

# Видео со звуком - первый кадр

> Видео со звуком — первый кадр. Генерация видео со звуком из одного первого кадра и текстового промпта. Все 4 модели.

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

**Использование**: Включите `text`, `image_url` (role=first\_frame), опционально `audio_url` (role=reference\_audio), установите `generate_audio: true`. ratio = adaptive.


## OpenAPI

````yaml openapi/ru/seedance-audio-first-frame.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: >-
        Видео со звуком — первый кадр. Генерация видео со звуком из одного
        первого кадра и текстового промпта. Все 4 модели.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRequest'
            example:
              model: doubao-seedance-2-5-260628
              content:
                - type: text
                  text: Девушка гуляет по пляжу, бриз развевает её волосы
                - type: image_url
                  image_url:
                    url: https://example.com/first_frame.jpg
                  role: first_frame
              ratio: adaptive
              duration: 15
              generate_audio: true
              output_format: mp4
              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: >-
            Список входного контента. Должен содержать image_url (первый кадр),
            опционально text и audio_url
        resolution:
          type: string
          enum:
            - 480p
            - 720p
            - 1080p
          default: 720p
          description: 'Разрешение видео. Seedance 2.5: 480p, 720p, 1080p. По умолчанию 720p'
        ratio:
          type: string
          enum:
            - adaptive
          description: >-
            Соотношение сторон видео, поддерживается только adaptive
            (авто-соответствие первому кадру)
        duration:
          type: integer
          default: -1
          description: Длительность видео (сек). Диапазон [4, 30] или -1 (умный выбор)
        generate_audio:
          type: boolean
          default: true
          description: >-
            Генерировать синхронизированный звук. true=вокал/эффекты/музыка,
            false=без звука
        output_format:
          type: string
          enum:
            - mp4
            - mov
          default: mp4
          description: Формат вывода。только Seedance 2.5 поддерживается
        watermark:
          type: boolean
          default: false
          description: Добавить водяной знак
        return_last_frame:
          type: boolean
          default: false
          description: Вернуть изображение последнего кадра
        draft:
          type: boolean
          default: false
          description: Включить режим черновика. Только Seedance 2.5
        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
    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:
                - image_url
            image_url:
              type: object
              properties:
                url:
                  type: string
                  description: >-
                    первый кадрURL изображения / Base64. Форматы:
                    jpeg/png/webp/bmp/tiff/gif/heic/heif，Соотношение сторон
                    [0.4, 2.5]，размер < 30MB
            role:
              type: string
              enum:
                - first_frame
              description: >-
                Идентификатор первого кадра. Role = first_frame или оставьте
                пустым
          required:
            - type
            - image_url
        - type: object
          properties:
            type:
              type: string
              enum:
                - audio_url
            audio_url:
              type: object
              properties:
                url:
                  type: string
                  description: >-
                    URL аудио / Base64 / Asset ID. Формат: wav/mp3, длительность
                    [2, 30]с, размер ≤ 15МБ
            role:
              type: string
              enum:
                - reference_audio
              description: Фиксированное значение reference_audio
          required:
            - type
            - audio_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.