v1
audio
Create Speech
Generate speech audio from text.
Generates audio from the input text using text-to-speech models. Supports multiple voices and output formats including mp3, opus, aac, flac, wav, and pcm.
Returns streaming audio data that can be saved to a file or streamed directly to users.
post/v1/audio/speech
Request body
Example request
{
"model": "openai/tts-1",
"input": "Hello, how are you today?",
"voice": "alloy",
"response_format": "mp3",
"speed": 1,
"stream_format": "sse"
}Response
Audio file stream