Use case
Text-to-speech for AI agents and LLM chatbots
Send an agent reply to POST /v1/tts and get back a signed audio URL. Use voice_id eve, ara, rex, sal, or leo, and set language to auto or a specific code.
Call POST https://api.sayitapi.com/v1/tts with the SAYIT-API-KEY header. The JSON body takes text, voice_id, language, output_format, speed, and speech_tags. output_format is mp3 or wav, speed is 0.5 to 2.0, and speech_tags enables inline tags.
Set language to auto to speak the text as written, or pass a language code and SayIt translates the reply before speaking it (57 languages, with native voice support for 20+). That lets one English-speaking agent answer users in their own language. See the voices page for voice IDs and the API docs for request details.
The response JSON includes audio_url, characters_used, and duration_seconds. audio_url is signed and valid for 24 hours. Short requests under 500 characters usually return in under a second.
For longer LLM replies, split the text into sentences or paragraphs and synthesize as they stream. tts.complete webhooks are available when you need a server-side completion event. Per-minute rate limits depend on your plan.
New accounts get 10,000 free characters on signup with no card. One-time packs are 1M characters for $25, 5M for $100, and 20M for $360; characters never expire. Crypto payment is handled by NOWPayments.
- Keep each request under 500 characters when latency matters.
- Use language auto when the reply is already in the right language; pass a code when you want it translated first.
- Pick one voice_id per agent persona: eve, ara, rex, sal, or leo.
- audio_url expires after 24 hours, so download the file if you need to keep it.
- Use tts.complete webhooks for server-side follow-up instead of polling.
- speed accepts 0.5 to 2.0; the engine applies 0.7 to 1.5. Enable speech_tags only when you need inline tags.
Speak an agent reply
curl -X POST https://api.sayitapi.com/v1/tts \
-H "SAYIT-API-KEY: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Your agent reply goes here.","voice_id":"eve","language":"auto"}'Powered by Grok TTS. Generated audio is deleted after 24 hours.
API accepts 0.5–2.0. The speech engine applies 0.7–1.5.
curl -X POST https://api.sayitapi.com/v1/tts \
-H "SAYIT-API-KEY: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Hello! This is SayIt. <emphasis>Important words</emphasis> stand out, and a pause [pause] sounds natural.","voice_id":"eve","language":"en","output_format":"mp3","speech_tags":true,"speed":1}'Live demo uses a server-side key, limited to 250 characters. Audio expires after 24 hours.