Pular para o conteúdo principal
Model logo

API do ElevenLabs TTS

    Saída

    Seu audio gerado aparecerá aqui

    Atualizado

    What is the ElevenLabs TTS API?

    The ElevenLabs TTS API is live on UnificAlly as elevenlabs/text-to-speech, from $0.024 per 1,000 characters of text. ElevenLabs TTS turns text into natural-sounding speech, with four model variants on the same endpoint. Send the text and a voice ID and the call works; everything else is optional. The four models trade latency, language coverage, and character cap: Flash v2.5 returns first audio in roughly 75 ms across 32 languages, Turbo v2.5 sits at about 250 ms with stronger quality, Multilingual v2 covers 29 languages at the highest quality with a 10,000-character cap, and V3 reaches 70+ languages with the most dramatic delivery. Output formats span compressed MP3 and Opus, full-rate WAV, raw PCM, and 8 kHz μ-law and a-law for telephony. That coverage is what makes the same endpoint usable for both consumer-facing playback and IVR pipelines.

    ElevenLabs TTS API specs

    Model IDelevenlabs/text-to-speech
    EndpointPOST https://api.unifically.com/v1/tasks
    Request typesText to speech with a voice ID, or with a voice cloned from sample URLs in the same request. Word and character timestamps are optional
    Models (model_id)eleven_flash_v2_5 (default), eleven_multilingual_v2, eleven_v3, eleven_turbo_v2_5
    Characters per call40,000 on Flash v2.5 and Turbo v2.5, 10,000 on Multilingual v2, 5,000 on V3
    Output formatsMP3, Opus, PCM, WAV, μ-law and A-law. The default is mp3_44100_128
    OutputAn audio URL, plus timing data when with_timestamps is on
    Voice inputsA voice ID from GET /v1/resources/elevenlabs/voices, or up to 25 sample URLs of one speaker (mp3, wav, ogg, opus, m4a, flac, webm)
    Rate on Flash v2.5 and Turbo v2.5$0.024/1000 characters
    Rate on Multilingual v2$0.048/1000 characters
    Rate on V3$0.048/1000 characters

    Billing is per 1,000 characters of input text, with no subscription. The ElevenLabs API pricing guide covers the full rate table.

    How to use the ElevenLabs TTS API

    1. Create an API key on the API keys page.
    2. Send a POST request to /v1/tasks with the model ID and an input object that holds the text and a voice.
    3. Read the task_id from the response, then check the task until it is finished, or pass a callback URL and wait for the result.
    curl -X POST https://api.unifically.com/v1/tasks \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -d '{
        "model": "elevenlabs/text-to-speech",
        "input": {
          "text": "Hello world, this is a test.",
          "voice": "TX3LPaxmHKxFdv7VOQHJ",
          "model_id": "eleven_flash_v2_5",
          "output_format": "mp3_44100_128"
        }
      }'
    

    The response returns the task ID straight away:

    {
      "code": 200,
      "success": true,
      "data": {
        "task_id": "abc123def456",
        "status": "processing"
      }
    }
    

    Poll the task until status is completed. The finished task carries the audio URL in output.audio_url.

    curl https://api.unifically.com/v1/tasks/{task_id} \
      -H "Authorization: Bearer YOUR_API_KEY"
    

    ElevenLabs TTS API parameters

    ParameterTypeDefaultWhat it does
    textstringnoneRequired. The text to convert to speech. The character limit depends on model_id
    voicestring or arraynoneRequired. A voice ID from GET /v1/resources/elevenlabs/voices, or an array of sample URLs to clone a voice from
    model_idstringeleven_flash_v2_5The TTS model: eleven_flash_v2_5, eleven_multilingual_v2, eleven_v3, or eleven_turbo_v2_5
    with_timestampsbooleanfalseReturns character and word timing data alongside the audio
    speednumber1.0Speech speed. Below 1.0 is slower, above 1.0 is faster. Shorthand for voice_settings.speed
    voice_settingsobjectnoneFine-tunes the voice: stability (default 0.5), similarity_boost (0.75), style (0), speed (1.0), use_speaker_boost (true)
    output_formatstringmp3_44100_128The audio output format
    language_codestringautoISO 639-1 code that forces a language, for example en or es
    seedintegernoneSeed for reproducible generation, 0 to 4294967295

    The ElevenLabs TTS API documentation has the full reference, with every output format and the voice options.

    Cloned voice from sample URLs, with timestamps

    Pass direct-download sample URLs of one speaker in voice instead of a voice ID. With with_timestamps on, the finished task also carries alignment, normalized_alignment and words for captions and sync.

    curl -X POST https://api.unifically.com/v1/tasks \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -d '{
        "model": "elevenlabs/text-to-speech",
        "input": {
          "text": "Hello world, this is my cloned voice.",
          "voice": [
            "https://cdn.example.com/recording1.mp3",
            "https://cdn.example.com/recording2.wav"
          ],
          "model_id": "eleven_multilingual_v2",
          "with_timestamps": true,
          "speed": 1.1
        }
      }'
    

    Key features of ElevenLabs TTS

    Five features cover the surface area you'll touch in a real production pipeline.

    Four model variants for the latency-quality-language trade

    Flash v2.5 returns first audio in roughly 75 ms across 32 languages, which fits live agents and IVR. Turbo v2.5 sits at about 250 ms with stronger quality. Multilingual v2 is the default for long-form narration. V3 covers 70+ languages with the most dramatic delivery.

    Eighteen output formats, including telephony

    MP3 and Opus across five bitrates each, raw PCM at five sample rates, full-rate WAV, plus 8 kHz ulaw_8000 and alaw_8000 that drop straight onto Twilio and other voice circuits without an intermediate transcoder.

    Voice settings you can actually tune

    Stability, similarity boost, style, speed, and a speaker boost toggle. Each has a sensible default, but the controls are precise enough that you can shape the same voice for an audiobook one week and a high-energy promo the next without re-cloning.

    Seeded, reproducible output

    Pass an integer seed and the same text, voice, model variant, and settings return identical audio. That makes regression tests possible, lets games keep cached lines deterministic, and means a re-render after a copy edit only changes the words you changed.

    Live voice catalog including your clones

    Cloned voices created inside ElevenLabs show up automatically through the resources catalog, with no redeployment, no SDK update, and no separate fetch path. Pass any returned ID as the voice parameter and the call routes correctly.

    What ElevenLabs is best for

    • Real-time voice agents and IVR

      Flash v2.5 keeps end-to-end latency low and the ulaw_8000 / alaw_8000 outputs drop straight onto Twilio and other 8 kHz voice circuits.

    • Audiobooks and long-form narration

      Multilingual v2 plus a locked seed produces consistent voice across chapters; the 10,000-character cap fits a typical chapter in a single call.

    • Localized release work

      Multilingual v2 covers 29 languages, V3 reaches 70+. Mix variants per locale to balance quality and language coverage in one pipeline.

    • Game and app character lines

      Pass the same seed and voice settings per character and lines stay consistent across retakes during patch cycles.

    • Assistive playback for UI strings

      Lock voice and settings per locale and TTS becomes a deterministic component of an accessible product.

    • Trailer narration and explainer voiceover

      V3 with style turned up adds the dramatic delivery promo content needs without manual ADR.

    ElevenLabs variants

    Four model variants share one endpoint. Pick by the latency, quality, and language coverage you need.

    Flash v2.5

    First audio in ~75 ms, 32 languages, 40,000 characters per call. Use it for live voice agents, IVR, and any pipeline where end-to-end latency is the headline constraint.

    Turbo v2.5

    First audio in ~250 ms, 32 languages, 40,000 characters per call. Same broad language coverage as Flash with stronger quality. Good when you can wait through a quarter-second of extra latency and want a richer voice on the other end.

    Multilingual v2

    29 languages, 10,000 characters per call. The default for long-form narration. Pair it with a locked seed and you get consistent voice across chapters, episodes, and series, with no drift between calls.

    V3

    70+ languages, 5,000 characters per call. The most expressive of the four, with the biggest dynamic range and the most dramatic delivery. Use it for trailer narration, promo VO, and any cut where the voice has to carry the video.

    How does ElevenLabs TTS sound? Flash v2.5 vs V3 on the same line

    The quickest way to answer an "elevenlabs tts" search is to play it. Both clips below are real outputs from this endpoint, generated on October 19, 2026 through the UnificAlly MCP with the same 210-character text and the same voice (TX3LPaxmHKxFdv7VOQHJ, the premade voice Liam), default voice_settings, output_format mp3_44100_128. Only model_id changed.

    Flash v2.5 (eleven_flash_v2_5, 11.4 s of audio, billed at $0.024/1000 characters):

    Eleven V3 (eleven_v3, 10.4 s of audio, billed at $0.048/1000 characters):

    The text: "Welcome back. Your order shipped this morning and should arrive by Thursday. If you need to change the delivery address, reply to this message or call us any time. Thanks for choosing us, and have a great week." At 210 characters each render cost a fraction of a cent; the per-1,000-character rates above are what scale.

    V3 reads the same line about a second shorter, which is the pacing difference you hear between a transactional voice and the more expressive model. For an IVR or a notification, Flash v2.5 at half the rate is the right default. For narration where delivery carries the content, V3 earns its rate.

    ElevenLabs TTS vs Eleven v4 vs Grok TTS

    The two text-to-speech routes most often searched next to this one, on the same key. Rates are UnificAlly's per 1,000 characters.

    ElevenLabs TTS (this page)Eleven v4Grok TTS
    Model IDelevenlabs/text-to-speechelevenlabs/eleven-v4xai/grok-tts
    Rate$0.024/1000 characters (Flash v2.5) to $0.048/1000 characters (V3, Multilingual v2)$0.048 per 1,000 characters$0.0075/1000 characters
    VariantsFlash v2.5, Turbo v2.5, Multilingual v2, V3v4 (v4 Turbo is its own route at $0.024)One model
    Languages32 (Flash, Turbo), 29 (Multilingual v2), 70+ (V3)70+20
    Characters per call40,000 (Flash, Turbo), 10,000 (Multilingual v2), 5,000 (V3)10,00060,000
    Audio tags like [laughs]V3Yes, and it stacks several per lineNo
    Multi-speaker in one callNo (use ElevenLabs Dialogue)YesNo
    VoicesFull ElevenLabs catalog plus your clonesFull catalog, clones, per-request cloning from a samplexAI preset voices
    Output formats18, including ulaw and alaw for telephonyNot listed on its pagemp3, wav, pcm
    Seeded, reproducible outputYesNot listed on its pageNo

    Choose this endpoint for the lowest latency and the widest format list, Eleven v4 when expressiveness and tags matter more than rate, and Grok TTS when you want the cheapest clean read in one of its 20 languages.

    ElevenLabs use cases

    Wire a real-time voice agent to Twilio in a day: call the TTS endpoint with output_format set to ulaw_8000, hand the buffer to your media stream, and Flash v2.5's first-audio latency keeps conversation natural. Produce a localized audiobook by writing one chapter generator that loops over locales and swaps between Multilingual v2 (29 languages) and V3 (70+) per market. Build deterministic in-game dialogue by binding each NPC to a fixed voice plus a fixed seed and settings profile. Layer accessible UI playback by pre-rendering common strings server-side and caching the resulting audio URLs.

    Perguntas frequentes

    Perguntas frequentes sobre ElevenLabs

    ElevenLabs TTS is a text-to-speech endpoint that turns any string into spoken audio. Send the text and a voice ID, optionally pick the model variant and output format, optionally tune the voice settings, and UnificAlly returns a finished audio URL after the task completes.

    ElevenLabs TTS jobs use elevenlabs/text-to-speech on https://api.unifically.com/v1/tasks, signed with a bearer key from the API keys page. Choose a voice ID from GET /v1/resources/elevenlabs/voices or pass sample URLs to clone one.

    Send text and voice inside input, and pick the engine with model_id (eleven_flash_v2_5 by default, or eleven_multilingual_v2, eleven_v3, eleven_turbo_v2_5). When the task reaches completed, the audio is at output.audio_url; output_format and seed control file type and repeatability.

    Four. Flash v2.5 (~75 ms first audio, 32 languages, 40,000 character limit), Turbo v2.5 (~250 ms, 32 languages, 40,000 chars), Multilingual v2 (29 languages, 10,000 chars, the default for long-form work), and V3 (70+ languages, 5,000 chars, the most expressive).

    Eighteen total. MP3 at 32, 64, 96, 128, and 192 kbps. Opus at 32, 64, 96, 128, and 192 kbps. Raw PCM at 16, 22.05, 24, 44.1, and 48 kHz. WAV 44.1 kHz. And telephony-grade ulaw_8000 and alaw_8000 for 8 kHz voice circuits. The default is mp3_44100_128.

    Character limit depends on the model. Flash v2.5 and Turbo v2.5 accept up to 40,000 characters per call. Multilingual v2 caps at 10,000. V3 caps at 5,000. Past these limits, split the text into multiple calls.

    Yes. Pass an integer seed in the range 0 to 4,294,967,295. The same text, voice, model, voice settings, and seed return the same audio. Useful for regression tests and deterministic playback in games and assistive tech.

    Five things. Stability trades emotion for monotone, similarity boost controls how closely the output matches the source voice, style amplifies the speaker's character at the cost of latency, speed multiplies normal pace, and use_speaker_boost adds extra similarity at a small latency cost.

    Yes. Voice cloning is set up inside ElevenLabs and the resulting voice ID becomes selectable here. Pull your voice list from the resources catalog and any returned ID, including clones, drops in as the voice parameter.

    There is no free tier. Every new UnificAlly account gets a $0.50 signup balance, around 20,000 characters of speech on the default Flash v2.5 model ($0.024 per 1,000 characters), usable with your API key from signup. After that, billing is pay-per-use with no subscription, and your balance never expires.

    UnificAlly bills per 1,000 characters of input text: $0.024/1000 characters on Flash v2.5 and Turbo v2.5, $0.048/1000 characters on Multilingual v2 and $0.048/1000 characters on V3, with every letter, space and punctuation mark counted. There is no monthly plan, no character allowance that resets, and failed tasks are not billed.

    On this endpoint, tags in square brackets are a V3 feature (eleven_v3); they are not documented for Flash v2.5, Turbo v2.5 or Multilingual v2, so expect those models to treat them as text. For the most reliable tag following, including several tags stacked in one line, use the Eleven v4 route, which is a separate model ID on the same key.

    Start with the premade set (about 21 stable official voices such as Liam, used in the samples on this page) from GET /v1/resources/elevenlabs/voices, then widen to the shared library or your own clones. Pick a voice by the job: a neutral mid-register voice for notifications and IVR, a warmer narrator for long-form, and preview three or four candidates on the same line before committing, since the voice changes the result more than any setting.

    Create a UnificAlly account and copy your key from the dashboard. That one key calls every ElevenLabs route here (TTS, dialogue, sound effects, speech-to-text, voice changer) plus every other video, image, audio and text model on UnificAlly, with no separate ElevenLabs subscription needed.

    Guias e comparações do ElevenLabs

    Confira preços, limites e resultados testados antes de usar este modelo.