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

# Suno Speech API 文档

> 使用 Suno 语音朗读接口生成带朗读人声的音频。支持灵感模式和自定义模式。



## OpenAPI

````yaml openapi/cn/suno.json POST /suno/v1/speech
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/speech:
    post:
      description: |-
        生成语音朗读。模型固定为 `chirp-v6-mini`，请求中不需要传 `mv`。

        - **custom=false**（默认）：灵感模式，根据 `gpt_description_prompt` 生成
        - **custom=true**：自定义模式，根据歌词 `prompt` 生成。`prompt` 必填
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - title: 自定义模式
                  allOf:
                    - type: object
                      properties:
                        custom:
                          type: boolean
                          default: true
                          enum:
                            - true
                          description: 自定义模式，固定为 true。音频将从歌词中生成。
                        background_music:
                          type: boolean
                          default: true
                          description: 是否包含背景音乐。默认 true。
                      required:
                        - custom
                        - prompt
                    - type: object
                      properties:
                        prompt:
                          type: string
                          description: 朗读内容，最多 5000 字符。
                        tags:
                          type: string
                          description: 语调。描述朗读要传达的语气、节奏、情绪和场景，最多 1000 字符。
                    - $ref: '#/components/schemas/Vocal_gender_Params'
                    - $ref: '#/components/schemas/Variety_Params'
                    - $ref: '#/components/schemas/Audio_format_Params'
                    - $ref: '#/components/schemas/HookUrlParams'
                - title: 灵感模式
                  allOf:
                    - type: object
                      properties:
                        custom:
                          type: boolean
                          default: false
                          enum:
                            - false
                          description: 灵感模式，固定为 false。音频将根据灵感模式提示词生成。
                      required:
                        - custom
                    - type: object
                      properties:
                        gpt_description_prompt:
                          type: string
                          description: 灵感模式提示词，最多 3000 字符。
                          example: 用沉稳男声朗读一段晚间新闻，语速平稳
                    - $ref: '#/components/schemas/Audio_format_Params'
                    - $ref: '#/components/schemas/HookUrlParams'
      responses:
        '200':
          $ref: '#/components/responses/SuccessResponse'
        '400':
          $ref: '#/components/responses/400Response'
        '401':
          $ref: '#/components/responses/401Response'
      security:
        - CustomApiKey: []
components:
  schemas:
    Vocal_gender_Params:
      type: object
      properties:
        vocal_gender:
          type: string
          description: |-
            音色性别

            - Male:男性 

            - Female:女性
          enum:
            - Male
            - Female
    Variety_Params:
      type: object
      properties:
        variety:
          type: string
          default: normal
          enum:
            - 'off'
            - normal
            - high
            - extra
            - max
          description: |-
            风格多样性。控制生成结果相对指定风格的变化程度。

            - **off**：Exact style（精确风格）
            - **normal**：Balanced variety（均衡变化）
            - **high**：Distinct styles（风格差异明显）
            - **extra**：Bold exploration（大胆探索）
            - **max**：Unreasonably varied（极度发散）
    Audio_format_Params:
      type: object
      properties:
        audio_format:
          type: string
          enum:
            - mp3
            - m4a
            - wav
          example: mp3
          description: 任务最终成功后 `audioUrl` 的音频格式。
    HookUrlParams:
      type: object
      properties:
        hookUrl:
          type: string
          description: 回调通知地址
  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 密钥。

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.