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.