Text to speech

MAI-Voice-2.1

MAI-Voice-2.1 is our highest-fidelity, most expressive text-to-speech model, delivering rich, natural speech across 23 languages. It extends the MAI-Voice family with broad multilingual coverage, gated instant voice cloning, and strong long-form generation capabilities. With its detailed prosody, nuanced expressiveness, and studio-grade audio quality, MAI-Voice-2.1 is ideal for experiences where maximum voice quality and fidelity are required - long-form narration, brand-defining audio etc.

MP3, WAV, OPUS, PCM, AAC, FLAC · 4 voices · Up to 4,096 characters

$23.1Per 1M characters

Pricing

Price

Per 1M characters
$23.1

Includes the MiniRouter fee. Tokens are not charged.

Estimate your cost

Priced per character of input text.

44 / 4,096 characters

Estimated cost

$0.001016

Includes the MiniRouter fee.

Estimate only; nothing is sent. Your charge settles to the provider’s reported characters plus the MiniRouter fee.

Use the Speech API

Set MINIROUTER_API_KEY to your inference key and copy the example.

curl --fail-with-body --retry 0 --max-time 120 \
  https://api.minirouter.sh/v1/audio/speech \
  -H "Authorization: Bearer $MINIROUTER_API_KEY" \
  -H 'Content-Type: application/json' \
  -D response.headers --output speech.mp3 \
  --data '{
  "model": "microsoft/mai-voice-2.1",
  "input": "The quick brown fox jumps over the lazy dog.",
  "voice": "en-US-Harper",
  "response_format": "mp3"
}'

Keep the request ID and check Request logs for the settled cost. A failed or disconnected request may still incur a cost; these examples disable automatic retries.

How it works

How it works

Endpoint
POST /v1/audio/speech
OpenAI speech body: model, input, voice, response_format, speed, instructions. Raw audio bytes come back.
Limits
4,096 characters
Speed 0.25–4.0. No streaming.
Formats
mp3, wav, opus, pcm, aac, flac
mp3 by default.
Voices
en-US-Harper, en-US-Nova, en-US-Davis, en-US-Jenny
Pass one as voice.

Every model, one key.