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

# ElevenLabs v4

> ElevenLabs Eleven v4 Turbo text-to-speech. Turns text into natural, expressive speech and returns an mp3 URL. Supports inline audio tags in the text, such as `[whispering]` or `[laughs]`, and a `speed` control.

**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-elevenlabs-v4.json POST /api/v1/audio/generations
openapi: 3.1.0
info:
  title: GoEnhance API - ElevenLabs v4
  description: >-
    ElevenLabs Eleven v4 Turbo text-to-speech. Turns text into natural,
    expressive speech and returns an mp3 URL. Supports inline audio tags in the
    text, such as `[whispering]` or `[laughs]`, and a `speed` control.
  version: 1.0.0
servers:
  - url: https://api.goenhance.ai
security: []
paths:
  /api/v1/audio/generations:
    post:
      tags:
        - AudioGenerations
      summary: ElevenLabs v4
      description: >-
        ElevenLabs Eleven v4 Turbo text-to-speech. Turns text into natural,
        expressive speech and returns an mp3 URL. Supports inline audio tags in
        the text, such as `[whispering]` or `[laughs]`, and a `speed` control.


        **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:
                    - elevenlabs-v4
                  description: Model name. Must be `elevenlabs-v4`.
                text:
                  type: string
                  minLength: 1
                  maxLength: 5000
                  description: >-
                    Text to synthesize. Required. Max 5000 characters. Billing
                    is based on this length. You can put audio tags in square
                    brackets inline to steer delivery, e.g. `[whispering] Can
                    you keep a secret?`.
                voice:
                  type: string
                  description: >-
                    Voice. Optional — defaults to `Rachel`. One of the
                    ElevenLabs preset voices (case-insensitive): `Rachel`,
                    `Aria`, `Roger`, `Sarah`, `Laura`, `Charlie`, `George`,
                    `Callum`, `River`, `Liam`, `Charlotte`, `Alice`, `Matilda`,
                    `Will`, `Jessica`, `Eric`, `Chris`, `Brian`, `Daniel`,
                    `Lily`, `Bill` — or a 20-character ElevenLabs voice id such
                    as `21m00Tcm4TlvDq8ikWAM`.
                  default: Rachel
                  maxLength: 100
                speed:
                  type: number
                  minimum: 0.7
                  maximum: 1.2
                  description: >-
                    Optional playback speed. Any number from 0.7 to 1.2. Omit
                    (or pass 1) to use the model default. When `speed` is not 1,
                    the request is rendered by the previous-generation
                    ElevenLabs engine so the speed setting still applies; the
                    voice texture may differ slightly from the default v4
                    output.
                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: elevenlabs-v4
              text: >-
                [excited] Welcome to GoEnhance. [whispering] Let's build
                something great today.
              voice: Rachel
              speed: 1
      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.