About MAI-Voice-2.1
Lifelike English and Spanish voices from Microsoft.
Call it with the model name microsoft/mai-voice-2.1/text-to-speech on POST /jobs/createTask, from $0.0187.
Introduction
Microsoft MAI-Voice-2.1 turns text up to 4,096 characters into lifelike speech with verified English and Spanish voices.
Key features
MAI-Voice-2.1 from Microsoft reads scripts up to 4,096 characters aloud using 3 verified voices (default en-US-Harper:MAI-Voice-2.1), exporting MP3, WAV, or raw 24 kHz 16-bit PCM.
Request parameters
| Parameter | Required | Description |
|---|---|---|
text | Yes | The words to be spoken, exactly as written. |
voice_id | No | Pick from the available voices. en-US-Harper:MAI-Voice-2.1 · en-US-Grant:MAI-Voice-2.1 · es-MX-Valeria:MAI-Voice-2.1 · Default: en-US-Harper:MAI-Voice-2.1 |
output_format | No | File type of the result. mp3 · wav · pcm · Default: mp3 |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per 1,000 characters |
|---|---|
| Standard | $0.0187 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
Use cases
Turn written onboarding scripts and release notes into spoken audio tracks with MAI-Voice-2.1, keeping phrasing exact.
Generate short spoken status updates with MAI-Voice-2.1 in MP3 for mobile playback or WAV for broadcast workflows.
Usage tips
Write the exact words listeners should hear in MAI-Voice-2.1 text within 4,096 characters, spelling out ambiguous abbreviations and splitting long MAI-Voice-2.1 narrations to stay under 32 MiB.
API quick start
Call the MAI-Voice-2.1 API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model microsoft/mai-voice-2.1/text-to-speech and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "microsoft/mai-voice-2.1/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"
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
MAI-Voice-2.1 API questions
How much does the MAI-Voice-2.1 API cost?
MAI-Voice-2.1 costs $0.0187 per 1,000 characters. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What is the model name for MAI-Voice-2.1 in the API?
Put microsoft/mai-voice-2.1/text-to-speech for Text to Speech in the model field of POST /jobs/createTask.
How does MAI-Voice-2.1 compare with MAI-Voice-2.1 Flash?
Both tiers share the Harper, Grant, and Valeria personas, but full MAI-Voice-2.1 emphasizes peak acoustic depth and natural pacing for mastered narration. Choose MAI-Voice-2.1 Flash when rapid response latency for live agents or large batches matters more.
What are the input length and output file ceilings?
Each MAI-Voice-2.1 call accepts up to 4,096 characters and outputs up to 32 MiB of audio. Split longer chapters at paragraph boundaries and concatenate WAV or PCM outputs when building hour-long productions.
Can I use MAI-Voice-2.1 audio commercially?
Yes, voice tracks generated via MAI-Voice-2.1 can be shipped in commercial videos, courses, apps, and broadcasts provided you hold rights to the script and follow applicable synthetic-audio disclosure guidelines.
What are the limits of the MAI-Voice-2.1 API?
Text length (characters): 4,096; Voices: 3. Requests outside these limits are rejected before anything is charged.
Can I try MAI-Voice-2.1 without writing code?
Run MAI-Voice-2.1 in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.
All MAI models
- MAI-Image 2.6 APIGrounded photoreal lighting with up to 5 reference photosFrom $0.0335 per image
- MAI-Image 2.6 Flash APIFast, low-cost photoreal images and 5-photo editsFrom $0.0165 per image
- MAI-Image-2.7 APIGrounded 2K stills and multi-photo edits that keep faces and lighting steadyFrom $0.06168 per image
- MAI-Image-2.7 Flash APIFast 1K and 2K stills and five-photo edits built for quick iterationFrom $0.0186 per image
- MAI-Voice-2.1 APILifelike English and Spanish voices from MicrosoftFrom $0.0187 per 1,000 characters
- MAI-Voice-2.1 Flash APIFast, low-cost English and Spanish narrationFrom $0.01275 per 1,000 characters
- MAI-Transcribe-2 APIPlain-text transcripts with language hints and vocabulary contextFrom $0.000025836 per second