# elevenlabs/eleven_v3

Source: https://docs.sociaro.com/models/elevenlabs-eleven-v3/

ElevenLabs Eleven v3 text-to-speech: emotionally rich, expressive delivery with dramatic range, in 70+ languages, up to 5,000 characters per request.

ElevenLabs offers no speed control on this model.

|  |  |
| --- | --- |
| Slug | `elevenlabs/eleven_v3` |
| Kind | audio |
| Vendor | elevenlabs |
| Endpoint | `POST /v1/audio/speech` |

[View pricing and billing conditions](https://docs.sociaro.com/models/elevenlabs-eleven-v3/#pricing)

## Example request

cURL

```bash
curl https://api.sociaro.com/v1/audio/speech \
  -H "Authorization: Bearer $SOCIARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
        "model": "elevenlabs/eleven_v3",
        "input": "Hello from Sociaro.",
        "voice": "alloy",
        "response_format": "mp3"
      }' \
  --output speech.mp3
```

Python

```python
# Requires Python 3 and requests (pip install requests).
from pathlib import Path
import os
import requests

payload = {'model': 'elevenlabs/eleven_v3',
 'input': 'Hello from Sociaro.',
 'voice': 'alloy',
 'response_format': 'mp3'}

response = requests.post(
    'https://api.sociaro.com/v1/audio/speech',
    headers={
        'Authorization': 'Bearer ' + os.environ['SOCIARO_API_KEY'],
        'Content-Type': 'application/json',
    },
    json=payload,
    timeout=120,
)
response.raise_for_status()
Path('speech.mp3').write_bytes(response.content)
```

JavaScript

```javascript
// Run as an .mjs file with Node.js 22 or later.
import { writeFile } from "node:fs/promises";

const payload = {
  "model": "elevenlabs/eleven_v3",
  "input": "Hello from Sociaro.",
  "voice": "alloy",
  "response_format": "mp3"
};

const response = await fetch("https://api.sociaro.com/v1/audio/speech", {
  method: "POST",
  headers: {
    "Authorization": "Bearer " + process.env.SOCIARO_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify(payload),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
await writeFile("speech.mp3", new Uint8Array(await response.arrayBuffer()));
```

## Parameters

| Field | Type | Required | Default | Values | What it does |
| --- | --- | --- | --- | --- | --- |
| `input` | string | yes | — | text, within the model's character limit (above) | What to say. |
| `voice` | string | yes | — | an ElevenLabs voice id, or alloy · amber · ash · august · blue · coral · lily · onyx · sage · verse | The OpenAI-style names are mapped to ElevenLabs voices (alloy is Rachel, ash is Domi, coral is Aria, …); any other value is passed on as a voice id. |
| `response_format` | string | no | pcm (44.1 kHz) | mp3 · pcm · opus, or an ElevenLabs output format such as mp3_44100_128 | mp3 is 44.1 kHz at 128 kbps and opus 48 kHz at 128 kbps. Send mp3 for a playable file: the default is raw PCM. |

## Pricing

| Billable unit and options | Rate (USD) |
| --- | --- |
| per 1K characters | $0.096 |

[View this model in the pricing catalogue](https://sociaro.com/pricing?model=elevenlabs%2Feleven_v3). Your [billing logs](https://docs.sociaro.com/billing/index.md) show the actual charge for each request.
