YepAPI

Command Palette

Search for a command to run...

MicrosoftText to Speech/v1/media/queue

MAI-Voice-2

MAI-Voice-2 text to speech — expressive speech in 15 languages, billed on input length.

Microsoft's expressive text-to-speech model and the current #1 on the design-arena TTS leaderboard. 15 languages across 18 locales, 24 kHz mono output, tuned for long-form narration and conversational agents.

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.0465/1K chars

Endpoint

/v1/media/queue

Strengths

Ranked #1 for speech

MAI-Voice-2 tops the design-arena text-to-speech leaderboard, and takes first place for audio realism as well.

15 languages, 18 locales

One model covers English, Spanish, French, German and eleven more languages without switching providers.

Expressive delivery

Fine-grained control over tone and pacing makes it suitable for narration and character work, not just flat readouts.

Long-form ready

Built for audiobooks, courseware, and accessibility playback where hours of audio have to stay consistent.

Quick start

Copy this snippet and start making calls with MAI-Voice-2.

// 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",
    "prompt": "Welcome back. Your report finished processing overnight, and there are three items that need your attention this morning.",
    "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 through YepAPI?

One API key for all models — no separate accounts
No monthly minimums — pay per call
Switch models with one line of code
Simple REST API — works from any language
Unified billing across all providers
No rate limits for most use cases

MAI-Voice-2 API — the top-ranked text-to-speech model

MAI-Voice-2 is Microsoft's expressive text-to-speech model, currently ranked first on the design-arena leaderboard for both text-to-speech and audio realism. It generates 24 kHz mono speech across 15 languages and 18 locales with fine-grained control over tone and delivery.

Through YepAPI you submit text to `/v1/media/queue`, poll the job, and download the audio — one key, billed on input length at $0.0465 per 1,000 characters, with no separate speech contract to sign.

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.

Marcus T.

SEO Platform Founder

One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.

Priya S.

Full-Stack Developer

The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.

Jake R.

Indie Hacker

Frequently asked questions

Microsoft's expressive text-to-speech model and the current #1 on the design-arena TTS leaderboard. 15 languages across 18 locales, 24 kHz mono output, tuned for long-form narration and conversational agents.

Pricing for MAI-Voice-2 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?

$5 free credit on signup. No credit card required. Pay per call.

Explore more models