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

# Плавное затухание звука

> Используйте API плавного затухания звука Suno, чтобы добавить плавное затухание звука к существующему Suno-треку.

Используйте этот эндпоинт, чтобы добавить плавное затухание звука к существующему Suno-треку. Передайте `music_id`, `fade_time_s` и `title`; сохраните возвращенный `jobId` и получите результат через [Получение результата Suno V2](/api/ru/suno/suno_fetch_v2) или обратный вызов `hookUrl`.


## OpenAPI

````yaml openapi/ru/suno.json POST /suno/v1/fade-out
openapi: 3.1.0
info:
  title: Документация TTAPI API
  version: 1.0.0
  description: Suno AI Музыка API
servers:
  - url: https://api.ttapi.io
security: []
paths:
  /suno/v1/fade-out:
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              allOf:
                - type: object
                  properties:
                    music_id:
                      type: string
                      description: ID исходного трека для редактирования.
                    fade_time_s:
                      type: number
                      description: >-
                        Длительность эффекта плавного изменения громкости, в
                        секундах.
                    title:
                      type: string
                      description: >-
                        Базовое название отредактированного трека. При отправке
                        добавляется суффикс Плавное затухание звука.
                  required:
                    - music_id
                    - fade_time_s
                    - title
                - $ref: '#/components/schemas/IsStorageParams'
                - $ref: '#/components/schemas/HookUrlParams'
      responses:
        '200':
          description: Запрос выполнен успешно
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: SUCCESS
                  message:
                    type: string
                    example: success
                  data:
                    type: object
                    properties:
                      jobId:
                        type: string
                        description: ID задачи для получения результата редактирования.
                    required:
                      - jobId
                    example:
                      jobId: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                required:
                  - status
                  - message
                  - data
        '400':
          $ref: '#/components/responses/400Response'
        '401':
          $ref: '#/components/responses/401Response'
      security:
        - CustomApiKey: []
components:
  schemas:
    IsStorageParams:
      type: object
      properties:
        isStorage:
          type: boolean
          default: true
          description: |-
            Сохранять ли сгенерированный звук.

            - **true**: аудио будет сохранено и будет возвращено TTAPI CDN URL.
            - **false**: будет возвращен исходный источник URL.
    HookUrlParams:
      type: object
      properties:
        hookUrl:
          type: string
          description: URL обратного уведомления
  responses:
    400Response:
      description: Ошибка параметров
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: FAILED
              message:
                type: string
              data:
                type: object
            required:
              - status
              - message
    401Response:
      description: Ошибка авторизации
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: FAILED
              message:
                type: string
                example: Wrong TT-API-KEY or email is not activated.
            required:
              - status
              - message
  securitySchemes:
    CustomApiKey:
      type: apiKey
      in: header
      name: TT-API-KEY
      description: >-
        Вы можете получить API-ключ в <a href='https://dashboard.ttapi.io'
        target='_blank'>панель управления TTAPI</a>.

````