Microsoft AI: MAI-Voice-2-Flash: audio model
MAI-Voice-2-Flash is Microsoft AI's low-latency text-to-speech model for voice agents, assistants and accessibility, in 15 languages and 18 locales. Reachable from inside Iran through Hormouz.
- Pricing:
- $15/M characters
- Type:
- audio
- Audio
MAI-Voice-2-Flash is a low-latency text-to-speech model from Microsoft AI. It generates expressive 24 kHz mono speech across 15 languages and 18 locales, with fine-grained control over tone and delivery.
It serves voice agents, assistants, call centres, accessibility and narration. Voice prompting and cloning are not offered: they need Microsoft AI-approved access and speaker consent. Hormouz serves MAI-Voice-2-Flash on two endpoints: the OpenAI-compatible /v1/audio/speech, which returns the audio in the same response, and /v1/predictions for background jobs. Set voice to one of the model's own voices, for example "en-US-Harper:MAI-Voice-2", and response_format to mp3 or pcm.
Billing is per character of input text; the current rate is in the price table on this page, and you pay only for what you use. Hormouz provides stable access to it from inside Iran, with no foreign credit card or circumvention tooling required.
MAI-Voice-2-Flash is a low-latency text-to-speech model from Microsoft AI for voice agents, assistants, call centers, accessibility, narration, and other interactive applications. It generates expressive 24 kHz mono speech across 15...
Quickstart
curl https://api.hormouz.net/v1/audio/speech \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"microsoft/mai-voice-2-flash","voice":"en-US-Harper:MAI-Voice-2","input":"Hello from Hormouz.","response_format":"mp3"}' \
--output speech.mp3Specs
| Vendor | Microsoft |
|---|---|
| Type | Audio |
| Context window | — |
| Pricing | $15/M characters |
| API | speech |
Code example
curl https://api.hormouz.net/v1/audio/speech \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"microsoft/mai-voice-2-flash","voice":"en-US-Harper:MAI-Voice-2","input":"Hello from Hormouz.","response_format":"mp3"}' \
--output speech.mp3from openai import OpenAI
client = OpenAI(api_key="ng-YOUR_API_KEY", base_url="https://api.hormouz.net/v1")
with client.audio.speech.with_streaming_response.create(
model="microsoft/mai-voice-2-flash",
voice="en-US-Harper:MAI-Voice-2",
input="Hello from Hormouz.",
response_format="mp3",
) as resp:
resp.stream_to_file("speech.mp3")import OpenAI from "openai";
import { writeFile } from "node:fs/promises";
const client = new OpenAI({ apiKey: "ng-YOUR_API_KEY", baseURL: "https://api.hormouz.net/v1" });
const speech = await client.audio.speech.create({
model: "microsoft/mai-voice-2-flash",
voice: "en-US-Harper:MAI-Voice-2",
input: "Hello from Hormouz.",
response_format: "mp3",
});
await writeFile("speech.mp3", Buffer.from(await speech.arrayBuffer()));Buy the Microsoft AI: MAI-Voice-2-Flash API, paid in rial
- Buy credit with an Iranian bank card; no foreign card or account needed.
- One Hormouz key reaches Microsoft AI: MAI-Voice-2-Flash and 600+ other models, and you pay only for what you use.
- No VPN and no risk of a banned account; just change the base URL to api.hormouz.net/v1.
Use via Hormouz
Connect to this model and 600+ others with one API key, then see usage down to each request.
Request company accessFAQ
- How much does MAI-Voice-2-Flash cost?
- Billing is per character of input text; the current rate is in the price table on this page, and you pay only for what you use.
- How do I use MAI-Voice-2-Flash from inside Iran?
- Create a Hormouz account and generate an API key. Hormouz gives you a stable route to the model from inside Iran, with no foreign credit card or circumvention tooling needed.
- How do I call MAI-Voice-2-Flash?
- Hormouz serves MAI-Voice-2-Flash on two endpoints: the OpenAI-compatible /v1/audio/speech, which returns the audio in the same response, and /v1/predictions for background jobs. Set voice to one of the model's own voices, for example "en-US-Harper:MAI-Voice-2", and response_format to mp3 or pcm.
- How many voices does MAI-Voice-2-Flash have?
- Four preset voices: Harper (US English), Valeria (Mexican Spanish), Soleil (French) and Klaus (German).
Updated 2026-10-13