by Microsoft

Fast, low-cost English and Spanish narration

microsoft/mai-voice-2.1-flash/text-to-speech
MAI-Voice-2.1 Flash AI Voice Generator online
  • 3 voices
  • Text to Speech

About MAI-Voice-2.1 Flash

Fast, low-cost English and Spanish narration.

Call it with the model name microsoft/mai-voice-2.1-flash/text-to-speech on POST /jobs/createTask, from $0.01275.

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.

Request parameters

ParameterRequiredDescription
textYesThe words to be spoken, exactly as written.
voice_idNoPick from the available voices. en-US-Harper:MAI-Voice-2.1-Flash · en-US-Grant:MAI-Voice-2.1-Flash · es-MX-Valeria:MAI-Voice-2.1-Flash · Default: en-US-Harper:MAI-Voice-2.1-Flash
output_formatNoFile 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.

OptionUSD per 1,000 characters
Standard$0.01275

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 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

Call the MAI-Voice-2.1 Flash API in three steps

  1. 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.
  2. Send the request. POST /jobs/createTask with model microsoft/mai-voice-2.1-flash/text-to-speech and an input object that follows the parameter table. The response returns a task ID straight away.
  3. 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-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"
  }
}'

# 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 Flash API questions

How much does the MAI-Voice-2.1 Flash API cost?

MAI-Voice-2.1 Flash costs $0.01275 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 Flash in the API?

Put microsoft/mai-voice-2.1-flash/text-to-speech for Text to Speech in the model field of POST /jobs/createTask.

When should I pick MAI-Voice-2.1 Flash over full MAI-Voice-2.1?

Pick MAI-Voice-2.1 Flash whenever fast turnaround and high throughput drive user experience—such as voice assistants, call-center bots, and bulk notification jobs. Switch to full MAI-Voice-2.1 when you want peak acoustic richness for published audiobooks or brand films.

Which voice IDs work on MAI-Voice-2.1 Flash?

Use one of three verified Flash identifiers: 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. Always include the :MAI-Voice-2.1-Flash suffix on this endpoint.

What output formats and size limits apply to Flash?

You can output mp3 (default), wav, or raw 24 kHz 16-bit pcm, up to 4,096 characters and 32 MiB per call. For interactive chat bots, splitting responses at sentence boundaries keeps playback responsiveness tight.

Can MAI-Voice-2.1 Flash power commercial voice products?

Yes, MAI-Voice-2.1 Flash audio is cleared for commercial assistants, customer-service workflows, apps, and media provided you own the script rights and follow applicable synthetic-voice disclosure standards.

What are the limits of the MAI-Voice-2.1 Flash 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 Flash without writing code?

Run MAI-Voice-2.1 Flash 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

More about MAI-Voice-2.1 Flash