LLM Reference
Microsoft Foundry

MAI-Code-1-Flash on Microsoft Foundry

MAI · Microsoft AI

Serverless

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.

Input / 1M
$0.75
Output / 1M
$4.50
Cache
read $0.075
Batch
Not sourced

Setup recipe

Docs fallback
Install
Use the provider REST API or SDK
Auth
Create a provider API key
Call
model: MAI-Code-1-Flash
Model ID
MAI-Code-1-Flash

Request example

Curated snippets for this provider are not sourced yet. Use Microsoft Foundry documentation with model ID MAI-Code-1-Flash.

Gotchas

  • Use provider model ID "MAI-Code-1-Flash", not the LLMReference slug "mai-code-1-flash".

Pricing

TypePrice (per 1M)
Input tokens$0.75
Output tokens$4.50

Capabilities

ReasoningJSON / Tool use

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.

Get Started