> ## 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 для генерации аудио с голосовым чтением. Поддерживаются режим вдохновения и пользовательский режим.



## OpenAPI

````yaml openapi/ru/suno.json POST /suno/v1/speech
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/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: |-
            Вокальный пол.

            - Мужской: Мужской голос

            - Женский: женский голос
          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: URL обратного уведомления
  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: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
            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: >-
        Вы можете получить API-ключ в <a href='https://dashboard.ttapi.io'
        target='_blank'>панель управления TTAPI</a>.

````

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