11 Labs AI Voice Generator (2026): Models, Cost and Code
Unicorn API Team · · 11 min read
The 11 Labs AI voice generator is ElevenLabs’ text-to-speech system: you give it written text and a voice, and it returns spoken audio that sounds close to a person reading aloud. Most people first use it on the ElevenLabs website or mobile app. The same models can also be called from code, and that matters if you produce voiceovers, podcast intros, app narration or game dialogue in any volume. Below: what the generator is, which model to pick, what each request costs, working code, and the mistakes that waste money.
What is the 11 Labs AI voice generator?
“11 Labs” is how many people type ElevenLabs, the company behind one of the best-known AI voice products. The 11 Labs AI voice generator is the text-to-speech part of that product. Around it sit voice cloning, transcription, podcast editing, video voiceovers and translation into other languages, all built on the same family of speech models.
A few terms you will see throughout this post:
- Text-to-speech (TTS): software that turns written text into spoken audio. The older name is speech synthesis, and it has existed for decades. Early systems sounded robotic because they stitched together recorded fragments or followed hand-written rules.
- Neural TTS: modern systems learn speech from large amounts of recorded audio. They get prosody right far more often. Prosody means the rhythm, stress and rise and fall of a sentence, and it is the main thing that separates a natural read from a flat one.
- Voice ID: a short string that names a specific voice, such as
EkK5I93UQWFDigLMpZcX. You pass it with your text so the model knows who should speak. - Model: the trained system that does the work. ElevenLabs ships several, and each one trades speed, language coverage and cost differently.
App versus API
The web app suits one-off jobs: paste a script, pick a voice, download the file. It gets awkward when you need fifty product videos narrated, a voice line for every item in a game, or audio generated automatically whenever a blog post is published. For that you want an API (application programming interface), which is a way for your own code to send text and receive audio without anyone clicking buttons.
Unicorn API gives you the ElevenLabs speech models next to image, video, music and chat models, all behind one key and one credit balance. If you also generate the video a voiceover goes with, or the background music under it, everything runs through the same account.
Which ElevenLabs voice model should you use?
Three ElevenLabs models are available on Unicorn API. They share most of their settings but do different jobs.
| Model | Model ID | Price | Best for |
|---|---|---|---|
| Elevenlabs Text to Speech Turbo V2.5 | elevenlabs-text-to-speech-turbo-2-5 | 6 credits per 1,000 characters | High-volume narration, drafts, app prompts, anything where cost matters most |
| Elevenlabs Text to Speech Multilingual V2 | elevenlabs-text-to-speech-multilingual-v2 | 12 credits per 1,000 characters | Final voiceovers, non-English content, scripts where one voice must stay consistent across languages |
| Elevenlabs Text to Dialogue V3 | elevenlabs-text-to-dialogue-v3 | 14 credits per request | Conversations with two or more speakers: podcast-style segments, explainer dialogues, game scenes |
Turbo v2.5
Turbo costs half as much as Multilingual v2. It is also the only one of the three where the voice field is optional in the minimal request, so you can send just text and get audio back. That makes it the natural default for prototyping and bulk work. It accepts the same tuning fields as Multilingual v2, including language_code.
Multilingual v2
Multilingual v2 is the one to reach for when the script is not in English, or when you want the same voice to speak several languages. Its minimal request needs both text and voice. At 12 credits per 1,000 characters it is the more expensive single-speaker option, so a common pattern is to draft on Turbo and render the final take on Multilingual v2.
Text to Dialogue v3
Dialogue v3 takes a list of lines, each with its own text and voice, and returns one audio file with the whole exchange. You avoid generating each line separately and stitching the clips together in an editor, which is slower and tends to leave uneven gaps between speakers. It also accepts stability and language_code.

How much does the 11 Labs AI voice generator cost per request?
Pricing on Unicorn API is in credits. Monthly plans include credits at $0.01 each (Starter $25, Creator $50, Studio $100, Pro $200 per month). Top-ups cost $0.015 per credit and never expire. Full details are on the pricing page.
The two single-speaker models charge per request, multiplied by the length of your text divided by 1,000 and rounded up. That rounding is the detail people miss: 1,000 characters is one unit, 1,001 characters is two. Dialogue v3 is a flat 14 credits per request.
Worked example: costing a script
| Script length | Turbo v2.5 | Multilingual v2 |
|---|---|---|
| 800 characters (a short ad read) | 6 credits, $0.06 | 12 credits, $0.12 |
| 2,500 characters (a product explainer) | 18 credits, $0.18 | 36 credits, $0.36 |
| 10,000 characters (a long tutorial) | 60 credits, $0.60 | 120 credits, $1.20 |
Dollar figures use the plan rate of $0.01 per credit. On top-up credits, multiply by 1.5: the 2,500-character Multilingual v2 job becomes $0.54.
Put another way, the Starter plan’s 2,500 credits covers about 416 full 1,000-character blocks on Turbo (roughly 416,000 characters of script), or about 208 blocks on Multilingual v2 (roughly 208,000 characters). You get the most out of that only if each request fills its blocks, which the chunking code below takes care of.
You never have to work this out by hand. The POST /v1/models/price endpoint returns the exact price of a request before you run it, and the API documentation shows how to call it. That is useful when you build a feature where end users submit their own text and you want to show or cap the cost first.
How to use the 11 Labs AI voice generator API (with code)
Every audio model on Unicorn API follows the same pattern: you create a job, the job runs, and you poll until it is finished. The steps:
- Create an API key on the keys page and export it as
UNICORN_API_KEY. - Send
POST /v1/jobswith the model ID and aninputobject. - Poll
GET /v1/jobs/{id}untilstatusis"succeeded". - Read the audio URL from
job.outputs[0].urland download it.
If you want to hear voices before writing any code, the audio playground runs the same models in the browser.
The quickest test with curl
curl -X POST https://api.unicornapi.net/v1/jobs \
-H "Authorization: Bearer $UNICORN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "elevenlabs-text-to-speech-turbo-2-5",
"input": {
"text": "Welcome back. Today we are setting up a home espresso machine, step by step."
}
}'
The response includes a job id. Check on it with:
curl https://api.unicornapi.net/v1/jobs/JOB_ID \
-H "Authorization: Bearer $UNICORN_API_KEY"
A complete Python script for long scripts
Here is something you could run on real work. It splits a long script into chunks at sentence boundaries, keeping each chunk at or under 1,000 characters so no request pays for a nearly empty block. It renders each chunk with Multilingual v2 and passes previous_text and next_text so the voice keeps a consistent tone across the joins. Then it downloads the audio files in order.
import os
import re
import time
import requests
API = "https://api.unicornapi.net"
HEADERS = {"Authorization": f"Bearer {os.environ['UNICORN_API_KEY']}"}
MODEL = "elevenlabs-text-to-speech-multilingual-v2"
VOICE = "EkK5I93UQWFDigLMpZcX"
def chunk_script(text, limit=1000):
"""Split on sentence ends, keeping each chunk at or under `limit` characters."""
sentences = re.split(r"(?<=[.!?])\s+", text.strip())
chunks, current = [], ""
for s in sentences:
candidate = f"{current} {s}".strip()
if len(candidate) <= limit:
current = candidate
else:
if current:
chunks.append(current)
current = s # a single sentence over the limit becomes its own chunk
if current:
chunks.append(current)
return chunks
def run_job(model, payload, timeout=300):
r = requests.post(f"{API}/v1/jobs", headers=HEADERS,
json={"model": model, "input": payload})
r.raise_for_status()
job = r.json()
started = time.time()
while job["status"] != "succeeded":
if job["status"] in ("failed", "canceled"):
raise RuntimeError(f"Job {job['id']} ended with status {job['status']}")
if time.time() - started > timeout:
raise TimeoutError(f"Job {job['id']} still running after {timeout}s")
time.sleep(2)
job = requests.get(f"{API}/v1/jobs/{job['id']}", headers=HEADERS).json()
return job["outputs"][0]["url"]
def narrate(script, out_dir="narration"):
os.makedirs(out_dir, exist_ok=True)
chunks = chunk_script(script)
for i, chunk in enumerate(chunks):
payload = {"text": chunk, "voice": VOICE, "language_code": "en"}
if i > 0:
payload["previous_text"] = chunks[i - 1]
if i < len(chunks) - 1:
payload["next_text"] = chunks[i + 1]
url = run_job(MODEL, payload)
audio = requests.get(url)
audio.raise_for_status()
path = os.path.join(out_dir, f"part_{i:03d}.audio")
with open(path, "wb") as f:
f.write(audio.content)
print(f"Saved {path} ({len(chunk)} characters)")
if __name__ == "__main__":
with open("script.txt", encoding="utf-8") as f:
narrate(f.read())
Two notes. The files are saved with a generic .audio extension; rename them to match the format the URL serves, which the docs describe. And the failure statuses in the loop are a sensible guard, but the docs list every status a job can return, so check them before you depend on this in production.
A two-voice dialogue in JavaScript
For a conversation, send the whole exchange to Dialogue v3 as one request. Save this as dialogue.mjs (the .mjs extension lets you use top-level await) and run it with Node 18 or later.
const API = "https://api.unicornapi.net";
const headers = {
Authorization: `Bearer ${process.env.UNICORN_API_KEY}`,
"Content-Type": "application/json",
};
async function runJob(body) {
const res = await fetch(`${API}/v1/jobs`, {
method: "POST",
headers,
body: JSON.stringify(body),
});
if (!res.ok) throw new Error(await res.text());
let job = await res.json();
while (job.status !== "succeeded") {
if (["failed", "canceled"].includes(job.status)) {
throw new Error(`Job ${job.id} ended with status ${job.status}`);
}
await new Promise((r) => setTimeout(r, 2000));
job = await (await fetch(`${API}/v1/jobs/${job.id}`, { headers })).json();
}
return job.outputs[0].url;
}
const url = await runJob({
model: "elevenlabs-text-to-dialogue-v3",
input: {
dialogue: [
{ text: "So what did the test results actually show?", voice: "EkK5I93UQWFDigLMpZcX" },
{ text: "Short version: the cheaper option was good enough for drafts.", voice: "YOUR_SECOND_VOICE_ID" },
{ text: "And for the final cut?", voice: "EkK5I93UQWFDigLMpZcX" },
],
},
});
console.log("Dialogue audio:", url);
Replace YOUR_SECOND_VOICE_ID with a second voice from the model page. If you work in Cursor or Claude Code, you can also have your coding agent call these models directly through the MCP integration, which suits batch jobs you would rather describe than script.
Tuning the voice: stability, similarity, style and speed
The single-speaker models accept several optional fields beyond text and voice. They are where a good read becomes the right read.
stability: how consistent the delivery is from one generation to the next. Higher values give an even, predictable read that suits documentation and e-learning. Lower values allow more variation and emotion, but also more surprises.similarity_boost: how closely the output should stick to the reference voice’s character. Pushing it hard can bring out artefacts that were in the original recording.style: how much stylistic exaggeration the voice adds. Useful for ads and characters; usually best left low for neutral narration.speed: speaking rate. Fast-paced voices work for short social clips. Slower reads help instructional content and listeners working in a second language.language_code: tells the model which language the text is in. Set it explicitly for any non-English script instead of leaving the model to guess.previous_textandnext_text: context around the chunk you are generating. The model reads them to shape intonation but does not speak them. That is why the Python script above passes them.timestamps: asks for timing information with the audio. You want this for subtitles, karaoke-style word highlighting, or syncing narration to on-screen events.
Accepted ranges and defaults are on each model page. The method that works: pick one representative paragraph, change one setting at a time, and listen on the same playback device your audience will use. Laptop speakers and earbuds expose different flaws.

Common mistakes with the 11 Labs AI voice generator
Most bad results and inflated bills trace back to a handful of habits.
Sending tiny requests
Because the character count rounds up per request, sending each 150-character sentence as its own request on Turbo costs 6 credits per sentence. Seven of those sentences would fit in one 1,000-character request for the same 6 credits. Batch your text.
Splitting mid-sentence
Cutting a script at exactly 1,000 characters often lands mid-word, and you hear the seam. Split on sentence boundaries, and pass previous_text and next_text so intonation carries across the join.
Writing for the eye, not the ear
Text-to-speech reads what is on the page. Abbreviations, URLs, version numbers, tables and parentheses read badly. Write “about three times faster”, not “~3x faster”. Spell out units. Read the script aloud once yourself before generating it.
Rendering every draft on the expensive model
Iterate on Turbo at 6 credits per 1,000 characters. Switch to Multilingual v2 only for the final take, and only if you can hear the difference on your content.
Stitching dialogue by hand
Generating each speaker’s lines separately and editing them together costs more requests and produces uneven pacing. Dialogue v3 handles the whole exchange for a flat 14 credits.
Ignoring consent and disclosure
Cloning or imitating a real person’s voice without permission creates legal and ethical problems, and voice misuse is exactly what critics of the technology point to. Some regulations, including the EU’s AI Act, include transparency obligations for AI-generated content. Use voices you have rights to, and label synthetic audio where your audience or the law expects it.
ElevenLabs app, free tools or an API: which route fits?
Search for an AI voice generator and you will find plenty of options. ElevenLabs advertises a free way to try its generator on its own site. Canva and Speechify both include text-to-speech in their products, and there are open-source models you can run on your own hardware, such as Zyphra’s ZONOS3-Mini and Kitten TTS 2. Which one fits depends on what you are building.
| Route | Good for | Trade-off |
|---|---|---|
| ElevenLabs web or mobile app | One-off voiceovers, trying voices, non-developers | Manual work; hard to automate |
| Design and reading tools (Canva, Speechify) | Voice inside a design or reading workflow you already use | Voice is a side feature; less control over models and settings |
| Open-source TTS models | On-device or offline use, full control | You run the hardware, updates and quality checks yourself |
| Unicorn API | Automated pipelines, apps, batch narration, mixing voice with video, music and chat models | Requires a few lines of code; pay per request in credits |
A common question is how to get “11 Labs for PC”. ElevenLabs runs in a desktop browser and also has an Android app. If what you actually want is voice generation built into your own desktop tool, a script or a server, the API route is simpler than any download.
Beyond speech: music and sound under your voiceover
A finished voiceover usually needs more than a voice. On the same key you can add Ai Music API Speech, a Suno model that takes a script along with tone, vocal gender and optional background music for 12 credits per track. There is also Ai Music API Sounds for short sound effects and loops at 2.5 credits per track. Browse the full model catalog to see what else can sit in the same pipeline.
The practical takeaway: use the ElevenLabs app to find a voice you like. Once you need repeatable output, call the 11 Labs AI voice generator models from code. Start on Turbo v2.5, render finals on Multilingual v2, use Dialogue v3 for anything with more than one speaker, and check the price endpoint before any job you are unsure about.
Frequently asked questions
Is the 11 Labs AI voice generator free?
ElevenLabs advertises a free way to try its voice generator on its own website, with limits on how much you can generate. For regular or programmatic use you pay per use. Through Unicorn API, Turbo v2.5 costs 6 credits per 1,000 characters, which is $0.06 on a monthly plan, and you can check the exact price of any request before running it.
Is 11 Labs the same as ElevenLabs?
Yes. "11 Labs" is a common way people type ElevenLabs, the company behind the AI voice generator, voice cloning, dubbing and podcast tools. Searches for 11 Labs, Eleven Labs and ElevenLabs all refer to the same product family, and the models you call through an API are the same text-to-speech models that power its web app.
Can I download 11 Labs for PC?
ElevenLabs runs in the browser on a PC, so there is nothing you need to install for the main web app. There is also a mobile app on Android. If you want voice generation inside your own desktop tool or script, the practical route is the API: send text, get back an audio file URL, and save it locally.
Which ElevenLabs model should I use for non-English voiceovers?
Use Multilingual v2 when language quality matters most, and set the language_code field so the model knows which language to speak. It costs 12 credits per 1,000 characters. Turbo v2.5 also accepts language_code at half the price, so generate the same paragraph on both and compare before committing a long script to either one.
How do I make a conversation with two AI voices?
Use ElevenLabs Text to Dialogue V3. You send a dialogue array where each line has its own text and voice ID, and the model returns one audio file with both speakers. It costs a flat 14 credits per request, so it is cheaper than generating each line separately and stitching them together yourself.
How are characters counted for ElevenLabs text to speech pricing?
On Unicorn API the single-speaker models charge per request, multiplied by the length of the text field divided by 1,000 and rounded up. So 1,000 characters costs one unit and 1,001 characters costs two. Spaces and punctuation count. Packing chunks close to 1,000 characters avoids paying for mostly empty blocks.