Skip to main content
POST
/
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 in provider/model format

input
string
required

Text to convert to speech

voice
required
fallbacks
string[]
stream_format
enum<string>

Set to "sse" to enable streaming

Available options:
sse
instructions
string
response_format
enum<string>
Available options:
mp3,
opus,
aac,
flac,
wav,
pcm
speed
number
Required range: 0.25 <= x <= 4
language_code
string
pronunciation_dictionary_locators
object[]
enable_logging
boolean
optimize_streaming_latency
boolean
with_timestamps
boolean

Response

Successful response

The response is of type file.