Request Body
string
required
The TTS model to use. Options include
tts-1 and tts-1-hd.string
required
The text to generate audio for. Maximum length is 4096 characters.
string
required
The voice to use. Supported voices:
alloy, echo, fable, onyx, nova, shimmer.string
default:"mp3"
The audio format. Supported formats:
mp3, opus, aac, flac, wav, pcm.number
default:"1.0"
The speed of the generated audio. Range: 0.25 to 4.0.
Response
Returns the audio file content in the requested format. The response has the appropriateContent-Type header based on the format.
