OpenAI TTS API
Generates speech audio from the provided text using OpenAI's Text-to-Speech service
Request Body
application/json
Optionaltext
RequiredstringMinimum length:
1
Maximum length: 150
voice
stringThe voice to use for speech generation
Default:
"alloy"
Value in: "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"
model
stringThe TTS model to use
Default:
"tts-1"
Value in: "tts-1" | "tts-1-hd"
token
RequiredstringOpenAI API key for authentication
Minimum length:
1
Audio file containing the generated speech