Error
A valid request URL is required to generate request examples"<string>"{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"model_requested": "<string>",
"request_type": "<string>"
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"model_requested": "<string>",
"request_type": "<string>"
}
}OpenAI Integration
Create speech (OpenAI TTS)
Generates audio from text using OpenAI TTS. Supports streaming via SSE when stream_format is set to ‘sse’.
Note: This endpoint also works without the /v1 prefix (e.g., /openai/audio/speech).
POST
/
openai
/
v1
/
audio
/
speech
Error
A valid request URL is required to generate request examples"<string>"{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"model_requested": "<string>",
"request_type": "<string>"
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"model_requested": "<string>",
"request_type": "<string>"
}
}Authorizations
BearerAuthBasicAuthVirtualKeyAuthApiKeyAuth
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 identifier (e.g., tts-1, tts-1-hd)
Example:
"tts-1"
Text to convert to speech
Voice to use
Available options:
alloy, echo, fable, onyx, nova, shimmer Available options:
mp3, opus, aac, flac, wav, pcm Required range:
0.25 <= x <= 4Set to 'sse' for streaming
Available options:
sse Response
Successful response
The response is of type file.
Was this page helpful?
⌘I

