Audio
Generate speech
Generates audio from the input text.
POST
Generate speech
Authorizations
Body
application/json
One of the available TTS models: tts-1, tts-1-hd or gpt-4o-mini-tts.
The voice to use when generating the audio. Supported voices are alloy, ash, ballad, coral, echo, fable, onyx, nova, sage, shimmer, and verse. Previews of the voices are available in the Text to speech guide.
Example:
"ash"
Response
200 - application/octet-stream
OK
The response is of type file.
Generate speech