Last refreshed 2026-06-15. Next refresh: weekly.
Why use MAI-Code-1-Flash on Microsoft Foundry?
Microsoft Foundry offers MAI-Code-1-Flash with pay-as-you-go pricing at $0.75/1M input tokens. Microsoft Foundry is a unified Azure platform-as-a-service offering for enterprise AI operations, model builders, and application development.
Setup recipe
Docs fallbackUse the provider REST API or SDKCreate a provider API keymodel: MAI-Code-1-FlashMAI-Code-1-FlashRequest example
MAI-Code-1-Flash.Gotchas
- Use provider model ID "MAI-Code-1-Flash", not the LLMReference slug "mai-code-1-flash".
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.75 |
| Output tokens | $4.50 |
Capabilities
About MAI-Code-1-Flash
MAI-Code-1-Flash is Microsoft AI's lightweight agentic coding model built directly inside GitHub Copilot's production harness. It is designed for fast everyday developer workflows, adaptive thinking by task complexity, multi-turn instruction following, and token-efficient coding. Microsoft reports 51.2% on SWE-bench Pro versus 35.2% for Claude Haiku 4.5 in the same Copilot harness, plus stronger results on SWE-bench Verified, SWE-bench Multilingual, and Terminal-Bench 2.0 without publishing exact scores for those secondary benchmarks.
FAQ
What does MAI-Code-1-Flash cost on Microsoft Foundry?
On Microsoft Foundry, MAI-Code-1-Flash costs $0.75 per 1M input tokens and $4.50 per 1M output tokens.
What is the context window for MAI-Code-1-Flash on Microsoft Foundry?
MAI-Code-1-Flash supports a 256k token context window on Microsoft Foundry.
What API model ID do I use for MAI-Code-1-Flash on Microsoft Foundry?
Use the model ID MAI-Code-1-Flash when calling Microsoft Foundry's API.
Who created MAI-Code-1-Flash?
MAI-Code-1-Flash was created by Microsoft AI as part of the MAI model family.
Is MAI-Code-1-Flash open source?
MAI-Code-1-Flash is not open source; the seed data lists it as proprietary.