> ## 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 Adjust Speed API 文档

> 通过 Suno 调速接口将歌曲播放速度调整为 0.25 倍到 4 倍，并可选择保持原始音高。

<Note>
  该接口每次请求消耗 **3 quota（约 \$0.03）**。
</Note>

提交源音频 `music_id`、范围为 `0.25` 到 `4` 的 `speed_multiplier`、是否保持音高的 `keep_pitch`，以及输出歌曲的 `title`。保存返回的 `jobId`，再通过 [Suno Fetch V2](/api/cn/suno/suno_fetch_v2) 或 `hookUrl` 回调获取结果。


## OpenAPI

````yaml openapi/cn/suno.json POST /suno/v1/adjust-speed
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/adjust-speed:
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                music_id:
                  type: string
                  description: 需要调速的源音频 ID。
                keep_pitch:
                  type: boolean
                  default: false
                  description: 调整速度时是否保持原始音高。
                speed_multiplier:
                  type: number
                  minimum: 0.25
                  maximum: 4
                  default: 1
                  description: 播放速度倍数，取值范围为 0.25 到 4。
                title:
                  type: string
                  description: 调速后歌曲的标题。
                isStorage:
                  type: boolean
                  default: true
                  description: 是否转存调速后的音频并返回 TTAPI CDN 地址。
                hookUrl:
                  type: string
                  description: 任务状态和结果的回调地址。
              required:
                - music_id
                - keep_pitch
                - speed_multiplier
                - title
      responses:
        '200':
          $ref: '#/components/responses/SuccessResponse'
        '400':
          $ref: '#/components/responses/400Response'
        '401':
          $ref: '#/components/responses/401Response'
      security:
        - CustomApiKey: []
components:
  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: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
            required:
              - status
              - message
              - data
    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 密钥。

````