Skip to main content
Audio endpoints:
  • GET /v1/audio/voices
  • POST /v1/audio/tts

List voices

This endpoint is public.
curl https://behaviq.io/v1/audio/voices
Example response:
{
  "voices": ["alloy", "ash", "ballad"]
}

Generate speech

curl https://behaviq.io/v1/audio/tts \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Please step back for a moment while I check that for you.",
    "voice": "alloy",
    "format": "mp3"
  }'
Request fields:
  • text required
  • voice required
  • speed from 0.25 to 4
  • format: mp3, opus, aac, flac, wav, pcm
  • instructions
The response includes audioBase64 and contentType. Each text-to-speech request costs 3 credits.