cURL
curl --request POST \ --url https://tokens.flex.ai/v1/audio/speech \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "model": "voxtral-4b-tts", "input": "<string>", "voice": "neutral_female" } '
"<string>"
Virtual API key. Create one from the FlexAI dashboard. Pass as Authorization: Bearer sk-xxxx.
Authorization: Bearer sk-xxxx
"voxtral-4b-tts"
Text to synthesize.
"neutral_female"
Audio bytes (WAV).
The response is of type file.
file
Was this page helpful?