Endpoints
Speech-to-Text: Transcriptions
Parameters
string
required
The transcription model to use. Use
whisper-1 for Whisper-compatible transcription.file
required
The audio file to transcribe. Accepted formats include
mp3, mp4, mpeg, mpga, m4a, wav, and webm. The file must be under 25 MB.string
The ISO-639-1 language code of the audio (e.g.
en, es, fr). Providing this improves accuracy and speed. If omitted, the model detects the language automatically.string
Optional text to guide the model’s transcription style or provide context about the audio content.
Text-to-Speech
Parameters
string
required
The text-to-speech model to use. Use
tts-1 for standard quality or tts-1-hd for higher quality audio.string
required
The text to convert to speech. Maximum length is 4,096 characters.
string
required
The voice to use for synthesis. Available options:
alloy, echo, fable, onyx, nova, shimmer.string
The audio format of the output. Supported values:
mp3, opus, aac, flac. Defaults to mp3.