MAI-Voice-2.1 Flash API
MAI-Voice-2.1 Flash text to speech — low-latency expressive speech in 23 languages, billed on input length.
The low-latency tier of MAI-Voice-2.1, optimised for real-time responsiveness. Natural, expressive speech across 23 languages and 97 voices at roughly a third less per character.
No credit card required. Takes 30 seconds.
MAI-Voice-2.1 Flash API pricing
Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated October 23, 2026.
| Billing | Price |
|---|---|
| Rate | $0.0316/1K chars |
| What it costs | Per job |
|---|---|
| Short reply200 characters | $0.0063 |
| Blog post narration10,000 characters (~1,600 words) | $0.316 |
| Audiobook chapter100,000 characters | $3.16 |
2,400+
Developers
1.2M+
API calls served
100+
Endpoints
$0.01
Per call
Yep, that's it.
Playground coming soon — use the API endpoint directly with your API key.
MAI-Voice-2.1 Flash specs
| Provider | Microsoft |
|---|---|
| Model ID | microsoft/mai-voice-2.1-flash |
| Endpoint | /v1/media/queue |
| Type | Text to Speech |
| Output formats | mp3 |
| Voices | 12 presets (default en-US-Harper:MAI-Voice-2.1-Flash) |
How to get a MAI-Voice-2.1 Flash API key
- 1
Create a free account
Sign up at yepapi.com with Google or email. It takes about 30 seconds and needs no card.
- 2
Create an API key
Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.
- 3
Call MAI-Voice-2.1 Flash
Send a request to /v1/media/queue with the x-api-key header and model "microsoft/mai-voice-2.1-flash".
- 4
Pay as you go
Usage is billed per request from your balance. Top up any amount; there is no subscription.
Strengths
Optimised for low latency, for voice agents and other interactive speech.
Keeps MAI-Voice-2.1's language coverage and 97 voices across 28 locales.
Natural intonation, rhythm, and emotional nuance at Flash speed.
Roughly a third less than MAI-Voice-2.1 per character.
Quick start
Copy this snippet and start making calls with MAI-Voice-2.1 Flash.
// Step 1: Submit job
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "microsoft/mai-voice-2.1-flash",
"prompt": "Thanks for holding. I've found your booking — would you like the earlier flight or the one after lunch?",
"options": {
"voice": "en-US-Harper:MAI-Voice-2.1-Flash"
}
}),
});
const { data } = await res.json();
const jobId = data.jobId;
// Step 2: Poll for result
const status = await fetch(`https://api.yepapi.com/v1/media/status/${jobId}`, {
headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status: "pending" | "processing" | "completed" | "failed"
// job.result: { text?, image?, audio?, video? }MAI-Voice-2.1 Flash vs similar models
Every model below runs on the same API key — switch by changing the model ID.
| Model | Provider | Price |
|---|---|---|
| MAI-Voice-2.1 Flash | Microsoft | $0.0316/1K chars |
| MAI-Voice-2 Flash | Microsoft | $0.0317/1K chars |
| MAI-Voice-2.1 | Microsoft | $0.0464/1K chars |
| MAI-Voice-2 | Microsoft | $0.0465/1K chars |
| Kokoro 82M | hexgrad | $0.0014/1K chars |
| Fish Audio Drama 3 | Fish Audio | $0.0042/1K chars |
| HeyGen Voice Turbo | HeyGen | $0.0084/1K chars |
| Sesame CSM 1B | Sesame | $0.0148/1K chars |
Why use MAI-Voice-2.1 Flash through YepAPI?
MAI-Voice-2.1 Flash API — low-latency speech from Microsoft AI
MAI-Voice-2.1-Flash is a low-latency text-to-speech model from Microsoft AI, optimised for real-time responsiveness. It produces natural, expressive speech across 23 languages, with human-like intonation, rhythm, and emotional nuance.
On YepAPI it is a single `POST /v1/media/queue` call billed at $0.0316 per 1,000 characters — roughly a third less than MAI-Voice-2.1 — on the same key that reaches every other speech, image, and video model.
Start generating in 30 seconds
$5 free credit on signup. No credit card required. Pay per call.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
The low-latency tier of MAI-Voice-2.1, optimised for real-time responsiveness. Natural, expressive speech across 23 languages and 97 voices at roughly a third less per character.
MAI-Voice-2.1 Flash costs $0.0316/1K chars through YepAPI, billed per request with no monthly fee. For example, a short reply (200 characters) costs about $0.0063.
Sign up at yepapi.com (Google or email, about 30 seconds), open the dashboard and create an API key. The same key works for MAI-Voice-2.1 Flash and every other model — no separate Microsoft account or waitlist.
New YepAPI accounts in most countries get free signup credit, enough to test MAI-Voice-2.1 Flash without a card. After that you pay per request at the rates above — there is no subscription.
Use "microsoft/mai-voice-2.1-flash" as the model on /v1/media/queue. The short alias "mai-voice-2-1-flash" also works.
Ready to use MAI-Voice-2.1 Flash?
$5 free credit on signup. No credit card required. Pay per call.
Explore more models
MAI-Voice-2.1
MicrosoftMAI-Voice-2.1 text to speech — studio-grade speech in 23 languages, billed on input length.
MAI-Voice-2 Flash
MicrosoftMAI-Voice-2 Flash text to speech — low-latency speech for voice agents, billed on input length.
MAI-Voice-2
MicrosoftMAI-Voice-2 text to speech — expressive speech in 15 languages, billed on input length.
Eleven v3 Conversational
ElevenLabsEleven v3 Conversational text to speech — Eleven v3 tuned for conversational agents, billed on input length.
HeyGen Voice
HeyGenHeyGen Voice text to speech — 10 built-in voices, 44.1 kHz PCM, billed on input length.
Gemini 3.1 Flash TTS
GoogleGemini 3.1 Flash TTS text to speech — 70+ languages, 200+ audio tags, billed on input length.
More Text to Speech models
- Eleven v4 API · ElevenLabs
- Eleven v3 API · ElevenLabs
- Eleven Turbo v2.5 API · ElevenLabs
- Eleven Multilingual v2 API · ElevenLabs
- MiniMax Speech 2.8 Turbo API · MiniMax
- Fish Audio S2.1 Pro API · Fish Audio
- Deepgram Flux TTS API · Deepgram
- Gemini 3.8 Flash Lite TTS API · Google
- Eleven Flash v2 API · ElevenLabs
- Eleven Flash v2.5 API · ElevenLabs
- Fish Audio S2.1 Pro Free API · Fish Audio
- HeyGen Voice Turbo API · HeyGen