The best text to speech API depends on how your application produces and plays audio. ElevenLabs is a strong candidate for expressive narration and real-time speech with different model choices. Cartesia Sonic is worth evaluating for interactive agents that receive incremental text. Deepgram Aura is a practical option for developers building a speech pipeline with predictable character-based billing. Test each against your own language, connection and concurrency requirements before choosing.
This comparison uses provider documentation reviewed on December 4, 2026, and published third-party comparisons from Verli, APIScout and AssemblyAI. It focuses on programmable interfaces rather than consumer voiceover editors. We have not run a live API benchmark, and the selections are use-case recommendations rather than a measured performance ranking.
Compare three text-to-speech APIs
| Provider and example model | Documented API approach | Published pricing example | Best fit |
|---|---|---|---|
| ElevenLabs Eleven v4 / v4 Turbo | HTTP speech generation and supported real-time WebSocket routes | $0.08 / 1,000 characters for v4; $0.04 for v4 Turbo | Expressive narration and interactive speech |
| Cartesia Sonic 3.6 | WebSocket streaming and supported HTTP interfaces | $5 Pro plan with 100,000 monthly credits; one credit per character for Sonic | Incremental synthesis for interactive voice applications |
| Deepgram Aura-2 | HTTP and continuous text WebSocket | $0.030 / 1,000 characters on pay-as-you-go pricing | Speech pipelines and character-based cost planning |
The prices are US dollar examples from the checked pricing pages. Subscription fees, included credits, overage rules, other products and taxes can change the effective bill. Verify the selected model and account terms before making a production commitment.
1. ElevenLabs: flexible voice and model selection
ElevenLabs documents distinct models for long-form narration and lower-latency speech. Eleven v4 supports more than 90 languages and a larger text input limit than earlier expressive models, while v4 Turbo is designed for real-time use. Its standard TTS and text-to-dialogue WebSocket interfaces have different message formats and model compatibility. For a multi-speaker dialogue project, consult the dialogue-specific interface rather than assuming that the standard speech WebSocket supports every model.
Use ElevenLabs when expressive control and a selection of voices matter to the application. Audition the exact voice and language, and confirm rights to any cloned voice. For a comparison focused specifically on perceived realism, see our realistic text-to-speech model guide.
2. Cartesia: streaming text from interactive applications
Cartesia Sonic 3.6 is designed for streaming speech. Its documentation describes a WebSocket workflow that can produce audio for successive contexts. That can be helpful when an assistant generates text incrementally instead of producing an entire response at once.
Cartesia lists 20,000 monthly credits on its Free plan and 100,000 credits on its $5 Pro plan. Sonic uses one credit per character. The Pro plan lists a commercial-use license; the Free plan is intended for evaluation and personal use. Account-level concurrency, credit rollover and other services also affect deployment. Do not assume free evaluation rights cover commercial traffic.
3. Deepgram: integrate synthesis into a speech pipeline
Deepgram Aura-2 supports streaming speech through its WebSocket API. Its documented control messages include Flush, which finalizes queued text, and Clear, which discards buffered text and audio on the server. An application must also clear its own playback queue when a user interrupts.
The provider’s pay-as-you-go page lists Aura-2 at $0.030 per 1,000 characters and Aura-1 at $0.015 per 1,000 characters. Use the exact endpoint and model version for the selected service; newer speech endpoints may have different model identifiers and pricing. Deepgram also provides transcription services, although speech recognition, telephony and language model usage can be billed separately.
Choose the right streaming protocol
There are three distinct delivery patterns. A file-generation request sends complete text and receives a finished audio file. An HTTP streaming request can send complete text and receive audio chunks as they become available. A bidirectional WebSocket can accept partial text while returning audio, subject to the model and endpoint. Do not assume that streaming audio also means streaming text input.
| Scenario | Suitable interface | Main implementation concern |
|---|---|---|
| Pre-recorded narration | HTTP generation or HTTP streaming | File storage, voice consistency and regeneration |
| Read a complete assistant response aloud | HTTP streaming | Buffering and time to first playable audio |
| Speak while an LLM generates tokens | Bidirectional WebSocket where supported | Text segmentation, context lifecycle and interruptions |
Avoid sending every individual language model token immediately without considering the speech engine’s buffering and punctuation requirements. Group meaningful fragments and test the trade-off between early audio and natural phrasing. A barge-in event should stop local playback, cancel or clear the active synthesis context if supported, and prevent stale chunks from entering the next turn.
Calculate your text-to-speech API costs
Compare like-for-like billing units. A per-character price is not the same as a price per minute, and a subscription credit may not be equivalent to a character for every model. Count generated text, including retries, according to the provider’s billing rules. Our AI token pricing guide explains how to account separately for the language model that generates the script.
Suppose an application synthesizes 200,000 characters each month and another 10% of that volume is generated again because of retries or corrections. The illustrative total is 220,000 billable characters. The table applies the checked unit prices to the same volume, assuming all requests are billed at those rates.
| Model | Calculation | Illustrative speech usage |
|---|---|---|
| Eleven v4 | 220 × $0.08 | $17.60 |
| Eleven v4 Turbo | 220 × $0.04 | $8.80 |
| Deepgram Aura-2 | 220 × $0.030 | $6.60 |
For Cartesia, the same volume requires 220,000 Sonic credits. That exceeds the included 100,000 credits on Pro, so review available additional credit or plan options. Its Startup plan lists $49 for 1.25 million credits per month, but that does not mean every smaller workload requires an upgrade. Check actual credit balances and account options. The table is not a quotation or an estimate of a complete voice-agent bill.
Measure latency in your application
Vendor-reported model latency may exclude the network and application audio buffer. Verli’s July 2026 comparison measured time to first audio at production endpoints and found substantial variation across models. Because the tested versions and network conditions differ from today’s options, use the study as a reason to measure your own pipeline rather than as a current speed ranking.
Record timestamps from the moment your application submits a text fragment until the first audio can actually play. Repeat the same prompts on the same deployment region, with equivalent output formats and concurrent requests. Separate cold connections from reused connections.
| Metric | How to use it |
|---|---|
| Time to first playable audio | Measures how quickly users hear a response |
| P50 and P95 latency | Compares typical and slow responses |
| Real-time factor | Audio duration versus generation time; define the ratio consistently |
| Interruption recovery | Measures how reliably playback stops after a new user turn |
| Failure rate | Tracks failed requests, disconnects and retries |
For example, a target of 350 ms from text availability to playback can be broken down into a hypothetical 60 ms network and request overhead, 180 ms synthesis delay and 110 ms playback buffering. These components may overlap in practice; measure actual end-to-end latency rather than adding unrelated vendor figures. A faster model does not automatically produce a more responsive application if the rest of the pipeline is slow.
Integrate a TTS API into production
If your workflow also needs to edit recorded audio or video, our Descript API guide covers automated editing and export considerations.
Start with a server-side adapter that accepts text and a voice configuration, calls your selected provider and exposes normalized audio to the rest of the application. Keep provider-specific model IDs and credentials in configuration. Read our AI API integration guide for authentication and request fundamentals.
For a prototype, first generate a short file and validate its format. Then introduce streaming and measure playback delay. Handle unsupported languages, empty inputs, long text, rate limits and expired credentials explicitly. For telephony, confirm sample rate, codec and channel requirements before connecting the audio stream.
Set maximum text length, concurrent requests and spending limits. Use bounded retries and avoid blindly replaying text that may already have been synthesized. Cache reusable prompts when the provider license and privacy policy permit it, and keep secrets away from client applications. Check consent for voice cloning, data retention terms and regional processing requirements before sending customer conversations to a service.
Which text-to-speech API should you choose?
For a narration app, start with ElevenLabs and compare pronunciation, pacing and consistency across representative scripts. For a conversational product, compare Cartesia and Deepgram using the same turn-taking and interruption tests; include an appropriate ElevenLabs streaming model if expressive delivery is important. Select the provider that meets your measured quality, responsiveness and cost thresholds. Maintain an adapter so replacing a provider does not require rewriting the entire playback system.
Frequently asked questions
Which text-to-speech API is fastest? There is no universal fastest API across models, regions, output formats and concurrency. Test time to first playable audio and tail latency in your own deployment.
Are free text-to-speech APIs suitable for production? Some providers offer trial credits or recurring evaluation allowances. Check commercial-use permissions, concurrency and what happens when the quota runs out before relying on them.
Can a TTS API stream text from an LLM? Yes, when the chosen model and interface support incremental text input. Audio streaming over HTTP is not necessarily bidirectional text streaming.
What is the difference between TTS and speech-to-text? TTS turns written text into speech. Speech-to-text transcribes spoken audio. A conversational agent may use both, with separate billing and latency considerations.
