v1

latestOpenAPI 3.0.3MIT2026-07-132953108.7 KB
OpenAI Integration
Audio

OpenAI Compatible - Create Speech

OpenAI-compatible speech synthesis endpoint. Drop-in replacement for OpenAI's audio/speech API with identical request/response format.

post/openai/v1/audio/speech

Request body

model'tts-1' | 'tts-1-hd' required

TTS model to use

inputstring required

Text to generate audio for (max 4096 characters)

voice'alloy' | 'echo' | 'fable' | 'onyx' | 'nova' | 'shimmer' required

Voice to use when generating the audio

response_format'mp3' | 'opus' | 'aac' | 'flac' | 'wav' | 'pcm'

Format to audio in

speednumber

Speed of the generated audio (0.25 to 4.0)

instructionsstring

Additional instructions for voice synthesis

stream_format'sse'

Enable streaming with Server-Sent Events

Example request

{
  "model": "tts-1",
  "input": "The quick brown fox jumped over the lazy dog.",
  "voice": "alloy",
  "response_format": "mp3",
  "speed": 1,
  "instructions": "Speak slowly and clearly",
  "stream_format": "sse"
}

Response

Audio data