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