MAI-Voice-2 Flash
MAI-Voice-2 Flash text to speech — low-latency speech for voice agents, billed on input length.
The low-latency tier of MAI-Voice-2, built for voice agents, call centres, and accessibility tooling where the user is waiting on the audio. Same 15-language coverage at roughly a third less per character.
No credit card required. Takes 30 seconds.
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.
Pricing
Per character: $0.0317/1K chars
Endpoint
/v1/media/queue
Strengths
Tuned for interactive voice where a caller is waiting — sub-second-class synthesis for short utterances.
Keeps MAI-Voice-2's 15 languages and 18 locales, so a Flash-based agent is not linguistically narrower.
Roughly a third less than the full model, which matters when every turn of a conversation is synthesised.
Clean telephony- and app-ready audio without post-processing.
Quick start
Copy this snippet and start making calls with MAI-Voice-2 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-flash",
"prompt": "Thanks for calling. I can help with that — can you confirm the last four digits of your account number?",
"options": {
"voice": "en-US-Harper:MAI-Voice-2"
}
}),
});
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? }Why use MAI-Voice-2 Flash through YepAPI?
MAI-Voice-2 Flash API — low-latency speech for voice agents
MAI-Voice-2-Flash is the low-latency tier of Microsoft's MAI-Voice-2, aimed at voice agents, call centres, accessibility tooling, and anything else where the caller is waiting on the audio.
On YepAPI it is a single `POST /v1/media/queue` call billed at $0.0317 per 1,000 characters — about a third less than the full MAI-Voice-2 — 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, built for voice agents, call centres, and accessibility tooling where the user is waiting on the audio. Same 15-language coverage at roughly a third less per character.
Pricing for MAI-Voice-2 Flash through YepAPI is based on usage. No monthly minimums — you only pay for what you use.
Sign up for a free API key, then send requests to the /v1/media/queue endpoint.
Ready to use MAI-Voice-2 Flash?
$5 free credit on signup. No credit card required. Pay per call.
Explore more models
MAI Image 2.5 Pro
MicrosoftMicrosoft MAI Image 2.5 Pro from $0.29 per image — flagship-quality generation on the unified media endpoint.
MAI Image 2.5
MicrosoftMicrosoft MAI Image 2.5 from $0.13 per image — general-purpose generation through one API key.
MAI-Voice-2
MicrosoftMAI-Voice-2 text to speech — expressive speech in 15 languages, billed on input length.