Microsoft Foundry
Microsoft's cloud AI platform on Azure (formerly Azure AI Foundry), and the API home of Microsoft's own MAI models: MAI Thinking for reasoning, MAI Code for coding, MAI Image for image generation and editing, MAI Transcribe for speech-to-text and MAI Voice for text-to-speech. Pay-as-you-go on an Azure subscription, with Global and Data Zone deployments, batch, fine-tuning and Azure's enterprise compliance.
At a glance: Microsoft Foundry has 7 models listed on Inference Hub: 2 image models, 2 text-to-speech models, 1 coding model, 1 LLM and 1 speech-to-text model. The cheapest text model is MAI Code 2 Flash at $0.050 input and $0.250 output per 1M tokens, and the most expensive is MAI Thinking 1 at $2.00 input and $8.00 output per 1M tokens. Image generation starts at $0.010 per image with MAI Image 2.7 Flash. Free tier: Azure free account: $200 credit for the first 30 days. Prices are checked against Microsoft Foundry's own pricing every week.
Features
Compliance
Pricing Model
per tokenDetails
Model Catalog (7)
| Model | Type | Input $/1M | Output $/1M | Context | Speed | Status |
|---|---|---|---|---|---|---|
| MAI Code 2 Flash Microsoft | code | $0.050 | $0.250 | — | — | beta |
| MAI Image 2.7 Microsoft | image gen | $0.035/img | — | — | — | beta |
| MAI Image 2.7 Flash Microsoft | image gen | $0.010/img | — | — | — | beta |
| MAI Thinking 1 Microsoft | llm | $2.00 | $8.00 | 262k | — | beta |
| MAI Transcribe 2 Microsoft | speech to_text | $0.0001/sec | — | — | — | |
| MAI Voice 2.1 Microsoft | text to_speech | Through Azure Speech. | see notes | — | — | |
| MAI Voice 2.1 Flash Microsoft | text to_speech | Through Azure Speech. | see notes | — | — |
Microsoft Foundry guides
Microsoft Foundry API FAQ
Is the Microsoft Foundry API free?
Yes, Microsoft Foundry has a free tier: Azure free account: $200 credit for the first 30 days. Paid usage is billed per model.
What is the cheapest Microsoft Foundry model?
MAI Code 2 Flash at $0.05 in / $0.25 out per 1M tokens, based on the 7 models we track for Microsoft Foundry.
How many models does Microsoft Foundry offer?
We track 7 Microsoft Foundry models: 2 image generation, 2 text-to-speech, 1 coding, 1 LLM, 1 speech-to-text.
Is the Microsoft Foundry API OpenAI-compatible?
Yes. Microsoft Foundry exposes an OpenAI-compatible endpoint, so you can use the OpenAI SDKs by changing the base URL and API key.