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

# Suno Fade Out API 文档

> 通过 Suno fade-out 接口为已有歌曲添加淡出效果，适合对成品音频做自然收尾处理。

使用该接口为已有 Suno 歌曲添加淡出效果。提交 `music_id`、`fade_time_s` 和 `title` 后，保存返回的 `jobId`，再通过 [Suno Fetch V2](/api/cn/suno/suno_fetch_v2) 或 `hookUrl` 回调获取编辑结果。


## OpenAPI

````yaml openapi/cn/suno.json POST /suno/v1/fade-out
openapi: 3.1.0
info:
  title: TTAPI API DOCS
  version: 1.0.0
  description: Suno 音乐生成相关接口
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: 编辑后音频的基础标题，提交时会追加 Fade Out 后缀。
                  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地址
            - **false**：返回官方源地址
    HookUrlParams:
      type: object
      properties:
        hookUrl:
          type: string
          description: 回调通知地址
  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: >-
        请前往 <a href='https://dashboard.ttapi.io' target='_blank'>TTAPI 控制台</a>
        获取 API 密钥。

````