> ## 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 Speech API Documentation

> Use the Suno speech API to generate spoken audio. Supports inspiration mode and custom mode.



## OpenAPI

````yaml openapi/en/suno.json POST /suno/v1/speech
openapi: 3.1.0
info:
  title: TTAPI API DOCS
  version: 1.0.0
  description: Suno AI Music API
servers:
  - url: https://api.ttapi.io
security: []
paths:
  /suno/v1/speech:
    post:
      description: >-
        Generate spoken audio. The model is fixed to `chirp-v6-mini`, so `mv` is
        not required.


        - **custom=false** (default): inspiration mode. Audio is generated from
        `gpt_description_prompt`

        - **custom=true**: custom mode. Audio is generated from the `prompt`
        lyrics. `prompt` is required
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - title: Custom mode
                  allOf:
                    - type: object
                      properties:
                        custom:
                          type: boolean
                          default: true
                          enum:
                            - true
                          description: >-
                            Custom mode, fixed to true. Audio is generated from
                            the lyrics.
                        background_music:
                          type: boolean
                          default: true
                          description: >-
                            Whether to include background music. Defaults to
                            true.
                      required:
                        - custom
                        - prompt
                    - type: object
                      properties:
                        prompt:
                          type: string
                          description: >-
                            Text to read aloud. Required in custom mode, up to
                            5000 characters.
                        tags:
                          type: string
                          description: >-
                            Intonation. Describes the tone, pacing, emotion, and
                            scene to convey. Used in custom mode, up to 1000
                            characters.
                    - $ref: '#/components/schemas/Vocal_gender_Params'
                    - $ref: '#/components/schemas/Variety_Params'
                    - $ref: '#/components/schemas/Audio_format_Params'
                    - $ref: '#/components/schemas/HookUrlParams'
                - title: Inspiration mode
                  allOf:
                    - type: object
                      properties:
                        custom:
                          type: boolean
                          default: false
                          enum:
                            - false
                          description: >-
                            Inspiration mode, fixed to false. Audio is generated
                            from the inspiration prompt.
                      required:
                        - custom
                    - type: object
                      properties:
                        gpt_description_prompt:
                          type: string
                          description: Inspiration-mode prompt, up to 3000 characters.
                          example: >-
                            Read an evening news segment in a calm male voice at
                            a steady pace
                    - $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: |-
            Vocal gender.

            - Male: Male voice

            - Female: Female voice
          enum:
            - Male
            - Female
    Variety_Params:
      type: object
      properties:
        variety:
          type: string
          default: normal
          enum:
            - 'off'
            - normal
            - high
            - extra
            - max
          description: >-
            Style variety. Controls how much the generated result varies from
            the specified style.


            - **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: Audio format of `audioUrl` after the job succeeds.
    HookUrlParams:
      type: object
      properties:
        hookUrl:
          type: string
          description: Callback notification URL
  responses:
    SuccessResponse:
      description: Request successful
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: SUCCESS
              message:
                type: string
                example: success
              data:
                type: object
                example:
                  jobId: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
            required:
              - status
              - message
              - data
    400Response:
      description: Parameter error
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: FAILED
              message:
                type: string
              data:
                type: object
            required:
              - status
              - message
    401Response:
      description: Authorization failed
      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: >-
        You can obtain your API key from the <a
        href='https://dashboard.ttapi.io' target='_blank'>TTAPI Dashboard</a>.

````

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