> ## Documentation Index
> Fetch the complete documentation index at: https://docs.goenhance.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MiniMax Speech 2.8

> MiniMax Speech 2.8 Turbo text-to-speech. Turns text into natural, expressive speech and returns an mp3 URL.

**Pricing** — billed by text length, not by audio duration:

| Unit | Tokens | USD |
|---|---|---|
| every 200 characters (rounded up) | 2 | $0.04 |

A 350-character request is billed as 2 units (4 tokens = $0.08). Anything from 1 to 200 characters costs 1 unit.

Returns an `img_uuid`; poll GET /api/v1/jobs/detail (or use `custom_callback_url`) to get the generated audio. The result arrives as a `json` array item with `type: "audio"` and an mp3 URL in `value`.



## OpenAPI

````yaml api-reference/audio-generations/openapi-minimax-speech-2-8.json POST /api/v1/audio/generations
openapi: 3.1.0
info:
  title: GoEnhance API - MiniMax Speech 2.8
  description: >-
    MiniMax Speech 2.8 Turbo text-to-speech. Turns text into natural, expressive
    speech and returns an mp3 URL.
  version: 1.0.0
servers:
  - url: https://api.goenhance.ai
security: []
paths:
  /api/v1/audio/generations:
    post:
      tags:
        - AudioGenerations
      summary: MiniMax Speech 2.8
      description: >-
        MiniMax Speech 2.8 Turbo text-to-speech. Turns text into natural,
        expressive speech and returns an mp3 URL.


        **Pricing** — billed by text length, not by audio duration:


        | Unit | Tokens | USD |

        |---|---|---|

        | every 200 characters (rounded up) | 2 | $0.04 |


        A 350-character request is billed as 2 units (4 tokens = $0.08).
        Anything from 1 to 200 characters costs 1 unit.


        Returns an `img_uuid`; poll GET /api/v1/jobs/detail (or use
        `custom_callback_url`) to get the generated audio. The result arrives as
        a `json` array item with `type: "audio"` and an mp3 URL in `value`.
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: false
          example: '{{Authorization}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  enum:
                    - minimax-speech-2-8
                  description: Model name. Must be `minimax-speech-2-8`.
                text:
                  type: string
                  minLength: 1
                  maxLength: 5000
                  description: >-
                    Text to synthesize. Required. Max 5000 characters. Billing
                    is based on this length.
                voice:
                  type: string
                  description: >-
                    Voice id. Optional — defaults to `Wise_Woman`. Accepts any
                    voice id MiniMax knows: short system voices (`Wise_Woman`,
                    `Friendly_Person`, `Inspirational_girl`, `Deep_Voice_Man`,
                    `Calm_Woman`, `Casual_Guy`, `Lively_Girl`, `Patient_Man`,
                    `Young_Knight`, `Determined_Man`, `Lovely_Girl`,
                    `Decent_Boy`, `Imposing_Manner`, `Elegant_Man`, `Abbess`,
                    `Sweet_Girl_2`, `Exuberant_Girl`), locale-prefixed ones
                    (`English_Graceful_Lady`, `English_radiant_girl`,
                    `Japanese_Whisper_Belle`, `Chinese
                    (Mandarin)_Lyrical_Voice`, `Cantonese_GentleLady`), and
                    cloned voice ids (`moss_audio_...`). A voice the model does
                    not know makes the task fail, and the tokens are refunded
                    automatically.
                  default: Wise_Woman
                  maxLength: 100
                custom_callback_url:
                  type: string
                  format: uri
                  description: >-
                    Optional. A publicly accessible HTTPS URL. When the task
                    status changes (processing / success / failed), GoEnhance
                    sends a POST request to this URL. The request body is
                    identical to the response of GET /api/v1/jobs/detail. If
                    your server does not respond with HTTP 200, the notification
                    is retried up to 3 times, with a 3-second timeout per
                    attempt.
                  example: https://your-server.com/goenhance/callback
              required:
                - model
                - text
            example:
              model: minimax-speech-2-8
              text: Welcome to GoEnhance. Let's build something great today.
              voice: Wise_Woman
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      img_uuid:
                        type: string
                      cost:
                        type: number
                        description: >-
                          Tokens deducted for this request. This is the amount
                          actually charged, so it already reflects any discount
                          active on your account and can be lower than the
                          listed price. Tokens are deducted when the task is
                          accepted, and refunded automatically if the generation
                          ends in failure.
                        example: 5.82
                    required:
                      - img_uuid
                      - cost
                required:
                  - code
                  - msg
                  - data
              examples:
                '1':
                  summary: Success
                  value:
                    code: 0
                    msg: Success
                    data:
                      img_uuid: c12b656c-747a-44fd-9c80-add79b0c52d5
                      cost: 5.82
                '2':
                  summary: Insufficient tokens
                  value:
                    code: 100
                    msg: tokens is not enough
                quota:
                  summary: API key quota exceeded
                  value:
                    code: 101
                    msg: 'API key quota exceeded: 4990 of 5000 tokens used (monthly)'
          headers: {}
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
          headers: {}
      deprecated: false

````

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