Generates audio from the input text.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
input
The text to generate audio for. The maximum length is 4096 characters
ID of the model to use
The voice to use.
Available voices for OpenAI
alloy, echo, fable, onyx, nova, and shimmer
Available voices for ElevenLabs
aria, roger, sarah, laura, charlie, george, callum, river, liam, charlotte, alice, matilda, will, jessica, eric, chris, brian, daniel, lily, bill
The format to audio in. Supported formats are mp3, opus, aac, flac, wav, and pcm. If a format is provided but not supported by the provider, the response will be in the default format. When the provided format is not supported by the provider, the response will be in the default format.
mp3, opus, aac, flac, wav, pcm The speed of the generated audio.
The name to display on the trace. If not specified, the default system name will be used.
Array of fallback models to use if primary model fails
Retry configuration for the request
Load balancer configuration for the request.
Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
The audio file content.