Authorizations
Bearer token authentication. Get your API key from the dashboard.
Body
application/json
One of the available TTS models
Example:
"gpt-4o-mini-tts"
The text to generate audio for. The maximum length is 4096 characters
Maximum length:
4096The voice to use when generating the audio
Available options:
alloy, echo, fable, onyx, nova, shimmer The format to audio in
Available options:
mp3, opus, aac, flac, wav, pcm The speed of the generated audio
Required range:
0.25 <= x <= 4Response
The audio file content
The response is of type file.