Skip to main content

Speech model

Mai Voice 2

microsoft/mai-voice-2

microsoft/mai-voice-2 is a text-to-speech model from Microsoft you can call on the OceanToken API.

Price card, similar models and questions answered: Mai Voice 2 on oceantoken.ai.

At a glance

Model IDmicrosoft/mai-voice-2
TypeSpeech
PublisherMicrosoft
PriceOn oceantoken.ai
Endpoint/v1/audio/speech
API shapeOpenAI-compatible
In the catalog since2026-06-02
Scheduled retirement2026-12-31

API

POST /v1/audio/speech. Base URL https://api.oceantoken.ai, your OceanToken key as the bearer token. The OpenAI SDKs work unchanged; see the Quickstart.

Download this spec (JSON) · llms.txt for AI assistants

Basic

curl https://api.oceantoken.ai/v1/audio/speech \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "microsoft/mai-voice-2",
"input": "Welcome aboard.",
"voice": "en-US-Jasper:MAI-Voice-1",
"response_format": "mp3"
}' --output speech.mp3

Request parameters

Only what this model takes. Anything else in the request is left out before it reaches the model.

ParameterTypeDescription
model
required
stringThis model's ID.
input
required
stringThe text to read.
voice
required
stringOne of this model's voices (see the Speech guide).
response_formatstring
mp3, wav, opus, aac, flac, pcm, url
Audio format; url returns a link instead of the audio.
speednumber
0.25 to 4
default 1
Pace, on models that support it.
instructionsstringTone notes such as "calm, slow", on models that support them.

Response

FieldTypeDescription
(body)binaryThe audio file.

More examples and how errors and billing work: Speech and transcription.

Compared with similar models

Speech models on OceanToken in the same price range as microsoft/mai-voice-2. Compare their prices on oceantoken.ai.

ModelPublisherContext
Mai Voice 2
microsoft/mai-voice-2
Microsoft—
Qwen Audio 3.0 TTS Plus
qwen/qwen-audio-3.0-tts-plus
Qwen—
Aura 2
deepgram/aura-2
Deepgram—
Voxtral Mini TTS 2603
mistralai/voxtral-mini-tts-2603
Mistral AI—

More from Microsoft

All Microsoft models on OceanToken

Use it

Create an account Price on oceantoken.ai

The facts on this page were read from the live OceanToken catalog on 2026-12-02 (UTC), when the documentation was built. Prices are published on oceantoken.ai.