MAI Voice 2.1 API, MAI Voice 2 API, MAI Transcribe 1.5 API: Pricing, Documentation

by Microsoft

MAI Voice API provides developers with a robust, enterprise-ready infrastructure designed to programmatically generate highly expressive and lifelike speech across diverse applications. Operating through a unified endpoint, this advanced audio intelligence tool enables seamless text-to-speech conversion, instant high-fidelity voice cloning, and multilingual narration without requiring extensive fine-tuning or localized hardware setup. It features automatic language detection and nuanced prosody control, making it exceptionally suited for driving interactive virtual assistants, dynamic e-learning modules, accessibility voiceovers, and complex interactive voice response architectures.

Get API Key
MAI Voice API

Models Version

WELCOME BONUS

Get 10% Cashback on Your First Payment (up to $500)

Add funds and get 10% cashback on your first payment (up to $500).

Claim Your Cashback →

MAI Voice 2.1 API Documentation

Turn text into natural, expressive speech with 97 voices in 23 languages, where each voice keeps its identity across the languages it speaks, and emotion styles such as happy, excited or narrator. Returns one MP3. MAI Voice 2.1 Flash takes the same voices and parameters and returns sooner. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.

POST https://gateway.pixazo.ai/mai-voice-2-1/v1/text-to-speech

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Text to Speech - MAI Voice 2.1

Request Code

POST https://gateway.pixazo.ai/mai-voice-2-1/v1/text-to-speech
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "text": "Welcome to Pixazo. This is one voice that can speak many languages.",
  "voice": "en-US-Harper",
  "style": "excited"
}
import requests

url = "https://gateway.pixazo.ai/mai-voice-2-1/v1/text-to-speech"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "text": "Welcome to Pixazo. This is one voice that can speak many languages.",
  "voice": "en-US-Harper",
  "style": "excited"
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/mai-voice-2-1/v1/text-to-speech", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "text": "Welcome to Pixazo. This is one voice that can speak many languages.",
  "voice": "en-US-Harper",
  "style": "excited"
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/mai-voice-2-1/v1/text-to-speech' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"text": "Welcome to Pixazo. This is one voice that can speak many languages.", "voice": "en-US-Harper", "style": "excited"}'

Output

{
  "request_id": "mai-voice-2-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/mai-voice-2-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Callback Payload (success)

{
  "request_id": "mai-voice-2-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "mai-voice-2-1",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/mai-voice-2-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-11-13T10:58:02.408Z",
  "updated_at": "2026-11-13 10:58:18",
  "completed_at": "2026-11-13 10:58:17"
}

Failure callback shape

{
  "request_id": "mai-voice-2-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "mai-voice-2-1",
  "error": "Generation failed: the request was rejected (unknown voice \"en-US-Nobody\"; see the voice list on this API's documentation (for example en-US-Harper)).",
  "output": null,
  "created_at": "2026-11-13T10:58:04.608Z",
  "updated_at": "2026-11-13 10:58:13",
  "completed_at": "2026-11-13 10:58:13"
}

Callbacks are idempotent on request_id — de-duplicate on it. Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / range
textYesrequiredstring—1 to 8,000 characters
The words to speak.
voiceNostringen-US-Harpera voice from the list below
Write it as en-US-Harper; en-US-Harper:MAI-Voice-2.1 also works.
languageNostringthe voice's own localethe voice's locale or one of its other languages (below)
The language of text, e.g. es-MX to have en-US-Harper speak Spanish.
styleNostringnoneone of the voice's styles (below)
Emotion or speaking style, e.g. excited, happy, narrator, whispering.
styledegreeNonumber10.01 to 2
How strongly the style is applied; needs style.

How usage is measured

Billed per started block of 1,000 characters of text, counted the way the speech service counts them: a Chinese character (including Japanese kanji and Korean hanja) counts as two, every other character as one. Voice, language and style do not change the price. The rates are in the pricing panel on this page. Nothing is charged for a request that fails.

Parameters not supported

Rejected with 400

Checked when you submit: the request is rejected before it is queued.

ParameterWhyUse instead
prompt, text_promptThe words to speak are sent as text.text
styledegree without styleThere is no style to strengthen.Add a style
n, num_images, number_of_images, batch_size, countOne audio file per request.One request per file

Accepted, then the request fails

These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR" and an error that names the problem and lists what the voice allows. Nothing is charged.

ParameterWhen the request fails
voiceThe voice is not in the list below.
styleThe voice does not have that style (some voices have none).
languageThe voice does not speak that language.

Accepted but ignored

Any other parameter is dropped and has no effect. The output is always MP3 (24 kHz, mono).

Voices

97 voices. voice takes the name in the first column; style one of that voice's styles; language its own locale or one of the languages in the last column.

VoiceLanguageGenderStylesAlso speaks
cs-CZ-GrantCzech (Czechia) (cs-CZ)Maleagent, audiobook, customer_call_center, educational, narrator—
cs-CZ-HarperCzech (Czechia) (cs-CZ)Femaleagent, audiobook, customer_call_center, educational, narrator—
da-DK-GrantDanish (Denmark) (da-DK)Maleagent, customer_call_center, educational, narrator—
da-DK-HarperDanish (Denmark) (da-DK)Femaleagent, audiobook, customer_call_center, educational, narrator—
de-DE-GrantGerman (Germany) (de-DE)Maleagent, audiobook, customer_call_center, educational, narrator—
de-DE-HarperGerman (Germany) (de-DE)Femaleagent, audiobook, customer_call_center, educational, narrator—
de-DE-KlausGerman (Germany) (de-DE)Maleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingen-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
de-DE-MiaGerman (Germany) (de-DE)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingen-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
en-AU-IslaEnglish (Australia) (en-AU)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
en-GB-EmilyEnglish (United Kingdom) (en-GB)Neutralagent, angry, audiobook, confused, customer_call_center, disgusted, educational, embarrassed, excited, fearful, happy, jealous, joyful, narrator, sad, surprised—
en-GB-HarryEnglish (United Kingdom) (en-GB)Neutralagent, angry, audiobook, customer_call_center, disgusted, educational, fearful, joyful, narrator, sad, surprised—
en-IN-DhruvEnglish (India) (en-IN)Male——
en-IN-PriyaEnglish (India) (en-IN)Female——
en-US-EthanEnglish (United States) (en-US)Maleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
en-US-GrantEnglish (United States) (en-US)Maleagent, audiobook, customer_call_center, educational, narrator—
en-US-HarperEnglish (United States) (en-US)Femaleagent, angry, audiobook, confused, customer_call_center, determined, educational, embarrassed, excited, happy, hopeful, joyful, narrator, regretful, relieved, sad, shouting, softvoice, whisperingde-DE, en-AU, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
en-US-IrisEnglish (United States) (en-US)Female——
en-US-JasperEnglish (United States) (en-US)Male——
en-US-OliviaEnglish (United States) (en-US)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
en-US-SageEnglish (United States) (en-US)Neutralagent, audiobook, customer_call_center, educational, narrator—
es-ES-MartaSpanish (Spain) (es-ES)Femaleadventurous, caringempathy, curious, encouraging, excited, friendlycheerful, nostalgic, reflective, saddisappointed, seriousde-DE, en-AU, en-US, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
es-MX-AlejoSpanish (Mexico) (es-MX)Maleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
es-MX-GrantSpanish (Mexico) (es-MX)Male——
es-MX-HarperSpanish (Mexico) (es-MX)Femaleagent, audiobook, customer_call_center, educational, narrator—
es-MX-ValeriaSpanish (Mexico) (es-MX)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
fi-FI-GrantFinnish (Finland) (fi-FI)Male——
fi-FI-HarperFinnish (Finland) (fi-FI)Femaleagent, audiobook, customer_call_center, educational, narrator—
fr-FR-GrantFrench (France) (fr-FR)Male——
fr-FR-HarperFrench (France) (fr-FR)Femaleagent, audiobook, customer_call_center, educational, narrator—
fr-FR-MarcFrench (France) (fr-FR)Maleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
fr-FR-SoleilFrench (France) (fr-FR)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
hi-IN-ArjunHindi (India) (hi-IN)Maleangry, confused, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, sad, surprisedde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
hi-IN-DhruvHindi (India) (hi-IN)Maleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
hi-IN-GrantHindi (India) (hi-IN)Maleaudiobook—
hi-IN-HarperHindi (India) (hi-IN)Femaleagent, customer_call_center, educational, narrator—
hi-IN-KavyaHindi (India) (hi-IN)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
hi-IN-PriyaHindi (India) (hi-IN)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
hu-HU-BenceHungarian (Hungary) (hu-HU)Male—de-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
hu-HU-GrantHungarian (Hungary) (hu-HU)Male——
hu-HU-HarperHungarian (Hungary) (hu-HU)Femaleagent, audiobook, customer_call_center, educational, narrator—
hu-HU-LeventeHungarian (Hungary) (hu-HU)Male—de-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
hu-HU-LillaHungarian (Hungary) (hu-HU)Female—de-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
hu-HU-RekaHungarian (Hungary) (hu-HU)Female—de-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
id-ID-GrantIndonesian (Indonesia) (id-ID)Maleagent, audiobook, customer_call_center, educational, narrator—
id-ID-HarperIndonesian (Indonesia) (id-ID)Female——
it-IT-GrantItalian (Italy) (it-IT)Maleaudiobook, educational—
it-IT-HarperItalian (Italy) (it-IT)Femaleagent, customer_call_center, narrator—
it-IT-LucaItalian (Italy) (it-IT)Maleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
it-IT-RosaItalian (Italy) (it-IT)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
ko-KR-GrantKorean (Korea) (ko-KR)Maleagent, audiobook, customer_call_center, educational, narrator—
ko-KR-HaenaKorean (Korea) (ko-KR)Femaleangry, confused, determined, embarrassed, excited, happy, hopeful, joyful, regretful, relieved, sad, softvoice, surprisedde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
ko-KR-HarperKorean (Korea) (ko-KR)Femaleagent, audiobook, customer_call_center, educational, narrator—
ko-KR-JunhoKorean (Korea) (ko-KR)Maleangry, confused, determined, embarrassed, excited, happy, hopeful, joyful, relieved, sad, softvoicede-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
nb-NO-GrantNorwegian Bokmål (Norway) (nb-NO)Maleeducational—
nb-NO-HarperNorwegian Bokmål (Norway) (nb-NO)Femaleagent, audiobook, customer_call_center, narrator—
nl-NL-GrantDutch (Netherlands) (nl-NL)Maleagent, customer_call_center, educational, narrator—
nl-NL-HarperDutch (Netherlands) (nl-NL)Femaleagent, audiobook, customer_call_center, educational, narrator—
nl-NL-SanderDutch (Netherlands) (nl-NL)Maleadventurous, caringempathy, curious, encouraging, excited, friendlycheerful, nostalgic, reflective, saddisappointed, seriousde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
pl-PL-GrantPolish (Poland) (pl-PL)Male——
pl-PL-HarperPolish (Poland) (pl-PL)Femaleagent, audiobook, customer_call_center, educational, narrator—
pt-BR-CaioPortuguese (Brazil) (pt-BR)Maleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
pt-BR-GrantPortuguese (Brazil) (pt-BR)Maleagent, customer_call_center, educational—
pt-BR-HarperPortuguese (Brazil) (pt-BR)Femaleaudiobook, narrator—
pt-BR-LuanaPortuguese (Brazil) (pt-BR)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
pt-BR-PedroPortuguese (Brazil) (pt-BR)Maleconfused, determined, embarrassed, excited, happy, hopeful, joyful, regretful, relieved, sad, softvoice, surprisedde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
pt-BR-RafaelPortuguese (Brazil) (pt-BR)Maleangry, confused, determined, embarrassed, excited, happy, hopeful, joyful, regretful, relieved, sad, softvoice, surprisedde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
pt-PT-GrantPortuguese (Portugal) (pt-PT)Male——
pt-PT-HarperPortuguese (Portugal) (pt-PT)Female——
pt-PT-RuiPortuguese (Portugal) (pt-PT)Maleangry, confused, determined, embarrassed, excited, happy, hopeful, joyful, regretful, relieved, sad, softvoice, surprisedde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
ro-RO-AndreiRomanian (Romania) (ro-RO)Male—de-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ru-RU, th-TH, tr-TR, zh-CN
ro-RO-ElenaRomanian (Romania) (ro-RO)Female—de-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ru-RU, th-TH, tr-TR, zh-CN
ro-RO-GrantRomanian (Romania) (ro-RO)Maleagent, customer_call_center, educational, narrator—
ro-RO-HarperRomanian (Romania) (ro-RO)Femaleaudiobook—
ro-RO-IoanaRomanian (Romania) (ro-RO)Female—de-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ru-RU, th-TH, tr-TR, zh-CN
ro-RO-RaduRomanian (Romania) (ro-RO)Male—de-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ru-RU, th-TH, tr-TR, zh-CN
ru-RU-GrantRussian (Russia) (ru-RU)Maleagent, customer_call_center—
ru-RU-HarperRussian (Russia) (ru-RU)Femaleaudiobook, educational, narrator—
ru-RU-LevRussian (Russia) (ru-RU)Maleadventurous, caringempathy, curious, encouraging, excited, friendlycheerful, nostalgic, reflective, saddisappointed, seriousde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, th-TH, tr-TR, zh-CN
ru-RU-MashaRussian (Russia) (ru-RU)Femaleadventurous, caringempathy, curious, encouraging, excited, friendlycheerful, nostalgic, reflective, saddisappointed, seriousde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, th-TH, tr-TR, zh-CN
sv-SE-GrantSwedish (Sweden) (sv-SE)Male——
sv-SE-HarperSwedish (Sweden) (sv-SE)Femaleagent, audiobook, customer_call_center, educational, narrator—
th-TH-GrantThai (Thailand) (th-TH)Maleagent, audiobook, customer_call_center, educational, narrator—
th-TH-HarperThai (Thailand) (th-TH)Femaleagent, audiobook, customer_call_center, educational, narrator—
th-TH-KritThai (Thailand) (th-TH)Maleadventurous, caringempathy, curious, encouraging, excited, friendlycheerful, nostalgic, reflective, saddisappointed, seriousde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, tr-TR, zh-CN
th-TH-NattapongThai (Thailand) (th-TH)Maleadventurous, caringempathy, curious, encouraging, excited, friendlycheerful, nostalgic, reflective, saddisappointed, seriousde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, tr-TR, zh-CN
tr-TR-AydinTurkish (Türkiye) (tr-TR)Maleadventurous, caringempathy, curious, encouraging, excited, friendlycheerful, nostalgic, reflective, saddisappointed, seriousde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, zh-CN
tr-TR-ElifTurkish (Türkiye) (tr-TR)Femaleadventurous, caringempathy, curious, encouraging, excited, friendlycheerful, nostalgic, reflective, saddisappointed, seriousde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, zh-CN
tr-TR-GrantTurkish (Türkiye) (tr-TR)Maleeducational, narrator—
tr-TR-HarperTurkish (Türkiye) (tr-TR)Femaleagent, audiobook, customer_call_center—
vi-VN-GrantVietnamese (Vietnam) (vi-VN)Maleagent, customer_call_center, educational, narrator—
vi-VN-HarperVietnamese (Vietnam) (vi-VN)Femaleaudiobook—
zh-CN-BoChinese (Mandarin, Simplified) (zh-CN)Maleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR
zh-CN-GrantChinese (Mandarin, Simplified) (zh-CN)Maleagent, audiobook, customer_call_center, educational, narrator—
zh-CN-HarperChinese (Mandarin, Simplified) (zh-CN)Femaleagent, audiobook, customer_call_center, educational, narrator—
zh-CN-LanChinese (Mandarin, Simplified) (zh-CN)Femaleangry, confused, disgusted, embarrassed, excited, fearful, happy, joyful, sad, surprisedde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR
zh-CN-MeiChinese (Mandarin, Simplified) (zh-CN)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR
zh-CN-WeiChinese (Mandarin, Simplified) (zh-CN)Maleangry, confused, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, sad, surprisedde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR

Timing

A short paragraph usually takes about 5 to 10 seconds from submit to result; longer text takes longer. Polling the status endpoint every 3 to 5 seconds is enough, or use a Webhook.

Example Request

{
  "text": "Welcome to Pixazo. This is one voice that can speak many languages.",
  "voice": "en-US-Harper",
  "style": "excited"
}

Example Response

{
  "request_id": "mai-voice-2-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/mai-voice-2-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — the body failed the submit check (see Request Parameters) and was not queued.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
403Forbidden.
429Too many requests.
500Internal server error.

Error Responses

A 400 names every rejected parameter in violations:

{
  "error": "Invalid request parameters",
  "message": "styledegree needs a style.",
  "violations": [
    "styledegree needs a style."
  ]
}

Retrieving Results

Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the file from output.media_url.

curl 'https://gateway.pixazo.ai/v2/requests/status/mai-voice-2-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

Captured from a real MAI Voice 2.1 request at launch; the request id is masked.

{
  "request_id": "mai-voice-2-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "mai-voice-2-1",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/mai-voice-2-1_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-11-13T10:58:02.408Z",
  "updated_at": "2026-11-13 10:58:18",
  "completed_at": "2026-11-13 10:58:17"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request.
errorstring or nullError message when status is ERROR; otherwise null.
output.media_urlarray of stringsURL of the MP3 (one per request). Download it and keep your own copy.
output.media_typestringaudio/mpeg.
created_atstringRequest creation timestamp.
updated_atstringLast status change timestamp.
completed_atstringCompletion timestamp.
polling_urlstringStatus URL for this request (in the submit response).

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure). Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.

MAI Voice 2.1 API Pricing

Your request will cost $0.0231 per 1,000 characters of input text.
each started block of 1,000 characters is billed once; a Chinese character counts as two
2. MAI Voice 2.1 Flash

MAI Voice 2.1 Flash API Documentation

Turn text into natural, expressive speech with 97 voices in 23 languages, where each voice keeps its identity across the languages it speaks, and emotion styles such as happy, excited or narrator. Returns one MP3. Flash is the faster, lower-cost version of MAI Voice 2.1 and takes the same voices and parameters. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.

POST https://gateway.pixazo.ai/mai-voice-2-1-flash/v1/text-to-speech

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Text to Speech - MAI Voice 2.1 Flash

Request Code

POST https://gateway.pixazo.ai/mai-voice-2-1-flash/v1/text-to-speech
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "text": "Welcome to Pixazo. This is one voice that can speak many languages.",
  "voice": "en-US-Harper",
  "style": "excited"
}
import requests

url = "https://gateway.pixazo.ai/mai-voice-2-1-flash/v1/text-to-speech"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "text": "Welcome to Pixazo. This is one voice that can speak many languages.",
  "voice": "en-US-Harper",
  "style": "excited"
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/mai-voice-2-1-flash/v1/text-to-speech", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "text": "Welcome to Pixazo. This is one voice that can speak many languages.",
  "voice": "en-US-Harper",
  "style": "excited"
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/mai-voice-2-1-flash/v1/text-to-speech' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"text": "Welcome to Pixazo. This is one voice that can speak many languages.", "voice": "en-US-Harper", "style": "excited"}'

Output

{
  "request_id": "mai-voice-2-1-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/mai-voice-2-1-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Callback Payload (success)

{
  "request_id": "mai-voice-2-1-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "mai-voice-2-1-flash",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/mai-voice-2-1-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-11-13T10:58:03.580Z",
  "updated_at": "2026-11-13 10:58:21",
  "completed_at": "2026-11-13 10:58:20"
}

Failure callback shape

{
  "request_id": "mai-voice-2-1-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "mai-voice-2-1-flash",
  "error": "Generation failed: the request was rejected (voice en-US-Harper has no style \"cheerful\"; its styles are agent, angry, audiobook, confused, customer_call_center, determined, educational, embarrassed, excited, happy, hopeful, joyful, narrator, regretful, relieved, sad, shouting, softvoice, whispering).",
  "output": null,
  "created_at": "2026-11-13T10:58:05.135Z",
  "updated_at": "2026-11-13 10:58:15",
  "completed_at": "2026-11-13 10:58:15"
}

Callbacks are idempotent on request_id — de-duplicate on it. Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / range
textYesrequiredstring—1 to 8,000 characters
The words to speak.
voiceNostringen-US-Harpera voice from the list below
Write it as en-US-Harper; en-US-Harper:MAI-Voice-2.1-Flash also works.
languageNostringthe voice's own localethe voice's locale or one of its other languages (below)
The language of text, e.g. es-MX to have en-US-Harper speak Spanish.
styleNostringnoneone of the voice's styles (below)
Emotion or speaking style, e.g. excited, happy, narrator, whispering.
styledegreeNonumber10.01 to 2
How strongly the style is applied; needs style.

How usage is measured

Billed per started block of 1,000 characters of text, counted the way the speech service counts them: a Chinese character (including Japanese kanji and Korean hanja) counts as two, every other character as one. Voice, language and style do not change the price. The rates are in the pricing panel on this page. Nothing is charged for a request that fails.

Parameters not supported

Rejected with 400

Checked when you submit: the request is rejected before it is queued.

ParameterWhyUse instead
prompt, text_promptThe words to speak are sent as text.text
styledegree without styleThere is no style to strengthen.Add a style
n, num_images, number_of_images, batch_size, countOne audio file per request.One request per file

Accepted, then the request fails

These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR" and an error that names the problem and lists what the voice allows. Nothing is charged.

ParameterWhen the request fails
voiceThe voice is not in the list below.
styleThe voice does not have that style (some voices have none).
languageThe voice does not speak that language.

Accepted but ignored

Any other parameter is dropped and has no effect. The output is always MP3 (24 kHz, mono).

Voices

97 voices. voice takes the name in the first column; style one of that voice's styles; language its own locale or one of the languages in the last column.

VoiceLanguageGenderStylesAlso speaks
cs-CZ-GrantCzech (Czechia) (cs-CZ)Maleagent, audiobook, customer_call_center, educational, narrator—
cs-CZ-HarperCzech (Czechia) (cs-CZ)Femaleagent, audiobook, customer_call_center, educational, narrator—
da-DK-GrantDanish (Denmark) (da-DK)Maleagent, customer_call_center, educational, narrator—
da-DK-HarperDanish (Denmark) (da-DK)Femaleagent, audiobook, customer_call_center, educational, narrator—
de-DE-GrantGerman (Germany) (de-DE)Maleagent, audiobook, customer_call_center, educational, narrator—
de-DE-HarperGerman (Germany) (de-DE)Femaleagent, audiobook, customer_call_center, educational, narrator—
de-DE-KlausGerman (Germany) (de-DE)Maleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingen-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
de-DE-MiaGerman (Germany) (de-DE)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingen-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
en-AU-IslaEnglish (Australia) (en-AU)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
en-GB-EmilyEnglish (United Kingdom) (en-GB)Neutralagent, angry, audiobook, confused, customer_call_center, disgusted, educational, embarrassed, excited, fearful, happy, jealous, joyful, narrator, sad, surprised—
en-GB-HarryEnglish (United Kingdom) (en-GB)Neutralagent, angry, audiobook, customer_call_center, disgusted, educational, fearful, joyful, narrator, sad, surprised—
en-IN-DhruvEnglish (India) (en-IN)Male——
en-IN-PriyaEnglish (India) (en-IN)Female——
en-US-EthanEnglish (United States) (en-US)Maleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
en-US-GrantEnglish (United States) (en-US)Maleagent, audiobook, customer_call_center, educational, narrator—
en-US-HarperEnglish (United States) (en-US)Femaleagent, angry, audiobook, confused, customer_call_center, determined, educational, embarrassed, excited, happy, hopeful, joyful, narrator, regretful, relieved, sad, shouting, softvoice, whisperingde-DE, en-AU, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
en-US-IrisEnglish (United States) (en-US)Female——
en-US-JasperEnglish (United States) (en-US)Male——
en-US-OliviaEnglish (United States) (en-US)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
en-US-SageEnglish (United States) (en-US)Neutralagent, audiobook, customer_call_center, educational, narrator—
es-ES-MartaSpanish (Spain) (es-ES)Femaleadventurous, caringempathy, curious, encouraging, excited, friendlycheerful, nostalgic, reflective, saddisappointed, seriousde-DE, en-AU, en-US, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
es-MX-AlejoSpanish (Mexico) (es-MX)Maleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
es-MX-GrantSpanish (Mexico) (es-MX)Male——
es-MX-HarperSpanish (Mexico) (es-MX)Femaleagent, audiobook, customer_call_center, educational, narrator—
es-MX-ValeriaSpanish (Mexico) (es-MX)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
fi-FI-GrantFinnish (Finland) (fi-FI)Male——
fi-FI-HarperFinnish (Finland) (fi-FI)Femaleagent, audiobook, customer_call_center, educational, narrator—
fr-FR-GrantFrench (France) (fr-FR)Male——
fr-FR-HarperFrench (France) (fr-FR)Femaleagent, audiobook, customer_call_center, educational, narrator—
fr-FR-MarcFrench (France) (fr-FR)Maleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
fr-FR-SoleilFrench (France) (fr-FR)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
hi-IN-ArjunHindi (India) (hi-IN)Maleangry, confused, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, sad, surprisedde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
hi-IN-DhruvHindi (India) (hi-IN)Maleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
hi-IN-GrantHindi (India) (hi-IN)Maleaudiobook—
hi-IN-HarperHindi (India) (hi-IN)Femaleagent, customer_call_center, educational, narrator—
hi-IN-KavyaHindi (India) (hi-IN)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
hi-IN-PriyaHindi (India) (hi-IN)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
hu-HU-BenceHungarian (Hungary) (hu-HU)Male—de-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
hu-HU-GrantHungarian (Hungary) (hu-HU)Male——
hu-HU-HarperHungarian (Hungary) (hu-HU)Femaleagent, audiobook, customer_call_center, educational, narrator—
hu-HU-LeventeHungarian (Hungary) (hu-HU)Male—de-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
hu-HU-LillaHungarian (Hungary) (hu-HU)Female—de-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
hu-HU-RekaHungarian (Hungary) (hu-HU)Female—de-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
id-ID-GrantIndonesian (Indonesia) (id-ID)Maleagent, audiobook, customer_call_center, educational, narrator—
id-ID-HarperIndonesian (Indonesia) (id-ID)Female——
it-IT-GrantItalian (Italy) (it-IT)Maleaudiobook, educational—
it-IT-HarperItalian (Italy) (it-IT)Femaleagent, customer_call_center, narrator—
it-IT-LucaItalian (Italy) (it-IT)Maleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
it-IT-RosaItalian (Italy) (it-IT)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
ko-KR-GrantKorean (Korea) (ko-KR)Maleagent, audiobook, customer_call_center, educational, narrator—
ko-KR-HaenaKorean (Korea) (ko-KR)Femaleangry, confused, determined, embarrassed, excited, happy, hopeful, joyful, regretful, relieved, sad, softvoice, surprisedde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
ko-KR-HarperKorean (Korea) (ko-KR)Femaleagent, audiobook, customer_call_center, educational, narrator—
ko-KR-JunhoKorean (Korea) (ko-KR)Maleangry, confused, determined, embarrassed, excited, happy, hopeful, joyful, relieved, sad, softvoicede-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
nb-NO-GrantNorwegian Bokmål (Norway) (nb-NO)Maleeducational—
nb-NO-HarperNorwegian Bokmål (Norway) (nb-NO)Femaleagent, audiobook, customer_call_center, narrator—
nl-NL-GrantDutch (Netherlands) (nl-NL)Maleagent, customer_call_center, educational, narrator—
nl-NL-HarperDutch (Netherlands) (nl-NL)Femaleagent, audiobook, customer_call_center, educational, narrator—
nl-NL-SanderDutch (Netherlands) (nl-NL)Maleadventurous, caringempathy, curious, encouraging, excited, friendlycheerful, nostalgic, reflective, saddisappointed, seriousde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
pl-PL-GrantPolish (Poland) (pl-PL)Male——
pl-PL-HarperPolish (Poland) (pl-PL)Femaleagent, audiobook, customer_call_center, educational, narrator—
pt-BR-CaioPortuguese (Brazil) (pt-BR)Maleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
pt-BR-GrantPortuguese (Brazil) (pt-BR)Maleagent, customer_call_center, educational—
pt-BR-HarperPortuguese (Brazil) (pt-BR)Femaleaudiobook, narrator—
pt-BR-LuanaPortuguese (Brazil) (pt-BR)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
pt-BR-PedroPortuguese (Brazil) (pt-BR)Maleconfused, determined, embarrassed, excited, happy, hopeful, joyful, regretful, relieved, sad, softvoice, surprisedde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
pt-BR-RafaelPortuguese (Brazil) (pt-BR)Maleangry, confused, determined, embarrassed, excited, happy, hopeful, joyful, regretful, relieved, sad, softvoice, surprisedde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
pt-PT-GrantPortuguese (Portugal) (pt-PT)Male——
pt-PT-HarperPortuguese (Portugal) (pt-PT)Female——
pt-PT-RuiPortuguese (Portugal) (pt-PT)Maleangry, confused, determined, embarrassed, excited, happy, hopeful, joyful, regretful, relieved, sad, softvoice, surprisedde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, ro-RO, ru-RU, th-TH, tr-TR, zh-CN
ro-RO-AndreiRomanian (Romania) (ro-RO)Male—de-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ru-RU, th-TH, tr-TR, zh-CN
ro-RO-ElenaRomanian (Romania) (ro-RO)Female—de-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ru-RU, th-TH, tr-TR, zh-CN
ro-RO-GrantRomanian (Romania) (ro-RO)Maleagent, customer_call_center, educational, narrator—
ro-RO-HarperRomanian (Romania) (ro-RO)Femaleaudiobook—
ro-RO-IoanaRomanian (Romania) (ro-RO)Female—de-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ru-RU, th-TH, tr-TR, zh-CN
ro-RO-RaduRomanian (Romania) (ro-RO)Male—de-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ru-RU, th-TH, tr-TR, zh-CN
ru-RU-GrantRussian (Russia) (ru-RU)Maleagent, customer_call_center—
ru-RU-HarperRussian (Russia) (ru-RU)Femaleaudiobook, educational, narrator—
ru-RU-LevRussian (Russia) (ru-RU)Maleadventurous, caringempathy, curious, encouraging, excited, friendlycheerful, nostalgic, reflective, saddisappointed, seriousde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, th-TH, tr-TR, zh-CN
ru-RU-MashaRussian (Russia) (ru-RU)Femaleadventurous, caringempathy, curious, encouraging, excited, friendlycheerful, nostalgic, reflective, saddisappointed, seriousde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, th-TH, tr-TR, zh-CN
sv-SE-GrantSwedish (Sweden) (sv-SE)Male——
sv-SE-HarperSwedish (Sweden) (sv-SE)Femaleagent, audiobook, customer_call_center, educational, narrator—
th-TH-GrantThai (Thailand) (th-TH)Maleagent, audiobook, customer_call_center, educational, narrator—
th-TH-HarperThai (Thailand) (th-TH)Femaleagent, audiobook, customer_call_center, educational, narrator—
th-TH-KritThai (Thailand) (th-TH)Maleadventurous, caringempathy, curious, encouraging, excited, friendlycheerful, nostalgic, reflective, saddisappointed, seriousde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, tr-TR, zh-CN
th-TH-NattapongThai (Thailand) (th-TH)Maleadventurous, caringempathy, curious, encouraging, excited, friendlycheerful, nostalgic, reflective, saddisappointed, seriousde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, tr-TR, zh-CN
tr-TR-AydinTurkish (Türkiye) (tr-TR)Maleadventurous, caringempathy, curious, encouraging, excited, friendlycheerful, nostalgic, reflective, saddisappointed, seriousde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, zh-CN
tr-TR-ElifTurkish (Türkiye) (tr-TR)Femaleadventurous, caringempathy, curious, encouraging, excited, friendlycheerful, nostalgic, reflective, saddisappointed, seriousde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, zh-CN
tr-TR-GrantTurkish (Türkiye) (tr-TR)Maleeducational, narrator—
tr-TR-HarperTurkish (Türkiye) (tr-TR)Femaleagent, audiobook, customer_call_center—
vi-VN-GrantVietnamese (Vietnam) (vi-VN)Maleagent, customer_call_center, educational, narrator—
vi-VN-HarperVietnamese (Vietnam) (vi-VN)Femaleaudiobook—
zh-CN-BoChinese (Mandarin, Simplified) (zh-CN)Maleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR
zh-CN-GrantChinese (Mandarin, Simplified) (zh-CN)Maleagent, audiobook, customer_call_center, educational, narrator—
zh-CN-HarperChinese (Mandarin, Simplified) (zh-CN)Femaleagent, audiobook, customer_call_center, educational, narrator—
zh-CN-LanChinese (Mandarin, Simplified) (zh-CN)Femaleangry, confused, disgusted, embarrassed, excited, fearful, happy, joyful, sad, surprisedde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR
zh-CN-MeiChinese (Mandarin, Simplified) (zh-CN)Femaleangry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whisperingde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR
zh-CN-WeiChinese (Mandarin, Simplified) (zh-CN)Maleangry, confused, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, sad, surprisedde-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR

Timing

A short paragraph usually takes about 5 to 10 seconds from submit to result; longer text takes longer. Polling the status endpoint every 3 to 5 seconds is enough, or use a Webhook.

Example Request

{
  "text": "Welcome to Pixazo. This is one voice that can speak many languages.",
  "voice": "en-US-Harper",
  "style": "excited"
}

Example Response

{
  "request_id": "mai-voice-2-1-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/mai-voice-2-1-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — the body failed the submit check (see Request Parameters) and was not queued.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
403Forbidden.
429Too many requests.
500Internal server error.

Error Responses

A 400 names every rejected parameter in violations:

{
  "error": "Invalid request parameters",
  "message": "styledegree needs a style.",
  "violations": [
    "styledegree needs a style."
  ]
}

Retrieving Results

Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the file from output.media_url.

curl 'https://gateway.pixazo.ai/v2/requests/status/mai-voice-2-1-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

Captured from a real MAI Voice 2.1 Flash request at launch; the request id is masked.

{
  "request_id": "mai-voice-2-1-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "mai-voice-2-1-flash",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/mai-voice-2-1-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp3"
    ],
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-11-13T10:58:03.580Z",
  "updated_at": "2026-11-13 10:58:21",
  "completed_at": "2026-11-13 10:58:20"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request.
errorstring or nullError message when status is ERROR; otherwise null.
output.media_urlarray of stringsURL of the MP3 (one per request). Download it and keep your own copy.
output.media_typestringaudio/mpeg.
created_atstringRequest creation timestamp.
updated_atstringLast status change timestamp.
completed_atstringCompletion timestamp.
polling_urlstringStatus URL for this request (in the submit response).

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure). Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.

MAI Voice 2.1 Flash API Pricing

Your request will cost $0.0158 per 1,000 characters of input text.
each started block of 1,000 characters is billed once; a Chinese character counts as two
3. MAI Transcribe 2

MAI Transcribe 2 API Documentation

Transcribe speech in 60 languages, with the language detected automatically, optional speaker labels (diarization), word-level timings, key-phrase hints and a clean or verbatim style. Returns the transcript as a JSON file. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.

POST https://gateway.pixazo.ai/mai-transcribe-2/v1/speech-to-text

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Speech to Text - MAI Transcribe 2

Request Code

POST https://gateway.pixazo.ai/mai-transcribe-2/v1/speech-to-text
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
  "language": "en",
  "transcribe_style": "clean",
  "timestamps": "word",
  "diarization": true
}
import requests

url = "https://gateway.pixazo.ai/mai-transcribe-2/v1/speech-to-text"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
  "language": "en",
  "transcribe_style": "clean",
  "timestamps": "word",
  "diarization": True
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/mai-transcribe-2/v1/speech-to-text", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
  "language": "en",
  "transcribe_style": "clean",
  "timestamps": "word",
  "diarization": true
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/mai-transcribe-2/v1/speech-to-text' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3", "language": "en", "transcribe_style": "clean", "timestamps": "word", "diarization": true}'

Output

{
  "request_id": "mai-transcribe-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/mai-transcribe-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Callback Payload (success)

{
  "request_id": "mai-transcribe-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "mai-transcribe-2",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/mai-transcribe-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.json"
    ],
    "media_type": "application/json"
  },
  "created_at": "2026-11-13T11:03:24.410Z",
  "updated_at": "2026-11-13 11:03:47",
  "completed_at": "2026-11-13 11:03:47"
}

Failure callback shape

{
  "request_id": "mai-transcribe-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "mai-transcribe-2",
  "error": "Generation failed: Could not fetch audio_url (HTTP 404)",
  "output": null,
  "created_at": "2026-11-13T11:03:25.113Z",
  "updated_at": "2026-11-13 11:03:46",
  "completed_at": "2026-11-13 11:03:46"
}

Callbacks are idempotent on request_id — de-duplicate on it. Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / range
audio_urlYesrequiredstring—a public http(s) URL or data: URI; WAV, MP3 or FLAC, up to 50 MB
The recording to transcribe.
languageNostringdetectedone language code from the list below
The language spoken. Set it when you know it: detection can miss speech over music or singing and return an empty transcript.
transcribe_styleNostringverbatimverbatim, clean
verbatim keeps fillers and false starts; clean removes them for readable text.
timestampsNostringnoneword, segment, none
Timing detail in the transcript: per word, per segment, or none.
diarizationNobooleanfalsetrue, false
Label who is speaking: each phrase gets a speaker number.
phrase_listNoarray of strings—1 to 100 phrases, each up to 100 characters
Names, product terms or jargon to listen for. Hints, not forced output.

How usage is measured

Billed per started minute of the audio you send, measured by the speech service: an 11-second clip is one minute, a 61-second clip two. Options do not change the price. The rates are in the pricing panel on this page. Nothing is charged for a request that fails.

Parameters not supported

Rejected with 400

Checked when you submit: the request is rejected before it is queued.

ParameterWhyUse instead
language with localesTwo ways to set the same thing.language
promptThis model takes no free-text prompt.phrase_list for terms to listen for
n, num_images, number_of_images, batch_size, countOne file per request.One request per file

Accepted, then the request fails

These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR" and an error that names the problem. Nothing is charged.

ParameterWhen the request fails
audio_urlThe file cannot be downloaded, is larger than 50 MB, or is not audio the service can read.
languageThe code is not in the list below.

Accepted but ignored

Any other parameter is dropped and has no effect.

Transcript file

output.media_url is a JSON file: text (the whole transcript), phrases (each with text, offsetMilliseconds, durationMilliseconds, locale and confidence; with diarization a speaker number; with word timestamps a words list) and duration_ms (the audio length). This one came from the example request above, shortened to its first phrase and three words:

{
  "text": "Woke up to a sky painted gold.",
  "phrases": [
    {
      "speaker": 0,
      "offsetMilliseconds": 11800,
      "durationMilliseconds": 5239,
      "text": "Woke up to a sky painted gold.",
      "words": [
        {
          "text": "Woke",
          "offsetMilliseconds": 11800,
          "durationMilliseconds": 240
        },
        {
          "text": "up",
          "offsetMilliseconds": 12200,
          "durationMilliseconds": 139
        },
        {
          "text": "to",
          "offsetMilliseconds": 12520,
          "durationMilliseconds": 180
        }
      ],
      "locale": "en",
      "confidence": 0
    }
  ],
  "duration_ms": 17020
}

Languages

60 languages; mixed-language speech (for example Hindi and English) is handled automatically. Codes for language: af Afrikaans, ar Arabic, as Assamese, az Azerbaijani, bg Bulgarian, bn Bengali, bs Bosnian, ca Catalan, cs Czech, da Danish, de German, el Greek, en English, es Spanish, et Estonian, fa Persian, fi Finnish, fil Filipino, fr French, gl Galician, gu Gujarati, he Hebrew, hi Hindi, hu Hungarian, hy Armenian, id Indonesian, is Icelandic, it Italian, ja Japanese, kk Kazakh, kn Kannada, ko Korean, lt Lithuanian, lv Latvian, mk Macedonian, ml Malayalam, mr Marathi, ms Malay, nb Norwegian Bokmål, ne Nepali, nl Dutch, or Odia, pa Punjabi, pl Polish, pt Portuguese, ro Romanian, ru Russian, sk Slovak, sl Slovenian, sv Swedish, sw Swahili, ta Tamil, te Telugu, th Thai, tr Turkish, uk Ukrainian, ur Urdu, vi Vietnamese, yue Cantonese, zh Chinese (simplified).

Timing

A short clip usually takes about 10 to 25 seconds from submit to result; transcription runs much faster than the audio plays. Polling the status endpoint every 3 to 5 seconds is enough, or use a Webhook.

Example Request

{
  "audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
  "language": "en",
  "transcribe_style": "clean",
  "timestamps": "word",
  "diarization": true
}

Example Response

{
  "request_id": "mai-transcribe-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/mai-transcribe-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — the body failed the submit check (see Request Parameters) and was not queued.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
403Forbidden.
429Too many requests.
500Internal server error.

Error Responses

A 400 names every rejected parameter in violations:

{
  "error": "Invalid request parameters",
  "message": "'transcribe_style' must be one of: \"verbatim\", \"clean\" (got \"tidy\")",
  "violations": [
    "'transcribe_style' must be one of: \"verbatim\", \"clean\" (got \"tidy\")"
  ]
}

Retrieving Results

Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the file from output.media_url.

curl 'https://gateway.pixazo.ai/v2/requests/status/mai-transcribe-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

Captured from a real MAI Transcribe 2 request at launch; the request id is masked.

{
  "request_id": "mai-transcribe-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "mai-transcribe-2",
  "error": null,
  "output": {
    "media_url": [
      "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/mai-transcribe-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.json"
    ],
    "media_type": "application/json"
  },
  "created_at": "2026-11-13T11:03:24.410Z",
  "updated_at": "2026-11-13 11:03:47",
  "completed_at": "2026-11-13 11:03:47"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request.
errorstring or nullError message when status is ERROR; otherwise null.
output.media_urlarray of stringsURL of the transcript JSON file (one per request).
output.media_typestringapplication/json.
created_atstringRequest creation timestamp.
updated_atstringLast status change timestamp.
completed_atstringCompletion timestamp.
polling_urlstringStatus URL for this request (in the submit response).

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure). Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.

MAI Transcribe 2 API Pricing

Your request will cost $0.0095 per minute of input audio.
billed per started minute of the audio you send
4. MAI Voice 2

MAI Voice 2 API Documentation

Generate expressive speech from text with Microsoft MAI-Voice-2 on Azure Speech. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED. The speech is returned as a 24 kHz mono MP3 file.

POST https://gateway.pixazo.ai/mai-voice-2/v1/text-to-speech

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Text to Speech - Microsoft MAI Voice 2

Request Code

POST https://gateway.pixazo.ai/mai-voice-2/v1/text-to-speech
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "text": "Hello from Pixazo. This is MAI Voice 2.",
  "voice": "en-US-Harper:MAI-Voice-2",
  "style": "excited",
  "styledegree": 1
}
import requests

url = "https://gateway.pixazo.ai/mai-voice-2/v1/text-to-speech"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "text": "Hello from Pixazo. This is MAI Voice 2.",
  "voice": "en-US-Harper:MAI-Voice-2",
  "style": "excited",
  "styledegree": 1
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/mai-voice-2/v1/text-to-speech", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "text": "Hello from Pixazo. This is MAI Voice 2.",
  "voice": "en-US-Harper:MAI-Voice-2",
  "style": "excited",
  "styledegree": 1
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/mai-voice-2/v1/text-to-speech' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"text": "Hello from Pixazo. This is MAI Voice 2.", "voice": "en-US-Harper:MAI-Voice-2", "style": "excited", "styledegree": 1}'

Output

{
  "request_id": "microsoft-mai-voice-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/microsoft-mai-voice-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/mai-voice-2/v1/text-to-speech' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  --data-raw '{"text": "Hello from Pixazo. This is MAI Voice 2.", "voice": "en-US-Harper:MAI-Voice-2", "style": "excited", "styledegree": 1}'

Callback Payload (success)

{
  "request_id": "microsoft-mai-voice-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "microsoft-mai-voice-2",
  "output": {
    "media_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3",
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-07-31T11:34:16.102Z",
  "completed_at": "2026-07-31T11:34:20.123Z"
}

Failure callback shape

{
  "request_id": "microsoft-mai-voice-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "microsoft-mai-voice-2",
  "error": "Description of the failure"
}

Delivery semantics

  • terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
  • sync mode: a Webhook callback on each status change.
  • Callbacks are idempotent on request_id — de-duplicate on it.
  • Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / range
textYesrequiredstring—1–8000 characters
The text to speak. Billing counts these characters, rounded up to the next 1000.
voiceNostringen-US-Harper:MAI-Voice-2any prebuilt MAI-Voice-2 voice id
Which voice speaks the text. 47 prebuilt MAI-Voice-2 voices are available across 18 locales; every id ends in :MAI-Voice-2, for example es-MX-Valeria:MAI-Voice-2. See Voices and Styles below.
styleNostring— (neutral)voice-specific — e.g. excited, happy, sad, angry, whispering, shouting
Speaking style, applied as the SSML mstts:express-as style. The supported set varies by voice and some voices support no styles at all. Microsoft specifies that when the style is missing or invalid the whole expressive block is ignored and the voice uses its default neutral speech.
styledegreeNonumber10.01–2 inclusive
Intensity of the chosen style; applies only when style is set. 1 is the predefined style intensity and 2 doubles it. Microsoft specifies that if the value is missing or the voice does not support it, the attribute is ignored.

Text limits

  • text is required and must be a non-empty string of at most 8000 characters. Longer text is rejected at submit.
  • Send plain text, not SSML — voice, style and styledegree are applied for you.
  • Cost scales with the number of characters you submit (see Pricing).

Voices and Styles

47 prebuilt MAI-Voice-2 voices are available across 18 locales (de-DE, en-AU, en-US, es-ES, es-MX, fr-FR, hi-IN, hu-HU, it-IT, ko-KR, nl-NL, pt-BR, pt-PT, ro-RO, ru-RU, th-TH, tr-TR, zh-CN). Pass the full voice id in voice; every id ends in :MAI-Voice-2. The current list is maintained by Microsoft in the MAI-Voice documentation.

Example voiceLocaleGender
en-US-Harper:MAI-Voice-2en-USFemale
en-US-Ethan:MAI-Voice-2en-USMale
en-AU-Lisa:MAI-Voice-2en-AUFemale
es-MX-Valeria:MAI-Voice-2es-MXFemale
fr-FR-Marc:MAI-Voice-2fr-FRMale
hi-IN-Kavya:MAI-Voice-2hi-INFemale
zh-CN-Mei:MAI-Voice-2zh-CNFemale

Styles

Supported styles are per voice. Most voices support the expressive set angry, confused, determined, disgusted, embarrassed, excited, fearful, happy, hopeful, jealous, joyful, regretful, relieved, sad, shouting, softvoice, surprised, whispering. Some voices instead support a narrative set (adventurous, caring, empathy, curious, encouraging, excited, friendly, cheerful, nostalgic, reflective, sad, disappointed, serious), and a few voices support no styles at all. Check the voice you are using against Microsoft’s per-voice style table before relying on a style.

Output

The completed request returns output.media_url, a 24 kHz mono MP3 (audio/mpeg). Fetch that URL to download the audio.

{
  "text": "Welcome to Microsoft Build. MAI Voice 2 supports multilingual expressive synthesis.",
  "voice": "en-US-Harper:MAI-Voice-2",
  "style": "happy",
  "styledegree": 1.2
}

Example Request

{
  "text": "Hello from Pixazo. This is MAI Voice 2.",
  "voice": "en-US-Harper:MAI-Voice-2",
  "style": "excited",
  "styledegree": 1
}

Example Response

{
  "request_id": "microsoft-mai-voice-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/microsoft-mai-voice-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — missing text, text longer than 8000 characters, or a malformed JSON body.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
429Too many requests.
500Internal server error.

A failure during synthesis is reported through the status endpoint as status: "ERROR", not as a synchronous error. Failed requests are not billed.

Retrieving Results

Poll the status endpoint with the request_id from the submit response until status is COMPLETED (or FAILED/ERROR), then fetch output.media_url for the audio.

curl 'https://gateway.pixazo.ai/v2/requests/status/microsoft-mai-voice-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

{
  "request_id": "microsoft-mai-voice-2_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "microsoft-mai-voice-2",
  "output": {
    "media_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.mp3",
    "media_type": "audio/mpeg"
  },
  "created_at": "2026-07-31T11:34:16.102Z",
  "completed_at": "2026-07-31T11:34:20.123Z"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR.
model_idstringThe model that handled the request.
output.media_urlstringURL of the generated MP3 audio file.
output.media_typestringaudio/mpeg.
created_atstringRequest creation timestamp.
completed_atstringCompletion timestamp.
errorstringError message when status is FAILED/ERROR.

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or FAILED/ERROR (failure).

Pricing

Billed at $0.022 per 1000 characters of input text, rounded up to the next 1000 characters. Billing is based on the text you submit, not on the length of the audio produced.

Characters submittedBilled units (1000 chars)Cost
2501$0.022
10001$0.022
10012$0.044
8000 (maximum)8$0.176

Because the character count is known when you submit, the cost of a request is determined at submit time. Failed requests are not billed.

MAI Voice 2 API Pricing

ResolutionPrice (USD)
Per 1,000 characters of input text$0.022
5. MAI Transcribe 1.5

MAI Transcribe 1.5 API Documentation

Transcribe audio into text with Microsoft's MAI-Transcribe-1.5 model, with automatic language detection across 43 languages. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED. The transcript is returned as a JSON file.

POST https://gateway.pixazo.ai/mai-transcribe/v1/speech-to-text

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour API subscription key

Speech to Text - Microsoft MAI Transcribe

Request Code

POST https://gateway.pixazo.ai/mai-transcribe/v1/speech-to-text
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
  "locales": ["en"],
  "transcribe_style": "verbatim",
  "phrase_list": ["Acme Corp", "Dr. Yamada"]
}
import requests

url = "https://gateway.pixazo.ai/mai-transcribe/v1/speech-to-text"
headers = {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
  "audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
  "locales": ["en"],
  "transcribe_style": "verbatim",
  "phrase_list": ["Acme Corp", "Dr. Yamada"]
}

resp = requests.post(url, json=data, headers=headers)
print(resp.json())
const res = await fetch("https://gateway.pixazo.ai/mai-transcribe/v1/speech-to-text", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
  },
  body: JSON.stringify({
  "audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
  "locales": ["en"],
  "transcribe_style": "verbatim",
  "phrase_list": ["Acme Corp", "Dr. Yamada"]
})
});
console.log(await res.json());
curl -X POST 'https://gateway.pixazo.ai/mai-transcribe/v1/speech-to-text' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  --data-raw '{"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3", "locales": ["en"], "transcribe_style": "verbatim", "phrase_list": ["Acme Corp", "Dr. Yamada"]}'

Output

{
  "request_id": "microsoft-mai-transcribe_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/microsoft-mai-transcribe_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Webhook (Optional)

Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks).

Example: enable Webhook

curl -X POST 'https://gateway.pixazo.ai/mai-transcribe/v1/speech-to-text' \
  -H 'Content-Type: application/json' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
  -H 'X-Webhook-URL: https://your-server.com/webhook' \
  --data-raw '{"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3", "locales": ["en"], "transcribe_style": "verbatim", "phrase_list": ["Acme Corp", "Dr. Yamada"]}'

Callback Payload (success)

{
  "request_id": "microsoft-mai-transcribe_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "microsoft-mai-transcribe",
  "output": {
    "media_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.json",
    "media_type": "application/json"
  },
  "created_at": "2026-07-31T11:34:16.102Z",
  "completed_at": "2026-07-31T11:34:20.123Z"
}

Failure callback shape

{
  "request_id": "microsoft-mai-transcribe_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "ERROR",
  "model_id": "microsoft-mai-transcribe",
  "error": "Description of the failure"
}

Delivery semantics

  • terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
  • sync mode: a Webhook callback on each status change.
  • Callbacks are idempotent on request_id — de-duplicate on it.
  • Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / range
audio_urlYesrequiredstring—http(s) URL; WAV, MP3 or FLAC, under 50 MB
Public URL of the audio to transcribe. The file is fetched by the gateway, so the URL must be reachable without authentication.
localesNoarray of string— (multilingual auto-detect)ISO language codes, e.g. ["en"], ["hi"], ["zh"]
Optional. Force recognition into a single language. Omit it and the model runs in multilingual mode across the 43 supported languages.
transcribe_styleNostring— (readability-optimised)verbatim
Optional. Set to verbatim to preserve the original spoken content including filler words and disfluencies. The default output is cleaned up for readability.
phrase_listNoarray of string—list of short phrases, e.g. ["Contoso", "Jessie"]
Names, product terms, acronyms or jargon that appear in the audio. Biases recognition towards this vocabulary, which improves accuracy on proper nouns and domain terminology.

Audio limits

  • The audio file must be under 50 MB and in WAV, MP3 or FLAC format.
  • audio_url must be an http or https URL and must be publicly reachable.
  • Speaker diarization is not supported — the transcript is not split by speaker.
  • Prompt-tuning is not supported. Use phrase_list to bias recognition instead.
  • Cost scales with the length of the audio (see Pricing).

Transcript Format

The completed request returns output.media_url, a JSON file containing the transcript. Fetch that URL to read the result.

{
  "text": "From Pixazo, this is MAI Voice 2 running through our own gateway.",
  "phrases": [
    {
      "offsetMilliseconds": 0,
      "durationMilliseconds": 5856,
      "text": "From Pixazo, this is MAI Voice 2 running through our own gateway.",
      "locale": "en",
      "confidence": 0
    }
  ],
  "duration_ms": 5860
}
FieldTypeDescription
textstringThe full transcript, with punctuation and capitalisation.
phrasesarray of objectRecognised segments in order. Each entry has text, offsetMilliseconds, durationMilliseconds, locale (the language detected for that segment) and confidence.
duration_msnumberLength of the transcribed audio in milliseconds. This is the quantity you are billed on.

Timestamps are returned per phrase, not per word: each entry in phrases carries offsetMilliseconds and durationMilliseconds.

Example Request

{
  "audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
  "locales": ["en"],
  "transcribe_style": "verbatim",
  "phrase_list": ["Acme Corp", "Dr. Yamada"]
}

Example Response

{
  "request_id": "microsoft-mai-transcribe_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "QUEUED",
  "polling_url": "https://gateway.pixazo.ai/v2/requests/status/microsoft-mai-transcribe_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — missing audio_url, a non-http(s) URL, or an audio format that could not be determined from the URL and was not supplied.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
429Too many requests.
500Internal server error.

An unreachable audio_url, an oversized file, or audio containing no detectable speech is reported through the status endpoint as status: "ERROR", not as a synchronous error. Failed requests are not billed.

Retrieving Results

Poll the status endpoint with the request_id from the submit response until status is COMPLETED (or FAILED/ERROR), then fetch output.media_url for the transcript.

curl 'https://gateway.pixazo.ai/v2/requests/status/microsoft-mai-transcribe_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
  -H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'

Completed response

{
  "request_id": "microsoft-mai-transcribe_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "COMPLETED",
  "model_id": "microsoft-mai-transcribe",
  "output": {
    "media_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.json",
    "media_type": "application/json"
  },
  "created_at": "2026-07-31T11:34:16.102Z",
  "completed_at": "2026-07-31T11:34:20.123Z"
}

Response Fields

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR.
model_idstringThe model that handled the request.
output.media_urlstringURL of the transcript JSON file.
output.media_typestringapplication/json.
created_atstringRequest creation timestamp.
completed_atstringCompletion timestamp.
errorstringError message when status is FAILED/ERROR.

Status Values & Flow

QUEUED → PROCESSING → COMPLETED (success) or FAILED/ERROR (failure).

Pricing

Billed at $0.006 per minute of audio ($0.36 per audio hour), rounded up to the next whole minute. Billing is based on the length of the audio you submit, not on the size of the transcript.

Audio lengthBilled minutesCost
20 seconds1$0.006
90 seconds2$0.012
10 minutes10$0.06
1 hour60$0.36

A hold is placed when the request is submitted, because the audio length is not known until transcription completes. The hold is reduced to the real cost once the duration is known, and released in full if the request fails.

MAI Transcribe 1.5 API Pricing

ResolutionPrice (USD)
Per minute of audio (rounded up to the next full minute)$0.006

⚡ Performance

Live usage measured on Pixazo's gateway, split by model version. Generation time is how long a generation takes end-to-end (lower is better). Success rate is the percent of generations that complete (higher is better).

Show data for the last
Generations
1,100last 30d
~37 per day
Success rate
72.7%
of completed generations
Generation time
26.6savg
p95 25.9s
Requests
Nov 1max 400Nov 30
MAI Transcribe 2Avg 17/day
MAI Voice 2.1Avg 13/day
MAI Voice 2.1 FlashAvg 7/day
Generation Time
Nov 1max 33.2sNov 30
MAI Transcribe 2Avg 23.4s
MAI Voice 2.1Avg 33.2s
MAI Voice 2.1 FlashAvg 16.4s
Error Rate
Nov 1max 50.0%Nov 30
MAI Transcribe 2Avg 20.0%
MAI Voice 2.1Avg 25.0%
MAI Voice 2.1 FlashAvg 50.0%

〰 Uptime

Percent of generations that succeeded over the selected period, per model version.

Avg. Success Rate (30d)
72.73%
across all generations of this model family
Uptime
Nov 1max 100%Nov 30
MAI Transcribe 2Avg 80.00%
MAI Voice 2.1Avg 75.00%
MAI Voice 2.1 FlashAvg 50.00%