Skip to content
Dashboard

MAI-Voice-2

Microsoft AI's highest-fidelity text-to-speech model, with expressive multilingual voices and consistent speakers across long-form narration. Served through Azure Speech (preview). Your use is subject to Microsoft AI's Terms & Privacy Policies.

Input price
Input $22, Per 1M characters
import { experimental_generateSpeech as generateSpeech } from 'ai';
import { gateway } from '@ai-sdk/gateway';
import { writeFile } from 'node:fs/promises';
const result = await generateSpeech({
model: gateway.speechModel('microsoft/mai-voice-2'),
text: 'Hello from the Vercel AI Gateway!',
voice: 'en-US-Harper',
});
await writeFile('speech.mp3', result.audio.uint8Array);
Read docs

Copy link to headingPlayground

Try out MAI-Voice-2 by Microsoft AI. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.

microsoft logo
Text
The text the model will read aloud.
Voice
microsoft logo

Your generated audio will appear here

Copy link to headingProviders

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Checking availability for your team
Provider
Input
Capabilities
ZDR
No Training
Free AI Gateway Credit
Release Date
$22/M chars
06/02/2026

Copy link to headingMore models by Microsoft AI

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
Providers
ZDR
No Training
Free AI Gateway Credit
Release Date
—
$0.54/hr
—
azure logo
10/01/2026
—
$22/M chars
—
azure logo
10/01/2026
—
$15/M chars
—
azure logo
10/01/2026
—
$0.10/hr
—
azure logo
09/03/2026
—
$15/M chars
—
azure logo
07/23/2026
—
$0.36/hr
—
azure logo
06/01/2026