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.
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).
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.