Microsoft
Microsoft Corporation, HQ Redmond, Washington, founded 1975; publicly traded (NASDAQ: MSFT). Its first-party model work runs on two tracks: the Phi family of small open-weight models (MIT-licensed, published on Hugging Face and served on Azure), and the MAI ("Microsoft AI") family of in-house frontier models built by the Microsoft AI division under Mustafa Suleyman, which are proprietary and sold only through Microsoft Foundry (formerly Azure AI Foundry) and Foundry Tools/Azure Speech.
Data checked 2026-09-06- Models tracked
- 37
- OpenAI-compatible API
- yes
- API base URL
- https://<resource-name>.services.ai.azure.com
As of Sept 2026 the MAI line spans text reasoning (MAI-Thinking-1), image generation/editing (MAI-Image-2.5 and 2.6 series), text-to-speech (MAI-Voice-2), and speech-to-text (MAI-Transcribe-2), with a security-domain model (MAI-Cyber-1-Flash) appearing in Azure billing meters. Microsoft also publishes other in-house open-weight models outside the Phi/MAI lines (Fara-1.5 computer-use agents, MagenticBrain-14B, VibeVoice ASR, BitNet, Aurora, plus a large healthcare/science model set) — these are out of scope here but are in the same Foundry catalog.
A Access and limits
All hosted models require a paid Azure subscription plus a Microsoft Foundry (Azure AI Foundry) resource/project; authenticate with a resource API key or a Microsoft Entra ID bearer token scoped to https://cognitiveservices.azure.com/.default. Phi models deploy as serverless per-token endpoints (OpenAI-compatible chat completions) or as managed compute. MAI text/image models use dedicated Microsoft-managed endpoints: https://<resource>.services.ai.azure.com/mai/v1/chat/completions, /mai/v1/images/generations and /mai/v1/images/edits.
MAI-Voice and MAI-Transcribe are NOT Foundry Models — they run through Azure Speech in Foundry Tools (SSML voice names like en-US-Harper:MAI-Voice-2 via the Speech SDK/REST, and the Fast Transcription API with enhancedMode.model set to "MAI-Transcribe-2"). PRICE TIERS: every price recorded here is the BASE Global Standard rate. Azure adds roughly +10% for Data Zone Standard / regional deployments on Phi and MAI-Image-2.5-series meters, and a further premium (about +20% to +25% over global) in a small number of premium-priced regions.
Phi fine-tuning is billed separately at $3.00 per 1M training tokens plus $0.80/hour for hosting a fine-tuned deployment. Cached (prefix-cache) input is billed at 10% of the input rate on MAI-Thinking-1 ($0.20/1M) and MAI-Cyber-1-Flash ($0.06/1M). MAI-Thinking-1 is Global Standard only (no PTU) with default rate-limit tier 0 — you must request Medium (100K TPM / 100 RPM) or High (250K TPM / 250 RPM) quota.
MAI-Image models default to 0 RPM and step up to 12 RPM at tier 6 via the quota request form. MAI-Voice instant voice cloning / Personal Voice is gated behind the Custom Neural Voice Limited Access Review (aka.ms/customneural). Open-weight Phi checkpoints are free under the MIT licence on huggingface.co/microsoft with no key required; several are also mirrored to ONNX/GGUF and to Foundry Local for on-device use.
Prices verified 2026-09-05 against the official Azure Retail Prices API (prices.azure.com), which is the machine-readable source behind the azure.microsoft.com pricing pages.
C Calling the API
Microsoft accepts requests in the OpenAI Chat Completions format, so any
OpenAI-compatible client works by changing the base URL. Example uses
Phi-4-mini-instruct.
curl https://<resource-name>.services.ai.azure.com/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "Phi-4-mini-instruct",
"messages": [{"role": "user", "content": "Hello"}]
}'
from openai import OpenAI
client = OpenAI(
base_url="https://<resource-name>.services.ai.azure.com",
api_key=os.environ["API_KEY"],
)
response = client.chat.completions.create(
model="Phi-4-mini-instruct",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
A compatibility layer is not always the provider's full API — caching, strict tool schemas and structured output are commonly unsupported there. Check the official docs before relying on an advanced feature.
B Models
| Model | Context | Max out | In $/M | Out $/M | Blended | Status |
|---|---|---|---|---|---|---|
Phi-4-mini-instruct
Phi-4-mini-instruct
|
131.1K | 4.1K | $0.07 | $0.30 | $0.13 | ga open |
Phi-4-mini-reasoning
Phi-4-mini-reasoning
|
128K | 128K | $0.07 | $0.30 | $0.13 | ga open |
Phi-4-multimodal-instruct
Phi-4-multimodal-instruct
|
131.1K | 4.1K | $0.08 | $0.32 | $0.14 | ga open |
Phi-4
Phi-4
|
16.4K | 16.4K | $0.13 | $0.50 | $0.22 | ga open |
Phi-4-reasoning
Phi-4-reasoning
|
32.8K | 32.8K | $0.13 | $0.50 | $0.22 | ga open |
Phi-4-reasoning-plus
Phi-4-reasoning-plus
|
32.8K | 32.8K | $0.13 | $0.50 | $0.22 | ga open |
Phi-3.5-mini-instruct
Phi-3.5-mini-instruct
|
131.1K | 4.1K | $0.13 | $0.52 | $0.23 | deprecated open |
Phi-3.5-vision-instruct
Phi-3.5-vision-instruct
|
131.1K | 4.1K | $0.13 | $0.52 | $0.23 | deprecated open |
Phi-3-mini-128k-instruct
Phi-3-mini-128k-instruct
|
131.1K | 4.1K | $0.13 | $0.52 | $0.23 | deprecated open |
Phi-3-mini-4k-instruct
Phi-3-mini-4k-instruct
|
4.1K | 4.1K | $0.13 | $0.52 | $0.23 | deprecated open |
Phi-3-small-128k-instruct
Phi-3-small-128k-instruct
|
131.1K | 4.1K | $0.15 | $0.60 | $0.26 | deprecated open |
Phi-3-small-8k-instruct
Phi-3-small-8k-instruct
|
8.2K | 4.1K | $0.15 | $0.60 | $0.26 | deprecated open |
Phi-3.5-MoE-instruct
Phi-3.5-MoE-instruct
|
131.1K | 4.1K | $0.16 | $0.64 | $0.28 | deprecated open |
Phi-3-medium-128k-instruct
Phi-3-medium-128k-instruct
|
131.1K | 4.1K | $0.17 | $0.68 | $0.30 | deprecated open |
Phi-3-medium-4k-instruct
Phi-3-medium-4k-instruct
|
4.1K | 4.1K | $0.17 | $0.68 | $0.30 | deprecated open |
MAI-Cyber-1-Flash
MAI-Cyber-1-Flash
|
— | — | $0.60 | $3.50 | $1.32 | preview |
MAI-Thinking-1
MAI-Thinking-1
|
256K | 64K | $2.00 | $8.00 | $3.50 | preview |
MAI-Image-2.5-Flash
MAI-Image-2.5-Flash
|
32K | — | $1.75 | $19.50 | $6.19 | preview |
MAI-Image-2.5
MAI-Image-2.5
|
32K | — | $5.00 | $47.00 | $15.50 | preview |
MAI-Image-2.5-Pro
MAI-Image-2.5-Pro
|
32K | — | $5.00 | $106.00 | $30.25 | preview |
MAI-Image-2.6
MAI-Image-2.6
|
32K | — | — | — | — | preview |
MAI-Image-2.6-Flash
MAI-Image-2.6-Flash
|
32K | — | — | — | — | preview |
MAI-Voice-2
MAI-Voice-2
|
— | — | — | — | — | preview |
MAI-Voice-2-Flash
MAI-Voice-2-Flash
|
— | — | — | — | — | preview |
MAI-Voice-1
MAI-Voice-1
|
— | — | — | — | — | deprecated |
MAI-Transcribe-2
MAI-Transcribe-2
|
— | — | — | — | — | preview |
MAI-Transcribe-1.5
MAI-Transcribe-1.5
|
— | — | — | — | — | preview |
MAI-Transcribe-1
MAI-Transcribe-1
|
— | — | — | — | — | deprecated |
model-router
model-router
|
200K | 128K | — | — | — | ga |
MAI-DS-R1
MAI-DS-R1
|
163.8K | — | — | — | — | deprecated open |
Phi-4-mini-flash-reasoning
Phi-4-mini-flash-reasoning
|
65.5K | — | — | — | — | ga open |
Phi-4-Reasoning-Vision-15B
Phi-4-Reasoning-Vision-15B
|
16.4K | — | — | — | — | ga open |
Phi-mini-MoE-instruct
microsoft/Phi-mini-MoE-instruct
|
4.1K | — | — | — | — | ga open |
Phi-tiny-MoE-instruct
microsoft/Phi-tiny-MoE-instruct
|
4.1K | — | — | — | — | ga open |
Phi-Ground-Any
microsoft/Phi-Ground-Any
|
— | — | — | — | — | preview open |
Phi-3-vision-128k-instruct
Phi-3-vision-128k-instruct
|
131.1K | 4.1K | — | — | — | deprecated open |
phi-2
microsoft/phi-2
|
2K | — | — | — | — | deprecated open |