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

> MiniMax text-to-speech. Turns text into natural 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). 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-6.json POST /api/v1/audio/generations
openapi: 3.1.0
info:
  title: GoEnhance API - MiniMax Speech 2.6
  description: >-
    MiniMax text-to-speech. Turns text into natural 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.6
      description: >-
        MiniMax text-to-speech. Turns text into natural 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). 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-6
                  description: Model name. Must be `minimax-speech-2-6`.
                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. Required. See the voice list for the supported
                    values of this model.
                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
                - voice
            example:
              model: minimax-speech-2-6
              text: Welcome to GoEnhance. Let's build something great today.
              voice: <voice-id>
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      img_uuid:
                        type: string
                    required:
                      - img_uuid
                required:
                  - code
                  - msg
                  - data
              examples:
                '1':
                  summary: Success
                  value:
                    code: 0
                    msg: Success
                    data:
                      img_uuid: c12b656c-747a-44fd-9c80-add79b0c52d5
                '2':
                  summary: Insufficient tokens
                  value:
                    code: 100
                    msg: tokens is not enough
          headers: {}
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
          headers: {}
      deprecated: false

````