Introduction
Microsoft MAI-Voice-2.1 Flash delivers fast spoken audio up to 4,096 characters with verified English and Spanish Flash voices.
| Field | Value |
|---|---|
| Input | Text |
| Output | Audio |
| Input limit | 4,096 characters / request |
| Audio formats | MP3, WAV, PCM (24 kHz) |
| Billing | Measured characters in text |
Key features & highlights
Text-to-speech synthesis in three formats
MAI-Voice-2.1 Flash from Microsoft reads scripts up to 4,096 characters aloud using 3 verified voices (default en-US-Harper:MAI-Voice-2.1-Flash), exporting MP3, WAV, or raw 24 kHz 16-bit PCM.
Request parameters
| Parameter | Required | Description |
|---|---|---|
text | Yes | Exact script for MAI-Voice-2.1 Flash to read aloud, from 1 to 4,096 characters including spaces and punctuation. at least 1 characters · at most 4096 characters |
voice_id | No | Select one of 3 verified MAI-Voice-2.1 Flash voices; defaults to en-US-Harper:MAI-Voice-2.1-Flash. |
output_format | No | Output encoding for MAI-Voice-2.1 Flash: mp3 (default), wav, or raw 24 kHz 16-bit PCM. |
Pricing
$0.013 / 1,000 characters
MAI-Voice-2.1 Flash usage is metered by characters in text.
Use cases
Real-time voice assistants
Turn LLM replies into spoken responses rapidly with MAI-Voice-2.1 Flash so live conversations stay snappy and natural.
Live customer-support agents
Power English and Spanish support bots using Harper, Grant, and Valeria Flash voices with minimal response lag.
High-volume notification feeds
Synthesize thousands of short status alerts, dispatch instructions, or delivery cues quickly in lightweight MP3.
Rapid script prototyping
Audition draft copy and pacing revisions on MAI-Voice-2.1 Flash before rendering final masters on full MAI-Voice-2.1.
Prompt guide & pro tips
Send concise conversational turns
Pass short replies or passages up to 4,096 characters into text; shorter sentences further minimize time-to-first-audio on MAI-Voice-2.1 Flash.
Specify a verified Flash voice ID
Choose en-US-Harper:MAI-Voice-2.1-Flash (default), en-US-Grant:MAI-Voice-2.1-Flash, or es-MX-Valeria:MAI-Voice-2.1-Flash.
Pick PCM or MP3 for speed
Select pcm for zero-transcoding 24 kHz 16-bit playback engines, mp3 for compact mobile delivery, or wav for uncompressed storage.
Keep voice personas aligned across tiers
Because Flash mirrors the three full MAI-Voice-2.1 personas, you can swap suffixes seamlessly when moving from preview to final master.
Introduction
Microsoft MAI-Voice-2.1 Flash delivers fast spoken audio up to 4,096 characters with verified English and Spanish Flash voices.
Key features
MAI-Voice-2.1 Flash from Microsoft reads scripts up to 4,096 characters aloud using 3 verified voices (default en-US-Harper:MAI-Voice-2.1-Flash), exporting MP3, WAV, or raw 24 kHz 16-bit PCM.
Use cases
Turn written onboarding scripts and release notes into spoken audio tracks with MAI-Voice-2.1 Flash, keeping phrasing exact.
Generate short spoken status updates with MAI-Voice-2.1 Flash in MP3 for mobile playback or WAV for broadcast workflows.
Usage tips
Write the exact words listeners should hear in MAI-Voice-2.1 Flash text within 4,096 characters, spelling out ambiguous abbreviations and splitting long MAI-Voice-2.1 Flash narrations to stay under 32 MiB.
API quick start
# Generate the idempotency key once; reuse it when retrying after a lost response.
export SPICY_IDEMPOTENCY_KEY="${SPICY_IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SPICY_IDEMPOTENCY_KEY" \
-d '{
"model": "microsoft/mai-voice-2.1-flash/text-to-speech",
"input": {
"text": "Welcome back. Your files finished rendering a minute ago and are ready to download.",
"voice_id": "en-US-Harper:MAI-Voice-2.1-Flash",
"output_format": "mp3"
}
}'
# Copy data.taskId from the response into TASK_ID, then poll the status.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.spicyapi.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"
See the API reference for authentication, the complete schema, polling, and error handling.






