Text to speech
AssemblyAI TTS-1
AssemblyAI's speech model. Natural voices in English, Spanish, German, Italian, Portuguese and French, built for calls and voice agents.
MP3, WAV, PCM · 10 voices · Up to 4,096 characters
$15.75Per 1M characters
Price
- Per 1M characters
- $15.75
Includes the MiniRouter fee. Tokens are not charged.
Estimate your cost
Priced per character of input text.
44 / 4,096 characters
Estimated cost
Includes the MiniRouter fee.
Estimate only; nothing is sent. Your charge settles to the provider’s reported cost plus the MiniRouter fee.
Use the Speech API
Set MINIROUTER_KEY to your inference key and copy the example.
curl --fail-with-body --retry 0 --max-time 120 \
https://api.minirouter.sh/v1/audio/speech \
-H "Authorization: Bearer $MINIROUTER_KEY" \
-H 'Content-Type: application/json' \
-D response.headers --output speech.mp3 \
--data '{
"model": "assemblyai/tts-1",
"input": "The quick brown fox jumps over the lazy dog.",
"voice": "aai-kyla",
"response_format": "mp3"
}'Keep the request ID and check Request logs for the settled cost. A failed or disconnected request may still incur a cost; these examples disable automatic retries.
How it works
- Endpoint
- POST /v1/audio/speech
- OpenAI speech body: model, input, voice, response_format, speed, instructions. Raw audio bytes come back.
- Limits
- 4,096 characters
- Speed 1 only. No streaming.
- Formats
- mp3, wav, pcm
- mp3 by default.
- Voices
- aai-kyla, aai-sara, aai-peter, aai-carrie, aai-buford, aai-antonioluis (Antonio Luis), aai-magdalena, aai-giada, aai-nelson, aai-donatien
- Pass one as voice.
Pick a voice in the language you send.
English
- Kyla
- aai-kylaAmerican
- Sara
- aai-saraAmerican
- Peter
- aai-peterAmerican
- Carrie
- aai-carrieBritish
- Buford
- aai-bufordBritish
Other languages
- Antonio Luis
- aai-antonioluisSpanish, Mexican
- Magdalena
- aai-magdalenaGerman
- Giada
- aai-giadaItalian
- Nelson
- aai-nelsonPortuguese, Brazilian
- Donatien
- aai-donatienFrench
View chart data
| Voice | Voice ID | Language |
|---|---|---|
| Kyla | aai-kyla | English, American |
| Sara | aai-sara | English, American |
| Peter | aai-peter | English, American |
| Carrie | aai-carrie | English, British |
| Buford | aai-buford | English, British |
| Antonio Luis | aai-antonioluis | Spanish, Mexican |
| Magdalena | aai-magdalena | German |
| Giada | aai-giada | Italian |
| Nelson | aai-nelson | Portuguese, Brazilian |
| Donatien | aai-donatien | French |
A fixed pace and three formats.
- [ 01 ]
Formats
Ask for mp3, wav or pcm. AssemblyAI does not produce opus, aac or flac.
- [ 02 ]
Speed and style
TTS-1 speaks at its natural pace and takes no style instructions. Leave speed at 1 and omit instructions.
- [ 03 ]
Exact hold
The hold is characters × the per-character rate, including spaces and punctuation, settled to AssemblyAI's reported cost plus the MiniRouter fee.