Generate high-quality speech audio from text using ElevenLabs v2.5 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_5Model version

Available Models

ModelDescription
eleven_flash_v2_5Fast, good quality (default)
eleven_turbo_v2_5Fastest generation
eleven_multilingual_v2Multilingual support

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"
    }
  }'

Example - Turbo Model

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": "This is generated with the turbo model for faster results.",
      "voice": "TX3LPaxmHKxFdv7VOQHJ",
      "model_id": "eleven_turbo_v2_5"
    }
  }'

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/abc123.mp3"
    }
  }
}

Pricing

ModelPrice
eleven_flash_v2_5$0.000092/character
eleven_turbo_v2_5$0.000092/character
eleven_multilingual_v2$0.000184/character