API reference · Media

Text-to-speech

Synthesize speech from text. Returns MP3 audio.

POST/v1/audio/speech3 per 100 characters
view as markdown

The response body is the MP3 itself (audio/mpeg) — pipe it straight to a file or an audio element. Input is capped at 5,000 characters per request.

Voices: aria (female), orion (male). Credits are charged per started block of 100 input characters — a 250-character line costs 9 credits.

Request body

inputstringrequired

The text to speak.

voicestringrequired

aria or orion.

modelstring

Only eroq-voice-one today.

curl https://eroq.ai/v1/audio/speech \
  -H "Authorization: Bearer $EROQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "eroq-voice-one",
  "input": "That noise is the reactor missing its coolant flush. Again.",
  "voice": "aria"
}' \
  --output speech.mp3
/v1/audio/speech
→ POST /v1/audio/speech
Press run — this replays a real exchange from the docs' own data. No key, no request, no charge.

Response

audio/mpeg
(binary MP3 body — audio/mpeg)