Generate speech audio from text using a supported voice. Returns base64 audio.
cURL
curl --request POST \ --url https://behaviq.io/v1/audio/tts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "text": "<string>", "voice": "alloy", "speed": 2.125, "format": "mp3", "instructions": "<string>" } '
{ "audioBase64": "<string>", "contentType": "audio/mpeg" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
1
0.25 <= x <= 4
mp3
opus
aac
flac
wav
pcm
Response for status 200