# Text to speech API

https://getmegabrain.com/media/text-to-speech · prices from the live MegaBrain catalogue

> MegaBrain runs 5 text-to-speech models on one API key: MiniMax Speech 2.8 HD, ElevenLabs v3, Kokoro TTS, ElevenLabs Multilingual v2 and ElevenLabs Turbo v2.5. At default settings the lowest price is Kokoro TTS at $0.024 per 1,000 characters; the highest is ElevenLabs v3 at $0.12 per 1,000 characters. Prices are in US dollars from the live MegaBrain catalogue; a job the provider fails is refunded in full.

Every model on MegaBrain that turns text into natural speech, for voice-overs, videos, apps and agents. Try a voice in the browser or call the API on one key, paid per 1,000 characters from a prepaid US-dollar balance, with no voice subscription.

## Text-to-speech models and prices

| Model | ID | Price |
|---|---|---|
| [MiniMax Speech 2.8 HD](https://getmegabrain.com/media/minimax/speech-2.8-hd) | `minimax/speech-2.8-hd` | $0.12 per 1,000 characters |
| [ElevenLabs v3](https://getmegabrain.com/media/elevenlabs/tts/eleven-v3) | `elevenlabs/tts/eleven-v3` | $0.12 per 1,000 characters |
| [Kokoro TTS — American English](https://getmegabrain.com/media/kokoro/american-english) | `kokoro/american-english` | $0.024 per 1,000 characters |
| [ElevenLabs Multilingual v2](https://getmegabrain.com/media/elevenlabs/tts/multilingual-v2) | `elevenlabs/tts/multilingual-v2` | $0.072 per 1,000 characters |
| [ElevenLabs Turbo v2.5](https://getmegabrain.com/media/elevenlabs/tts/turbo-v2.5) | `elevenlabs/tts/turbo-v2.5` | $0.036 per 1,000 characters |

## Which voice model to pick

ElevenLabs v3 is the most expressive: audio tags like [whispers] or [laughs] steer the delivery in 70+ languages. MiniMax Speech 2.8 HD gives clear studio voices in 30+ languages with emotions and timed pauses. Kokoro is a small open model for fast American English at the lowest price.

## Priced by the length of the text

You pay for the characters you send, counted exactly: a 500-character paragraph costs half the price per 1,000 characters in the table. Nothing is charged by the minute of audio, and a failed job is refunded.

## Voice-over for a video

Generate the clip with a video model with its sound off, generate the narration here and put them together: the usual pipeline for Reels, TikTok and product videos.

## Call it

```python
import os, time, requests

BASE = "https://getmegabrain.com/api/gateway/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MEGABRAIN_API_KEY']}"}

job = requests.post(f"{BASE}/queue/elevenlabs/tts/eleven-v3", headers=HEADERS, json={
  "text": "Welcome aboard! This voice was generated through the MegaBrain API."
}).json()

while requests.get(job["status_url"], headers=HEADERS).json()["status"] not in ("COMPLETED", "FAILED"):
    time.sleep(2)

print(requests.get(job["response_url"], headers=HEADERS).json())
```

## FAQ

**How much does text-to-speech cost through an API?**

MegaBrain runs 5 text-to-speech models on one API key: MiniMax Speech 2.8 HD, ElevenLabs v3, Kokoro TTS, ElevenLabs Multilingual v2 and ElevenLabs Turbo v2.5. At default settings the lowest price is Kokoro TTS at $0.024 per 1,000 characters; the highest is ElevenLabs v3 at $0.12 per 1,000 characters. Prices are in US dollars from the live MegaBrain catalogue; a job the provider fails is refunded in full.

**Do I need an account with each model’s maker?**

No. Sign up on MegaBrain, top up the balance by card and create one API key: it works for every model in the table, for the other image, video and audio models and for the text models.

**How is generation paid for?**

From a prepaid US-dollar balance at the price in the table, with no subscription. The price of a job is held when it is submitted and refunded in full if the provider fails it.

**Which voices can I use?**

Each model has its own: ElevenLabs v3 takes a voice name such as Rachel, Aria or George, MiniMax Speech a voice id such as Wise_Woman or Deep_Voice_Man, Kokoro one of 20 American English voices. The list is on each model’s page. Voice cloning is not offered.

**How do I call it from code?**

A POST request to https://getmegabrain.com/api/gateway/v1/queue/<model id> submits the job; then poll status_url until it is COMPLETED and fetch the audio link from response_url. There is a Python example below, and every model’s parameters are on its page.
