Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.unifically.com/llms.txt

Use this file to discover all available pages before exploring further.

Generate high-quality speech audio from text using ElevenLabs models with a variety of voices.

Model

elevenlabs/text-to-speech

Parameters

ParameterTypeRequiredDefaultDescription
textstringYes-Text to convert to speech
voicestringYes-Voice ID to use
model_idstringNoeleven_flash_v2_5TTS model (see models below)
output_formatstringNomp3_44100_128Audio output format (see formats below)
language_codestringNoautoISO 639-1 language code to force language
seedintegerNo-Seed for deterministic output (0–4294967295)
voice_settingsobjectNo-Fine-tune voice behavior (see below)

voice_settings

FieldTypeDescription
stabilitynumber0–1. Lower = more emotional range, higher = more monotone
similarity_boostnumber0–1. How closely to match the original voice
stylenumber0–1. Amplifies the style of the original speaker. Increases latency
speednumberSpeech speed multiplier. 1.0 = normal, <1 = slower, >1 = faster
use_speaker_boostbooleanBoost similarity to original voice. Slightly increases latency

Available Models

ModelDescriptionLanguagesChar Limit
eleven_flash_v2_5Ultra-fast, low latency (~75ms)3240,000
eleven_turbo_v2_5Balanced quality and speed (~250ms)3240,000
eleven_multilingual_v2Highest quality, rich emotion2910,000
eleven_v3Most expressive, dramatic delivery70+5,000

Output Formats

FormatDescription
mp3_22050_32MP3 22.05kHz 32kbps
mp3_44100_64MP3 44.1kHz 64kbps
mp3_44100_96MP3 44.1kHz 96kbps
mp3_44100_128MP3 44.1kHz 128kbps (default)
mp3_44100_192MP3 44.1kHz 192kbps
opus_48000_32Opus 48kHz 32kbps
opus_48000_64Opus 48kHz 64kbps
opus_48000_96Opus 48kHz 96kbps
opus_48000_128Opus 48kHz 128kbps
opus_48000_192Opus 48kHz 192kbps
pcm_16000Raw PCM 16kHz
pcm_22050Raw PCM 22.05kHz
pcm_24000Raw PCM 24kHz
pcm_44100Raw PCM 44.1kHz
pcm_48000Raw PCM 48kHz
wav_44100WAV 44.1kHz
ulaw_8000μ-law 8kHz (Twilio)
alaw_8000A-law 8kHz

Resources

Get available voices from the Resources API:
GET /v1/resources/elevenlabs/voices

Example

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "elevenlabs/text-to-speech",
    "input": {
      "text": "Hello world, this is a test.",
      "voice": "TX3LPaxmHKxFdv7VOQHJ",
      "model_id": "eleven_flash_v2_5",
      "output_format": "mp3_44100_128",
      "language_code": "en",
      "seed": 42,
      "voice_settings": {
        "stability": 0.5,
        "similarity_boost": 0.75,
        "speed": 1.0
      }
    }
  }'

Response

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "pending"
  }
}

Completed Response

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "completed",
    "output": {
      "audio_url": "https://files.storagecdn.online/audio/abc123.mp3"
    }
  }
}