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

# Продление трека

> Расширение сгенерированного аудио, **Примечание: Этот эндпоинт можно использовать только после успешного завершения предыдущей задачи**



## OpenAPI

````yaml openapi/ru/flowmuisc.json POST /flowmusic/v1/extend
openapi: 3.1.0
info:
  title: Документация FlowMusic API
  version: 1.0.0
  description: >-
    Сервис эндпоинтов TTAPI FlowMusic API, в настоящее время интегрирующий самые
    передовые большие музыкальные модели на рынке.
servers:
  - url: https://api.ttapi.io
security: []
paths:
  /flowmusic/v1/extend:
    post:
      description: >-
        Расширение сгенерированного аудио, **Примечание: Этот эндпоинт можно
        использовать только после успешного завершения предыдущей задачи**
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExtendRequest'
      responses:
        '200':
          $ref: '#/components/responses/SuccessResponse'
        '400':
          $ref: '#/components/responses/400Response'
        '401':
          $ref: '#/components/responses/401Response'
      security:
        - CustomApiKey: []
components:
  schemas:
    ExtendRequest:
      type: object
      properties:
        clip_id:
          type: string
          description: clip_id исходной музыки
        model:
          type: string
          description: Название музыкальной модели, по умолчанию Lyria 3 Pro
          default: Lyria 3 Pro
        extend_from_s:
          type: number
          description: >-
            С какого момента времени расширять исходный клип в секундах; не
            может превышать длительность исходного клипа.
        extend_s:
          type: number
          description: Длительность расширения в секундах; максимум 164 секунд.
          maximum: 164
        instruction:
          type: string
          description: Инструкция по редактированию расширения музыки.
        title:
          type: string
          description: Заголовок музыки после расширения.
        seed:
          type: string
          description: >-
            Случайное число; используется для воспроизведения или контроля
            результатов генерации.
        hook_url:
          type: string
          description: >-
            URL обратного вызова после завершения задачи; при пустом значении
            обратный вызов не отправляется
      required:
        - clip_id
        - extend_from_s
        - extend_s
        - instruction
  responses:
    SuccessResponse:
      description: Запрос успешен
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: SUCCESS
              message:
                type: string
                example: success
              data:
                type: object
                example:
                  jobId: jobId
            required:
              - status
              - message
              - data
    400Response:
      description: Ошибка параметра
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: FAILED
              message:
                type: string
                example: '"prompt" не может быть пустым.'
              data:
                type: object
            required:
              - status
              - message
    401Response:
      description: Ошибка авторизации
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: FAILED
              message:
                type: string
                example: Неверный TT-API-KEY или электронная почта не активирована.
            required:
              - status
              - message
  securitySchemes:
    CustomApiKey:
      type: apiKey
      in: header
      name: TT-API-KEY
      description: >-
        Пожалуйста, посетите <a href='https://dashboard.ttapi.io'
        target='_blank'>панель управления TTAPI</a> для получения API ключа.

````