Skip to main content
POST
/
openai
/
v1
/
audio
/
speech
Error
A valid request URL is required to generate request examples
"<string>"

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your provider API key or Bifrost authentication token. Virtual keys (prefixed with sk-bf-) can also be passed here.

Body

application/json
model
string
required

Model identifier (e.g., tts-1, tts-1-hd)

Example:

"tts-1"

input
string
required

Text to convert to speech

voice
enum<string>

Voice to use

Available options:
alloy,
echo,
fable,
onyx,
nova,
shimmer
response_format
enum<string>
Available options:
mp3,
opus,
aac,
flac,
wav,
pcm
speed
number
Required range: 0.25 <= x <= 4
stream_format
enum<string>

Set to 'sse' for streaming

Available options:
sse
fallbacks
string[]

Response

Successful response

The response is of type file.