Audio
Create Speech (Text-to-Speech)
Converts text to spoken audio using AI voice synthesis. Supports multiple voices, audio formats, and streaming capabilities.
post/v1/audio/speech
Request body
Example request
{
"model": "openai/tts-1",
"input": "Hello! This is a test of speech synthesis.",
"voice": "alloy",
"response_format": "mp3",
"instructions": "Speak slowly and clearly",
"stream_format": "sse"
}Response
Audio data or streaming response