Text to speech

Text to speech API

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.

The short answer

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.

Text-to-speech models and prices

Prices in US dollars from the MegaBrain catalogue; they update automatically. Each model’s page has examples, every parameter and a playground.

ModelTaskPrice
MiniMax Speech 2.8 HD
minimax/speech-2.8-hd
Text to speech$0.12 per 1,000 characters
ElevenLabs v3
elevenlabs/tts/eleven-v3
Text to speech$0.12 per 1,000 characters
Kokoro TTS — American English
kokoro/american-english
Text to speech$0.024 per 1,000 characters
ElevenLabs Multilingual v2
elevenlabs/tts/multilingual-v2
Text to speech$0.072 per 1,000 characters
ElevenLabs Turbo v2.5
elevenlabs/tts/turbo-v2.5
Text to speech$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.

Text to video: models

First request

Generation runs through a queue: a POST request submits the job, then the script polls status_url and fetches the result from response_url. Create the key on the API key page after you sign up.

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())

Questions and answers

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.

Get your API key

Sign-up is open. Create an account, top up the balance by card and create a key: it works for every text, image, video and audio model in the catalogue. Credits never expire.

Questions? Write to team@getmegabrain.com