Text to speech
API Reference
Text to speech
POST
Text to speech
Body
application/json
Request body for text-to-speech conversion.
Text to convert into speech. Required.
Optional language code to control language/voice selection.
Desired audio format for the returned speech.
Available options:
mp3, wav, opus, flac, aac Playback speed multiplier for the generated speech (1.0 = normal).
Whether the response will be streamed as SSE or returned as raw audio.
Available options:
sse, audio Response
Audio bytes in requested response_format
The response is of type file.

