# ElevenLabs — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.paywithlocus.com/llms.txt)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API |
> |---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Natural text-to-speech for ad voiceovers using Eleven Flash/Turbo and Multilingual models.

**Category:** AI / Audio | **Website:** [elevenlabs.io](https://elevenlabs.io) | **Docs:** [elevenlabs.io/docs/api-reference/text-to-speech/convert](https://elevenlabs.io/docs/api-reference/text-to-speech/convert)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/elevenlabs/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

> Also available via public x402 on Base (no account needed): [x402/elevenlabs.md](https://beta.paywithlocus.com/x402/elevenlabs.md)

## Endpoints

### Text to Speech

Convert text to MP3 or PCM speech with a curated or custom ElevenLabs voice ID.

**Estimated cost:** $0.05/1K chars (Turbo/Flash) or $0.10/1K chars (Multilingual) + $0.003

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `text` | string | Yes | Text to synthesize. |
| `voice_id` | string | Yes | ElevenLabs voice ID, including custom voices owned by the platform account. |
| `model_id` | string | Yes | 'eleven_turbo_v2_5', 'eleven_flash_v2_5', or 'eleven_multilingual_v2'. |
| `output_format` | string | No | 'mp3_44100_128' (default) or 'pcm_44100'. |
| `voice_settings` | object | No | Optional ElevenLabs voice stability, similarity, and style settings. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/elevenlabs/tts \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"<string>","voice_id":"<string>","model_id":"<string>","output_format":"<string>","voice_settings":"<object>"}'
```
