Generates audio from text using OpenAI TTS. Supports streaming via SSE when stream_format is set to ‘sse’.
Note: This endpoint also works without the /v1 prefix (e.g., /openai/audio/speech).
Model identifier (e.g., tts-1, tts-1-hd)
"tts-1"
Text to convert to speech
Voice to use
alloy, echo, fable, onyx, nova, shimmer mp3, opus, aac, flac, wav, pcm 0.25 <= x <= 4Set to 'sse' for streaming
sse Successful response
The response is of type file.