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

# ElevenLabs Turbo v2.5

> ElevenLabs Eleven Turbo v2.5 text to speech: a low-latency, cost-efficient multilingual speech model balancing speed and quality, for real-time voice, assistants and high-volume voice-over, billed per character.

## Model introduction

Eleven Turbo v2.5 is ElevenLabs' low-latency text-to-speech model, balancing speed and quality at half the price of [ElevenLabs Multilingual v2](https://docs.dreamto.ai/en/music/elevenlabs/tts-multilingual-v2.md), for latency- and cost-sensitive use such as real-time voice, assistants and high-volume voice-over. For the most natural delivery and accent preservation, use Multilingual v2.

`elevenlabs/tts-turbo-2-5` takes the text to speak in `input.text` and a preset `voice`, and returns one MP3; `stability`, `similarity_boost` and `style` shape the delivery, `speed` sets the speaking speed and `language_code` the language (detected automatically when omitted; setting it is recommended for Turbo v2.5).

## Setup

ElevenLabs Turbo v2.5 uses an asynchronous task API: `POST /api/v1/jobs/createTask` creates a task (`model` is `elevenlabs/tts-turbo-2-5` and the parameters go in `input`), `GET /api/v1/jobs/recordInfo?taskId=` queries it, and with `callBackUrl` the result is pushed to that URL when the task finishes. The base URL is `https://api.dreamto.ai`; send the API Key in the `Authorization: Bearer` header.

Every response has HTTP status 200; the `code` in the body tells the outcome: `200` is success, anything else an error (see the response examples of each endpoint).

| Endpoint | Purpose |
| - | - |
| [`POST /api/v1/jobs/createTask`](https://docs.dreamto.ai/en/api-reference/elevenlabs-tts-turbo-2-5/create-task) | Create task |
| [`GET /api/v1/jobs/recordInfo?taskId=...`](https://docs.dreamto.ai/en/api-reference/elevenlabs-tts-turbo-2-5/query-task) | Get task |
| [`POST callBackUrl`](https://docs.dreamto.ai/en/api-reference/elevenlabs-tts-turbo-2-5/task-callback) | Task callback |

## Parameters

`model` is `elevenlabs/tts-turbo-2-5`; the generation parameters go in `input`. Requests out of range return `code: 422`; no task is created or charged.

| Field | Values |
| - | - |
| `text` | Required text to speak, 1–5,000 characters; blank text is invalid |
| `voice` | Required preset voice ID (case-sensitive) or its preset name (case-insensitive, such as `Lily`); see the voice list below |
| `stability` | Optional, `0`–`1`, default `0.5`: lower is more expressive, higher more consistent |
| `similarity_boost` | Optional, `0`–`1`, default `0.75`: how closely the output sticks to the original voice |
| `style` | Optional, `0`–`1`, default `0`: style exaggeration; higher values can cost stability |
| `speed` | Optional, `0.7`–`1.2`, default `1`: below `1` is slower, above `1` faster; values near either end may affect quality |
| `language_code` | Optional ISO 639-1 language code (such as `zh`, `en` or `ja`); omitted or an empty string means automatic detection, but setting it is recommended for more accurate pronunciation; a malformed code returns `code: 422` |

### Voices

Set `voice` to a voice ID from the table (case-sensitive) or the preset name in the Name column (case-insensitive); the suggested default is `pNInz6obpgDQGcFmaJgB`.

| Voice ID | Name | Name and character |
| - | - | - |
| `pNInz6obpgDQGcFmaJgB` | `Adam` | Adam - Dominant, Firm |
| `Xb7hH8MSUJpSbSDYk0k2` | `Alice` | Alice - Clear, Engaging Educator |
| `pqHfZKP75CvOlQylNhV4` | `Bill` | Bill - Wise, Mature, Balanced |
| `nPczCjzI2devNBz1zQrb` | `Brian` | Brian - Deep, Resonant and Comforting |
| `N2lVS1w4EtoT3dr4eOWO` | `Callum` | Callum - Husky Trickster |
| `IKne3meq5aSn9XLyUdCD` | `Charlie` | Charlie - Deep, Confident, Energetic |
| `iP95p4xoKVk53GoZ742B` | `Chris` | Chris - Charming, Down-to-Earth |
| `onwK4e9ZLuTAKqWW03F9` | `Daniel` | Daniel - Steady Broadcaster |
| `cjVigY5qzO86Huf0OWal` | `Eric` | Eric - Smooth, Trustworthy |
| `JBFqnCBsd6RMkjVDRZzb` | `George` | George - Warm, Captivating Storyteller |
| `SOYHLrjzK2X1ezoPC6cr` | `Harry` | Harry - Fierce Warrior |
| `cgSgspJ2msm6clMCkdW9` | `Jessica` | Jessica - Playful, Bright, Warm |
| `FGY2WhTYpPnrIDTdsKH5` | `Laura` | Laura - Enthusiast, Quirky Attitude |
| `TX3LPaxmHKxFdv7VOQHJ` | `Liam` | Liam - Energetic, Social Media Creator |
| `pFZP5JQG7iQjIQuC4Bku` | `Lily` | Lily - Velvety Actress |
| `XrExE9yKIg1WjnnlVkGX` | `Matilda` | Matilda - Knowledgeable, Professional |
| `SAz9YHcvj6GT2YYXdXww` | `River` | River - Relaxed, Neutral, Informative |
| `CwhRBWXzGAHq8TQ4Fs17` | `Roger` | Roger - Laid-Back, Casual, Resonant |
| `EXAVITQu4vr4xnSDxMaL` | `Sarah` | Sarah - Mature, Reassuring, Confident |
| `bIHbv24MWmeRgasZH58o` | `Will` | Will - Relaxed Optimist |

## Pricing

Billed per character of text at **\$0.035 per 1,000 characters**; the model price in the console is authoritative.

Billed characters = the characters of `input.text` (Unicode characters, so one CJK character counts as one), spaces, punctuation and line breaks included, without trimming. For example a task of 1,234 characters costs 1234 ÷ 1000 × $0.035 = $0.04319. The balance is checked for these characters when the task is created (`code: 402` when insufficient); invalid requests and failed tasks are not charged.

## Quick start

Create a task to get `data.taskId`, poll about every 5 seconds, and download the MP3 from `response.resultUrls` once `state` is `success`; or pass `callBackUrl` to be called back when the task finishes. `$DREAMTO_API_KEY` is your API Key.

```bash cURL theme={null}
# 1. Create the task
curl -X POST "https://api.dreamto.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $DREAMTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "elevenlabs/tts-turbo-2-5",
    "input": {
      "text": "Welcome to DreamTo, one API for the top AI models from around the world.",
      "voice": "Lily",
      "stability": 0.5,
      "similarity_boost": 0.75,
      "style": 0,
      "speed": 1,
      "language_code": "en"
    }
  }'

# 2. Query the task
curl "https://api.dreamto.ai/api/v1/jobs/recordInfo?taskId=7d3f0a9c41e85b2f6a1c9e04b8d27f53" \
  -H "Authorization: Bearer $DREAMTO_API_KEY"
```

```python Python theme={null}
import os
import time

import requests

BASE_URL = "https://api.dreamto.ai"
HEADERS = {"Authorization": f"Bearer {os.environ['DREAMTO_API_KEY']}"}

payload = {
    "model": "elevenlabs/tts-turbo-2-5",
    "input": {
        "text": "Welcome to DreamTo, one API for the top AI models from around the world.",
        "voice": "Lily",
        "stability": 0.5,
        "similarity_boost": 0.75,
        "style": 0,
        "speed": 1,
        "language_code": "en"
    }
}

created = requests.post(f"{BASE_URL}/api/v1/jobs/createTask", headers=HEADERS, json=payload, timeout=60).json()
if created["code"] != 200:
    raise SystemExit(f"{created['code']}: {created['msg']}")
task_id = created["data"]["taskId"]
while True:
    record = requests.get(f"{BASE_URL}/api/v1/jobs/recordInfo", headers=HEADERS, params={"taskId": task_id}, timeout=60).json()["data"]
    if record["state"] in ("success", "fail"):
        break
    time.sleep(5)
if record["state"] == "success":
    audio = requests.get(record["response"]["resultUrls"][0], timeout=120)
    with open("speech.mp3", "wb") as f:
        f.write(audio.content)
else:
    print(record["failCode"], record["failMsg"])
```

## Callback

Pass `callBackUrl` (a public `http` / `https` URL) when creating the task; when the task succeeds or fails DreamTo `POST`s the result there once: the outer `code` is `200` (success) or `501` (failure) and `data` is the same as the `data` of the query endpoint. The request carries `X-DreamTo-Event: task.completed`, `X-DreamTo-Timestamp` (UTC, RFC 3339) and `X-DreamTo-Signature`:

```
X-DreamTo-Signature = hex( HMAC-SHA256( secret, X-DreamTo-Timestamp + "." + data.taskId + "." + status ) )
```

`status` is `success` when the task succeeded and `failed` when it failed (not the `fail` of `data.state`). Generate the secret under Webhook signing secret on the API Key page of the console; without a secret `X-DreamTo-Signature` is not sent. The callback times out after 10 seconds and any `2xx` counts as delivered; otherwise it is retried after 1, 5 and 30 minutes, at most 4 deliveries, so handle it idempotently by `data.taskId`. See [Task callback](https://docs.dreamto.ai/en/webhooks/task-callback.md) for secret management and verification code.

## Notes

* `voice` accepts a preset voice ID from the list above or that voice's preset name (such as `Lily` or `daniel`; case-insensitive, surrounding spaces ignored). A name is generated with its voice ID, and `param` in the task record still echoes the value you sent. Voices outside the list and custom voices are not supported.
* One task takes at most 5,000 characters of text; split longer scripts into several tasks and join the audio in your application.
* Generation is nondeterministic: the same request may come back with slightly different delivery and timing.
* `taskId` is issued by DreamTo (32 hex digits) and can only be queried with an API Key of the same account; an unknown or expired task returns `code: 422` with `msg: recordInfo is null`.
* The body accepts only `model`, `callBackUrl` and `input`; undeclared `input` fields (`Unknown field input.xxx.`), wrong types and out-of-range values return `code: 422` with an English reason in `msg`; no task is created or charged.
* Audio links (`response.resultUrls`, the same as in `resultJson`) are DreamTo download links (`/v1/tasks/{task_id}/artifacts/...`) that work without an API Key and support `Range`; they stay valid for about 14 days after the task is created, so download and keep the audio promptly.
* `param` echoes the create request, with `input` as a JSON string that needs a second parse; the record carries no cost field, and the charge is shown in the DreamTo console bills.
* `failCode` / `failMsg` of a failed task come from the model service (content moderation and so on); internal errors are reported as `failCode: "500"` with `failMsg: "Internal Error, Please try again later."`.


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