v45

latestOpenAPI 3.0.1raw.githubusercontent.com2026-06-2223106188.8 KB
Audio

Generates audio from the input text.

post/openai/v1/audio/speech

Request body

inputstring required

The text to generate audio for.

voicestring required

The voice to use when generating the audio. List of voices can be found here.

response_format'flac' | 'mp3' | 'mulaw' | 'ogg' | 'wav'

The format of the generated audio. Supported formats are flac, mp3, mulaw, ogg, wav.

sample_rate8000 | 16000 | 22050 | 24000 | 32000 | 44100 | 48000

The sample rate for generated audio

speednumber

The speed of the generated audio.

Example request

{
  "input": "The quick brown fox jumped over the lazy dog",
  "voice": "Fritz-PlayAI",
  "sample_rate": 48000,
  "speed": 1
}

Response

OK

All 23 operations