Skip to main content
POST
Generates speech for the given text and returns raw audio bytes. The endpoint is drop-in compatible with the OpenAI Audio API — point the OpenAI SDK at https://api.tts.runatlas.com/v1 with your sk_ key.

Authorization

string
required
Bearer sk_… — your secret API key.

Body

string
required
The voice id, e.g. lylla. List available voices via /v1/models.
string
required
The text to speak. May contain inline audio tags — e.g. <|laugh|> That is hilarious. — for laughs, pauses, and emotional delivery.
string
default:"wav"
One of wav, mp3, pcm, opus, flac. With pcm, audio is streamed to the response as it is synthesized (lowest time-to-first-byte).
number
default:"1.0"
Playback speed, 0.7 to 2.0. 1.0 is the voice’s natural pace and what you get when the field is omitted. Pitch is preserved, and the same value behaves the same on every voice. Values outside the range are rejected with a 400.
string
Accepted for OpenAI SDK compatibility but ignored — the voice selects the model.

Response

Raw audio bytes with the matching Content-Type (audio/wav, audio/mpeg, audio/pcm, audio/opus, or audio/flac) and Cache-Control: no-store.
header
Model inference time for this request, in milliseconds.
header
Total gateway time in milliseconds. Subtract x-upstream-ms to get exact gateway overhead for the same request.